Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

After rotating a registry credential, only some pipelines fail with `unauthorized: authentication required`.

IntermediateTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Old credentials cached in agent ~/.docker/config.json, per-repo secrets not updated.

Diagnose → cat ~/.docker/config.json | jq '.auths | keys', grep for the secret name across repos.

Fix → Update all copies, log out and in again on agents.

Prevent → One org-level secret or OIDC-based registry auth.

All CI/CD questions

More on Secrets, Security and Pipeline Performance