Skip to main content
The Vault holds secrets that several projects share: an API key for your payment provider, a database URL, an SMTP password. You store each one once, then reference it from any project’s environment variables as {{vault.KEY}}. When you rotate the secret, every project that uses it picks up the new value on its next deploy. Use it when the same secret lives in more than one project, or when you want to change a key without hunting down every place it was pasted.

Add a secret

1

Open the Vault

In the sidebar, open Vault and choose Create Secret.
2

Fill in the secret

  • Key: uppercase letters, digits and _, starting with a letter or _, up to 128 characters. For example STRIPE_SECRET_KEY.
  • Value: up to 32 KB. It’s stored encrypted, and only people who can edit the Vault can reveal it.
  • Environment: one environment, such as Production, or All environments.
  • Description (optional): what it’s for, up to 500 characters.
3

Copy the reference

The form shows the reference, {{vault.STRIPE_SECRET_KEY}}. Choose Add secret.
The Add secret panel with Key, Value, Environment and Description fields, and the reference {{vault.KEY}} with a Copy button.

Use a secret in a project

In a project’s Environment variables, set the value to the reference:
A reference can also sit inside a longer value:
Spaces inside the braces are allowed. The editor shows each reference as a chip so you can see where it points. Your app reads the variable as usual (process.env.STRIPE_SECRET_KEY); it never sees the reference.

Which value a project gets

When a project deploys, Pxxl looks for the key in the project’s workspace:
  1. A secret set for the project’s environment, such as Production (the environment you pick in the dashboard’s top bar).
  2. Otherwise, a secret set for All environments.
If neither exists, the deploy stops with VAULT_REFERENCE_MISSING and names the key. Add the secret, then deploy again.

Rotate a secret

Open the secret, change its value and save. Projects keep the old value until they deploy again, so redeploy every project that uses it. The Vault list shows Used by N projects for each secret, which tells you how many to redeploy.

Delete a secret

Open the secret’s menu and delete it. If projects still reference it, Pxxl refuses and lists them, so a later deploy doesn’t fail. Remove the references first, or confirm you want to delete it anyway.

Who can see and change secrets

In a team, the Vault follows the team’s environment variables permission: Creating, changing and deleting secrets are recorded in the team’s activity.

From the API

Troubleshooting

Where to go next

Environment variables

How projects get their configuration.

Teams and settings

Roles and permissions.