简体   繁体   中英

Implementing security for users in jenkins

I am after a better solution for security in Jenkins. After my play around this space, my current solution is to implement the 'Project-based Matrix Authorization Strategy'. I was previously considering running Jenkins behind Apache and control security through Apache. But during my trial with matrix based security, I was able to assign full access to logged in users and block anonymous users from seeing anything on the dashboard except login-page.

Before I proceed with my beta servers, I would like to seek experts advice to understand what I am doing is correct ?or there is a better way to do this. At the moment I have around 30 users created in my system.

If matrix based solution is the best and easiest, I would like to know, 1) Is it possible to group users and assign access based on groups ? So that I don't have to give users on individual basis

2) I also saw a post about 'Role strategy plug-in', but I couldn't see that in my Jenkins. Not sure if this plug-in out of date and/or nomore supported

Thanks in advance.

I'm using the Role Strategy plugin with a LDPA directory and it works well.

You just have to install this plugin on your Jenkins server and to switch from "Matrix-based security" to "Role-Based Strategy".

Next, you will be able to define roles:

在此处输入图片说明

And assign them to users (or LDAP groups, if you have a LDAP directory):

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM