Why are long-lived credentials in CI a problem, and what is the modern alternative?
BeginnerProductionSecrets and Credentials
Answer
Static cloud keys stored as CI secrets never expire, get copied to laptops and logs, are shared across repos, and are the usual root cause of pipeline-originated breaches. The alternative is workload identity federation (OIDC): the CI system issues a short-lived signed token per job, the cloud validates it against a trust policy tied to repo, branch or environment, and returns credentials valid for about an hour. No stored secret exists to steal.
More on Secrets and Credentials
How 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?AdvancedHow do you rotate a credential used by dozens of pipelines without downtime?Advanced