{{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 exampleSTRIPE_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.
Use a secret in a project
In a project’s Environment variables, set the value to the reference: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:- A secret set for the project’s environment, such as Production (the environment you pick in the dashboard’s top bar).
- Otherwise, a secret set for All environments.
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.

