Cloud Repositorio uses a YAML file (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/markitobonito/cloud_repositorio/llms.txt
Use this file to discover all available pages before exploring further.
database.yaml) as its persistent state store. It holds user accounts, slice topology, worker registrations, and auto-increment ID counters. The file is loaded at startup into memory and saved back to disk on every write operation, so the on-disk file always reflects the latest committed state.
File location
The default path isdatabase.yaml in the working directory — wherever you launch the manager from. To use a different path, pass the filepath parameter when constructing the Database class:
Top-level structure
The complete structure ofdatabase.yaml with annotations:
Adding users
There is no CLI command to add users. You must editdatabase.yaml directly. Generate a SHA-256 password hash in Python:
users: with the resulting hash. For example, the default admin password hash:
admin. Change this before deploying to any non-test environment.
A complete user entry looks like:
Quota management
quota_vms limits the total number of VMs a user can add across all of their slices. The check in OrchestratorAPI.add_vm_to_slice() is:
quota_vms to 0 effectively disables the account — no VMs can be created. Default values are:
| User | quota_vms |
|---|---|
| admin | 10 |
| student | 6 |
used_vms is incremented automatically when a VM is added and decremented when a slice is deleted. Do not modify it manually unless you are correcting drift after a failed operation.
Thread safety
TheDatabase class uses threading.RLock to protect all write operations. Every method that mutates self.data acquires the lock before calling save():