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