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.
More on Jenkins in Production
How do you run Jenkins for high availability and scale?AdvancedHow do you tune the Jenkins controller JVM and avoid out-of-memory crashes?AdvancedHow do you back up and restore Jenkins?IntermediateHow do you upgrade Jenkins and its plugins safely?IntermediateHow do you harden a Jenkins controller?AdvancedHow do you configure dynamic Kubernetes agents in Jenkins for production use?Intermediate