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.

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