What is a secret zero problem in CI and how do you solve it?
AdvancedProductionSecrets and Credentials
Answer
To fetch secrets from a vault the pipeline needs a credential, which itself is a secret. The fix is to use an identity the platform vouches for rather than a stored value: OIDC tokens issued by GitHub/GitLab, Kubernetes service account tokens, cloud instance or pod identity. The secret manager trusts the platform's identity provider and authorises by claims, so there is no static bootstrap secret to protect.
More on Secrets and Credentials
Why are long-lived credentials in CI a problem, and what is the modern alternative?BeginnerHow do you manage application secrets from build to runtime?IntermediateHow do you store secrets in Git safely for GitOps?IntermediateHow do you detect secrets committed to a repo?BeginnerWhat do you do after a secret is committed to Git?IntermediateHow do you use HashiCorp Vault with CI/CD?Advanced