Skip to content

Secrets

This is the reference documentation for secrets on the NAIS platform.

Console

Visit NAIS Console to find and manage your team's user-defined secrets.

How-To Guides

Workloads

Use a secret in your workload by referencing them in your nais.yaml manifest.

The secret can be made available as environment variables or files.

Environment Variables

spec:
  envFrom:
    - secret: <secret-name>

See also:

Files

spec:
  filesFrom:
    - secret: <secret-name>
      mountPath: /var/run/secrets/<secret-name>

See also: