Skip to content
Distr
Book DemoStart free trialLogin

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.

Secrets tab of a customer with a secret, its template reference and who updated it last

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.

  1. In the Vendor Portal sidebar, go to Customers and open the customer.
  2. Select the Secrets tab and click Create Secret.
  3. Enter a Secret Key, for example DATABASE_PASSWORD. It has to start with a letter and can contain only letters, numbers and underscores.
  4. 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.

  1. Click the secret in the list.
  2. Enter the new value. The key cannot be changed.
  3. 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.

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.

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.