Interview Prep/CI/CD/Jenkins in Production

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).

All CI/CD questions

More on Jenkins in Production