sakurashinken
sakurashinken

Reputation: 4078

How to restrict credentials in Jenkins?

I have multiple users on a Jenkins server, each with their own credentials for external secured servers needed to run their builds. I am using the credentials plugin to manage the stored credentials. Currently, when a user configures a project, they can use anyones credentials for doing external jobs. I need to make it so that each user only sees the credentials they own when they configure jobs on the jenkins server. How would I do this?

Upvotes: 24

Views: 18689

Answers (1)

Alex O
Alex O

Reputation: 8164

The Folders plugin allows to limit the scope of credentials to a specific folder.

If you're fine with restricting access of different users to different folders (e.g., with the Role Strategy plugin), then this could be a solution.

Just create the folder, enter the folder, then select the "Credentials" link on the sidebar. A new link should appear called "Folder" click that and then define your credentials. Jobs in other folders will not be able to use those.

Upvotes: 27

Related Questions