Sample team members for jenkins

Double-click on the image to zoom-out ...Larger.
To return to Home page: Refresh Page or Take ESC Button on Keyboard.
Jenkins user created and offered the least privileges-PoLP
The Principle of Least Privilege (PoLP) ensures that users in Jenkins have only the minimum permissions required to perform their tasks, reducing security risks. Below is a step-by-step guide on how to create a Jenkins user and assign the least privileges.
1, Create a New User in Jenkins
- Go to Jenkins Dashboard → Manage Jenkins → Manage Users.
- Click Create User.
- Enter:
- Username: (e.g.,
developer01
) - Password
- Full Name
- Username: (e.g.,
- Click Create User.
2, Install Role-Based Authorization Strategy Plugin
- Go to Manage Jenkins → Manage Plugins.
- Search for Role-Based Authorization Strategy.
- Install the plugin and restart Jenkins.
3, Configure Role-Based Access Control (RBAC)
Step 1: Enable Role-Based Authorization
- Go to Manage Jenkins → Configure Global Security.
- Under Authorization, select Role-Based Strategy.
- Click Save.
Step 2: Define a Least-Privilege Role
- Navigate to Manage Jenkins → Manage and Assign Roles.
- Click on Manage Roles.
- Under Project Roles, add a new role (e.g.,
developer
). - In the Pattern field, enter
.*
to apply the role to all jobs. - Grant the user only essential permissions:
- Overall: Read
- Job: Read, Build, Workspace
- View: Read
- Deny administrative privileges (like Job Delete, Configure, Manage Nodes, etc.)
- Click Save.
Step 3: Assign the Role to the User
- Navigate to Manage Jenkins → Manage and Assign Roles → Assign Roles.
- Under Users/Groups, enter the username (
developer01
). - Assign the developer role to the user.
- Click Save.
4, Verify the User's Access
- Log out from the admin account.
- Log in as
developer01
. - Verify that:
- The user can see jobs but cannot configure/delete them.
- The user can build jobs but cannot modify system settings.
- The user has no admin rights.
5, Apply Additional Security Controls
- Restrict API Tokens: Users should generate API tokens instead of using passwords.
- Limit Access to Credentials: Only admins should have access to Jenkins credentials.
- Use Folders for Role Isolation: Assign specific permissions per project folder.
Summary: PoLP Implementation in Jenkins
Created a new user (developer01
).
Installed & configured Role-Based Authorization Strategy.
Assigned minimum required privileges to a developer role.
Verified access restrictions.
No comments:
Post a Comment