Interview Prep/CI/CD/Jenkins Shared Libraries, Credentials and Security

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 →

  1. Use Matrix or Role-based authorization: developers get Job/Build, Job/Read, Job/Configure only for their folder.
  2. Put team jobs in Folders with folder-level credentials and permissions.
  3. 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.

All CI/CD questions

More on Jenkins Shared Libraries, Credentials and Security