Restrict run as credentials?

avatar
(anonymous user)
Product: PowerShell Universal
Version: 2.11.1


Is there a way to restrict which run as credentials can be used? I don’t want everyone who can run scripts allowed to pick any run as credential they want. Would like to be able to restrict if possible.

Thanks.

All Comments (11)

avatar

This would be nice to be able to lock down credentials to a specific role. By default, even if a role is selected, Administrators should have access to use credentials regardless.

avatar

This has been a concern of ours too…

avatar
credentials

I opened a feature suggestion on GitHub for Adam. I believe in an Enterprise Environment, this is crucial.

avatar

Seperate secrets is one of the reasons for why we use multiple IIS sites under seperate service accounts.
it doesnt solve the run-as issue, as runas cant work under IIS like that - but it does work for secrets in general.

avatar

I have multiple users, 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?

avatar

Any updates on this? A conversation around this came up today in our org.

avatar

I submitted a feature request on GitHub, but I don’t think there has been any update on this.

avatar

We’ve moved this into the 4.1 milestone.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Was this implemented? I setup a secret to be administrator only, but it seems operators can also apply it to scripts/apps in the execution setting.

avatar

This seems like a bug. Feel free to raise a GitHub issue.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Thanks Adam. I’ve created a bug report for it.