How do you handle Jenkins agent secrets and authentication at scale?
AdvancedProductionJenkins in Production
Answer
Dynamic Kubernetes agents get a per-pod secret generated by the controller when the pod is created, so nothing is shared. For static inbound agents, each node has its own secret (rotate when staff leave), and agent-to-controller security is enabled (default) so a compromised agent cannot read the controller's filesystem. Run agents with a non-root user, minimal network egress, and no cloud credentials beyond what the job needs (workload identity bound to the pod's service account).
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