100-Days-Of-DevOps-Challenge-KodeKloud

Jenkins Project Security

The xFusionCorp Industries has recruited some new developers. There are already some existing jobs on Jenkins and two of these new developers need permissions to access those jobs. The development team has already shared those requirements with the DevOps team, so as per details mentioned below grant required permissions to the developers.

Click on the Jenkins button on the top bar to access the Jenkins UI. Login using username admin and password Adm!n321.

  1. There is an existing Jenkins job named Packages, there are also two existing Jenkins users named sam with password sam@pass12345 and rohan with password rohan@pass12345.

  2. Grant permissions to these users to access Packages job as per details mentioned below:

    • Make sure to select Inherit permissions from parent ACL under inheritance strategy for granting permissions to these users.

    • Grant mentioned permissions to sam user : build, configure and read.

    • Grant mentioned permissions to rohan user : build, cancel, configure, read, update and tag.

Note:

Steps

  1. Update plugins and restart jenkins
  2. Install the plugins:
    • Project based matrix authorization
  3. Manage Jenkins > Security > Authorization: Select Project based matrix
    • Add Admin user and permit all changes project-matrix
  4. Dashboard > Packages Job > Configure > Enable project-based security
    • instance securityL inherit from ACL
    • Add user, rohan, and sam and set required permissions matrix-security

Good to Know?

Project-Level Security

Permission Matrix

Security Strategies

Common Permissions