Skip to content
In this guideOverview
Integration guide

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.

  • Version 0.1.0
  • Beta

Choose how to integrate

In three steps

  1. In the web vault, create a For applications vault and store your secrets in it. Already have a .env? Use Import .env.

  2. In the vault’s application access section, create an application credential and copy it. It’s shown only once.

  3. On your app’s server, set the two variables and load the vault with the SDK or the CLI:

    Environment
    COFFREBOX_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.