KubeLinter

KubeLinter

Community Analyzer

Insecure use of secrets in environment variables KUBELIN-W1015

Anti-pattern
Major

Indicates when objects use a secret in an environment variable.

Remediation

Do not use raw secrets in environment variables. Instead, either mount the secret as a file or use a secretKeyRef. Refer to https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets for details.