A developer asks for admin access to Jenkins to "fix their job". How do you handle it?
BeginnerScenarioJenkins Shared Libraries, Credentials and Security
Answer
Situation read → Admin is far more than the developer needs.
What I'd do →
- Use Matrix or Role-based authorization: developers get Job/Build, Job/Read, Job/Configure only for their folder.
- Put team jobs in Folders with folder-level credentials and permissions.
- Because jobs are defined in a Jenkinsfile, most "fixes" are PRs, not UI changes.
Why → Least privilege limits damage, and folder scoping contains credentials.
Interview tip → Folder-scoped credentials prevent team A using team B's secrets.
More on Jenkins Shared Libraries, Credentials and Security
Ten teams copy the same 80-line "build and push image" stage. What do you do?BeginnerA shared library change broke 50 pipelines at once. How do you prevent a repeat?AdvancedA pipeline needs an AWS secret key and a DB password. How do you provide them without exposing them in logs?BeginnerCredentials are stored in Jenkins; the security team wants no long-lived cloud keys at all.AdvancedA pipeline from a fork PR should not be able to read production credentials.IntermediateThe team wants the Jenkins configuration reproducible and reviewable. What tooling do you use?Intermediate