Security
What you should do
- Back up your identity.key in a password manager or on an encrypted drive.
- Keep two-factor sign-in on. Secrets account: authenticator app or passkey under My access, recovery codes stored safely, plus a long sign-in password you use nowhere else. A passkey also protects against fake sign-in pages: it only works at the real address of Secrets. sareba account: enable it in sareba, Secrets picks it up automatically.
- Never write down the vault password except in a password manager. A long sentence beats short symbol strings.
- Rotate values when colleagues leave, do not just revoke access.
- Delete plaintext exports immediately once their purpose is served.
- Sign out when you leave your desk. After at most 15 minutes without activity Secrets signs you out by itself, asking first.
- Laptop stolen or lost: revoke its token right away (My access → API tokens). That ends syncing and the device unlock in one go. Rotate values that were readable before.
- Device unlock only on your own computer, never on shared computers.
- Keep production values in their own stage, with only the recipients who really need them.
- Run
secrets-tool lockwhen you are done if you unlocked the CLI withunlock. - Check your repositories with
secrets-tool check, ideally as a pre-commit hook (check --hook) and in CI (see Checking a repository). - No values in one-liners: get env files onto the host with
secrets-tool hostenvinstead of-e NAME=value(see Getting env files onto the host). Set values withsecrets-tool set NAMEwithout a value: the CLI then asks with hidden input.
What the server sees and what it never sees
| The server sees | It never sees |
|---|---|
| email, name, sareba user ID if any | your vault password |
| teams or tenants and your role | your private key in plaintext |
| your public key | any value in plaintext |
| encrypted project files | which keys a project contains |
| who is a member of which project, history | your sareba password (only sareba verifies it); of a Secrets account's sign-in password only an Argon2id hash |
| a random share per unlocked device | the unlock file on the device (without it the share is useless) |
| the secret of your authenticator app, encrypted with a key that is not stored in the database | your recovery codes (hashes only) and email codes (briefly in memory, as a hash) |
| for each passkey the public key, name and timestamps; if it unlocks the vault, your private key – encrypted with a secret only the device produces | the passkey's private key and that secret (neither ever leaves your device or password manager), your fingerprint, face or PIN |
| for each trusted device the hash of the token from your browser, the IP address, browser and system, and timestamps | the token itself (only as a cookie in your browser) |
Limits
Whoever controls your computer while the vault is unlocked can read along; that holds for any application. While the CLI is unlocked with unlock, a program under your own account can read values through secrets-tool; it cannot get the private key itself, and lock ends this immediately. With a device unlock the key stays unlocked on that PC as long as the web app agrees: any program under your Windows account can use it. Whoever has write access to a repository can delete a secrets.enc, but neither read it nor secretly enroll anyone. The operator (for sareba accounts also sareba) can block accounts, change memberships and delete projects, but cannot read values. If a passkey unlocks the vault, the passkey with its PIN or fingerprint is enough for your values – the vault password then no longer adds protection.
Security updates
If a release fixes a security issue, it becomes a mandatory update (see Install the CLI); what changed is listed under Updates. The most recent one was 0.9.1.39:
- Go 1.27.3: the CLI is built with this Go version. It fixes an issue in certificate validation: compromised intermediate certificates are no longer trusted.
- The web app and the server now run on nginx 1.30.6, Go 1.27.3 and Debian 13, which closes known vulnerabilities in the web server. This takes effect without an update on your side.
Before that, 0.9.1.20: unlocking in memory only (unlock no longer writes a key file, see Working with the CLI), an exact HTTPS check of the server address (plain HTTP only to localhost, 127.0.0.1 and ::1) and a clear error message instead of a crash for a tampered secrets.enc.
Protection against password guessing
After 10 failed attempts within 15 minutes, Secrets accepts no sign-in for this email address and from this sender for 15 minutes (error 58017). Sign-up, “Forgot password”, pairing codes and invitations are limited in the same way. For the second factor: 5 attempts per sign-in and 10 failed attempts per account within 15 minutes, at most 3 email codes in 15 minutes. Rejected passkeys count like wrong passwords. Fixes on the server take effect immediately, without an update on your side; most recently in 0.9.1.25: failed attempts now always count against the actual sender, even when the request comes through proxies.