Interview Prep/Jenkins/Credentials & security

A contractor needs to trigger and view builds for one project for three months. How do you grant access?

BeginnerScenarioCredentials & security
Answer

Situation read → Least privilege with an expiry.

What I'd do →

  1. Add the contractor to an IdP group with an expiry date (e.g. ext-shack-builders).
  2. Grant that group Overall/Read and on the project folder Job/Read, Job/Build, Job/Cancel only.
  3. No Job/Configure, Run/Replay or credential permissions.
  4. Review access at expiry.

Why → Group-based grants in the IdP give central revocation and audit.

Interview tip → Avoid local Jenkins users for humans.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security