Who can read secrets passed to Helm, and how do you reduce exposure?
IntermediateScenarioSecrets & Security
Answer
Situation read → Values containing secrets are stored in the release Secret, readable by anyone with get secrets in the namespace; they also appear in --debug output and CI logs.
What I'd do →
- Restrict
get/list secretsvia RBAC; developers get read access to other resources only. - Use
existingSecretreferences so values contain names, not secret values. - Use External Secrets Operator so values never contain secrets.
- Never run
--debugorhelm get valuesin shared CI logs for prod.
Why → The release record is a copy of every secret you pass through Helm.
Interview tip → Knowing the release Secret leak path is a strong signal.
More on Secrets & Security
A secret was committed in plaintext in `values-prod.yaml`. What do you do?BeginnerSet up helm-secrets with SOPS and AWS KMS for prod and age for dev.IntermediateA chart from the internet requests cluster-admin. How do you evaluate and contain it?AdvancedYour security team asks you to scan Helm charts for misconfigurations in CI. How?BeginnerHow do you rotate a database password managed through Helm without downtime?AdvancedYour CI service account for Helm has cluster-admin "because it was easier". How do you fix it?Intermediate