Interview Prep/CI/CD/Secrets and Credentials

How do you rotate a credential used by dozens of pipelines without downtime?

AdvancedProductionSecrets and Credentials
Answer

Use a two-phase or dual-credential approach: create the new credential, add it alongside the old (or keep both valid), update the secret store that pipelines read from, wait until all pipelines have run with the new value (monitor use of the old one in audit logs), then revoke the old. Centralising the secret in one store (instead of copied into 40 repos) makes this a single change. Better, remove the need: switch to OIDC or dynamic secrets.

All CI/CD questions

More on Secrets and Credentials