Interview Prep/CI/CD/Supply Chain and Pipeline Security

How do you protect against compromised developer accounts pushing malicious code?

IntermediateProductionSupply Chain and Pipeline Security
Answer

Enforce SSO with MFA (hardware keys/passkeys for privileged roles), signed commits where policy requires, branch protection requiring review from someone other than the author, restricted ability to push tags and edit workflows, short session lifetimes, and monitoring on anomalous activity (new tokens, force pushes, workflow changes). The pipeline's required reviews and environment approvals mean one compromised account is not enough to reach production.

All CI/CD questions

More on Supply Chain and Pipeline Security