Secrets

Documentation

Everything about Secrets and secrets-tool: account and vault, projects and sharing, the CLI, deployments with Docker and CI, security and error messages.

  1. Ready in 5 minutes – Signed in, the toolbar is on the left: Projects, My access, Documentation, Download, Updates and – for admins – Admin; with own teams also …
  2. How it works – Every user has a key pair : a public key that may be shared and a private key that never leaves the browser unencrypted. The private key …
  3. Account, vault, team – Email and password of your account: for a Secrets account the sign-in password, for a sareba account the sareba password. Then the second …
  4. Projects – A project corresponds to exactly one secrets.enc . Sensible split: one project per application. For environments such as test and …
  5. Managing values – Keys consist of letters, digits and underscore and do not start with a digit, e.g. DB_PASSWORD . They are exported as environment …
  6. Password vault – Besides the values for applications a project can hold logins (from 0.9.1.50): title, user, password, address, note, tags, folder and …
  7. Access and roles – Access has two parts that the web app handles together: the account in the same team or tenant may see the project, and the key in the …
  8. Team and invitations – Whoever signs up in Secrets gets their own team and is its owner . Under Team you see the members; owners and admins rename the team …
  9. Install the CLI – The command-line tool secrets-tool is available for Windows, macOS 13 Ventura or later (Intel and Apple Silicon) and Linux (x64 and …
  10. Working with the CLI – The command-line tool secrets-tool works with the same files. Typical split: maintain values in the web app, read them on servers and in …
  11. All CLI commands – Usage: secrets-tool <command> [arguments] [--stage NAME | --file PATH] [--key PATH] . Without a command the interactive menu opens; st is …
  12. Connect the CLI directly – Instead of downloading and uploading files, the CLI talks to Secrets directly. Changes made in the web app then arrive on your machine by …
  13. Stages (test, prod, …) – With stages a project has its own values per environment, for example a different DB_PASSWORD for test and for production. Each stage is a …
  14. Use in deployments – Goal: no value ever shows up in plaintext on screen, in a command history, in the clipboard or in a command line. There are two ways to …
  15. Getting env files onto the host – secrets-tool hostenv builds a small script from secrets.enc that writes the env files on the Docker host. For each file you say which …
  16. Checking a repository – secrets-tool check checks a repository for correct use of secrets-tool. It shows file, line and rule, never a value, and right under every …
  17. Export and import – Download secrets.enc : the encrypted project file, safe for repository and email. For a stage the file is named as in the CLI, e.g …
  18. History – The History tab in a project shows who did what and when: project created, saved (with version number), renamed, access granted or …
  19. Security – Whoever controls your computer while the vault is unlocked can read along; that holds for any application. While the CLI is unlocked with …
  20. Admin area – Secrets admins see the menu entry Admin . Everyone else does not see it, and the server rejects them as well. Admins manage accounts and …
  21. Errors and fixes – Every message carries a code E-AP-58xxx . The full list with help texts lives in sareba.
  22. FAQ – No. The server or sareba only verifies the sign-in. The values are encrypted with keys that are only decrypted in your browser.