Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.28 KB

secrets.md

File metadata and controls

22 lines (15 loc) · 1.28 KB
title
Secrets

Secrets

Secrets are used to store and reference secret values.

{% hint style="info" %} To store a secret, navigate to the environment variables page and add a new key-value pair. Before saving, be sure to check "Secret". This stores the environment variable as a secret with the additional protections described below. {% endhint %}

Once a secret is saved, its value cannot be viewed or modified. You can only replace or delete the value. Otherwise, secrets work just like other environment variables.

{% hint style="info" %} Note: User secrets are not available during build time, they are only available during launch and runtime steps. However, all user secrets are automatically available as environment variables within each user's workspace. {% endhint %}

You can access secrets within builds or at build or launch time, just like you would access any environment variable. If your secret is called MY_SECRET_KEY, to access its value anywhere, use $MY_SECRET_KEY. At runtime, you can use the env binary to verify that the secrets are present within that context.

All secrets are securely stored within DevZero in an isolated HashiCorp Vault deployment.