Customer Secrets
Customer secrets hold the credentials of one customer’s deployments, for example the customer’s database password or an API key specific to its environment. Distr injects them only into that customer’s deployments. Other customers and your internal deployments cannot use them.


Who manages them
Section titled “Who manages them”A customer’s secrets are stored once and shared by everyone who manages that customer:
- You, in the Secrets tab of the customer page in the Vendor Portal.
- The customer’s users, under Secrets in the Customer Portal.
- The partner the customer is assigned to, if you work with partners.
A secret created in one of these places shows up in the others. Everyone sees the keys and who updated a secret last, never the values: Distr does not show a value again once it is saved. Users with the role Administrator or User can create, change and delete secrets. Viewers only see the list.
Creating a secret
Section titled “Creating a secret”- In the Vendor Portal sidebar, go to Customers and open the customer.
- Select the Secrets tab and click Create Secret.
- Enter a Secret Key, for example
DATABASE_PASSWORD. It has to start with a letter and can contain only letters, numbers and underscores. - Enter the Secret Value and click Submit.
The Reference column shows the template to put into the customer’s deployment configuration, for example {{ .Secrets.DATABASE_PASSWORD }}, with a button to copy it. See Using secrets in deployments for where a reference works.
Changing a value
Section titled “Changing a value”- Click the secret in the list.
- Enter the new value. The key cannot be changed.
- Click Submit.
When deployments use the secret, the form lists the deployment targets that will be redeployed with the new value, and the button reads Save and redeploy.
Deleting a secret
Section titled “Deleting a secret”Click the delete button next to the secret and confirm by typing its key. Distr does not delete a secret that a deployment still references and names the deployment targets that use it instead. Remove the reference from their configuration first.
Internal deployment secrets
Section titled “Internal deployment secrets”Credentials that only your own deployments need, the ones on deployment targets without a customer, belong in your internal deployment secrets in the Secrets tab of your settings. They work the same way, but Distr never injects them into customer deployments.