1.8 KiB
1.8 KiB
Custos Domi — core (public)
Custos (Latin: guardian) is a local-first password and secret manager in the Domi ecosystem.
This repository is the public, MPL-2.0 core: everything that touches plaintext or keys.
The Windows app lives in the private Custos repo and depends on this one by git tag.
Layout
crates/custos-vault file format, Argon2id + XChaCha20-Poly1305, atomic save, item model, SecretString
crates/custos-gen memorable password, nickname, random, PIN, strict-site generators + wordlists
docs/FORMAT.md the vault file format (versioned; change it before the code)
docs/THREAT_MODEL.md what is and is not protected
Commands
cargo test --workspace # all mandatory tests
cargo test --workspace --release # same, faster Argon2
On the dev machine set CARGO_HOME=F:\C-Drive-Migration\future-caches\cargo (C: is off limits).
Rules
- Commits:
[<crate>] <Feature>: <description>, e.g.[vault] Format: authenticate slot parameters. - No AI attribution in commits or PRs, ever: no
Co-Authored-By, no session links, no "Generated with". - No binaries in git.
- No custom crypto. Only RustCrypto / rust-random crates (
argon2,chacha20poly1305,zeroize,randwithSysRng). Randomness from the OS CSPRNG only. - Secrets never in logs, panics, error messages,
Debug/Displayoutput or test snapshots. Secret-holding types print[redacted]; there is a test for each one. - Tests here are mandatory (it is public and holds the crypto). A format change updates
docs/FORMAT.mdfirst, then a test, then the code. - Branch → PR on Gitea (token in
$GITEA_TOKEN, never echoed) → self-review in the PR body → merge--no-ff→ push →git rev-parse HEAD origin/main→ tagvX.Y.Z(the private app pins tags).