Skip to content

Secrets Reference

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

🎯 Get started with secrets in Console

🎯 Use a secret in your workload

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:

📚 Application reference

📚 NaisJob reference

Files

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

See also:

📚 Application reference

📚 NaisJob reference