adam
adam

Reputation: 133

Jenkins Project Based Security

I am using role based security in jenkinks.

what i am wondering is there a to do the following.

Present:

using role based plugin.

under Manager and assign roles

issue is:

Future what i want:

admin Role:

project based:

any new security rights plugin out there, i am using role-based plugin.

any new interesting plugin i can checkout to see which direction i can go?

Upvotes: 6

Views: 35157

Answers (2)

hdmq
hdmq

Reputation: 277

You need this:

First step is install the plugin "Jenkins Role Strategy Plugin".
Second step is reset Jenkins.

Follow the steps:

  1. Login to Jenkins with your credentials.
  2. Go to "Manage Jenkins".
  3. Go to "Configure Global Security".
  4. In the option "Authorization" select "Project-based Matrix Authorization Strategy" and put the privileges as appropriate.

Obviously, if you need have permissions like administrator, then will put the privileges as appropriate.

Note: If you need put privileges by job, then will must setting for each job in the option "Enable project-based security".

Regards...

Upvotes: 7

333kenshin
333kenshin

Reputation: 2045

@adam,

Take a look at Jenkins Role Strategy Plugin.

This plugin adds a new role-based strategy to ease and fasten users management. This strategy allows:

  • Creating global roles, such as admin, job creator, anonymous, etc., allowing to set Overall, Slave, Job, Run, View and SCM permissions on a global basis.
  • Creating project roles, allowing to set only Job and Run permissions on a project basis.
  • Creating slave roles, allowing to set node-related permissions.
  • Assigning these roles to users.

Hope that helps.

Upvotes: 2

Related Questions