Security
What the server stores, what the application credential carries, and what the SDKs check before they hand a secret to your app.
What the server sees
Secrets are encrypted in the web vault, the CLI, or the SDK before they leave the device. The server stores:
- the names and the values, encrypted, without being able to read either;
- how many items each vault has, their size, and when they changed;
- who belongs to each vault and which system accesses exist;
- when and from which IP each access asked to read the vault, in the audit log, and the last time it read it.
The server doesn’t see the names or values of the secrets, the vault’s name, or your master password.
The application credential
COFFREBOX_TOKEN holds the application credential, which carries the application’s keys:
- the X25519 private key, which opens the vault key;
- the Ed25519 seed, which proves to the server that it’s that access;
- the vault owner’s public signing key, the anchor for checking what the server sends.
The application credential allows reading only one vault. It doesn’t expire: it’s valid until revoked in the web vault’s application access section, or with coffre app revoke. The SDK exchanges proof of this credential for an access token that lasts 15 minutes, carries no keys, and only allows reading that vault.
Revoking stops new reads, but anyone who already read the vault still knows the values. If a token leaked, revoke the access and rotate the secrets that matter, like the database password and API keys.
What the SDK checks on every read
Before it hands over any value, the SDK (and the CLI, which uses the Rust SDK) checks:
- the manifest signature, with the owner’s key that came in the token, not with a key sent by the server;
- each item’s hash against the manifest, with no extra or missing items;
- that the revision is never lower than the last one seen, so the server can’t bring back an old secret;
- the signature on the vault key envelope, made by whoever granted the access.
If anything doesn’t match, the SDK throws COFFREBOX_TAMPERED and nothing from the response is used.
On-disk cache
The cache stores the snapshot exactly as the server sent it: only ciphertext, in a 0600 file inside a 0700 folder. It’s deleted when the server says the access was revoked. With the server down, a cache older than 72 hours (the default) is rejected.
Threat model
Coffrebox is in beta and hasn’t had an external audit yet. The formats, the keys, and every threat considered are in the threat model.
Found a vulnerability? Use Security → Report a vulnerability in the GitHub repository: the report stays private until it’s fixed.