Use secret environment variables
Astro environment variables marked as secrets are stored in a Kubernetes secret called env-secrets
. To use a secret value in a task running on the Kubernetes executor, you pull the value from env-secrets
and mount it to the Pod running your task as a new Kubernetes Secret.
Setup
Example
In the following example, a secret named MY_SECRET
is pulled from env-secrets
and printed to logs.