Bring your vault’s secrets into your app
Your app reads a Coffrebox vault when it starts. Verification and decryption happen inside the process: the server only hands over ciphertext.
Choose how to integrate
npm install @brunosps00/coffrebox
Rust SDKAsync and blocking APIs. Values arrive as SecretString.cargo add coffrebox
coffre CLIAny language: runs your program with the secrets in its environment, with no code changes.coffre run -- ./server
In three steps
-
In the web vault, create a For applications vault and store your secrets in it. Already have a
.env? Use Import .env. -
In the vault’s application access section, create an application credential and copy it. It’s shown only once.
-
On your app’s server, set the two variables and load the vault with the SDK or the CLI:
EnvironmentCOFFREBOX_URL=https://coffrebox.net COFFREBOX_TOKEN=cfb1_app_…
The full walkthrough, with a test at the end, is in Quickstart.
The application credential is the key
The application credential allows reading a single vault and writes nothing, but anyone who has it can read that vault. Treat it like a password, and revoke the access if the machine is compromised.
Beta. The SDKs and the CLI haven’t had an external audit yet, and the API may change before version 1.0. Pin the version you tested.