Interview Prep/CI/CD/Jenkins in Production

How do you reduce the blast radius of a compromised pipeline in Jenkins?

AdvancedProductionJenkins in Production
Answer

Segment: separate controllers (or folders with strict ACLs) for untrusted PR builds versus trusted release builds; ephemeral agents with no persistent credentials; deploy credentials only on a locked-down agent pool; short-lived tokens via workload identity; no cloud-admin credentials in Jenkins at all; and network policies limiting agents' egress. For fork PRs set the multibranch trust strategy to "from users with Admin or Write permission" so outside contributors do not get to run arbitrary Jenkinsfiles with secrets.

All CI/CD questions

More on Jenkins in Production