Interview Prep/CI/CD/Secrets and Credentials

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.

All CI/CD questions

More on Secrets and Credentials