-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGN-6984 - allow to store Api Token in global and system scope #13
Conversation
…ionally to CredentialsScope.SYSTEM
README.md
Outdated
1. Store the **Trusted Build System Token** in a System Credential (Under Manage Jenkins / Manage Credentials) | ||
2. Store the API Token(s) in a System Credential so that it is available to the build pipelines of the respective projects | ||
1. Store the **Trusted Build System Token** in a System Credential (Under Manage Jenkins / Manage Credentials) with the id `SignPath.TrustedBuildSystemToken` | ||
2. Store the API Token(s) in a System Credential so that it is available to the build pipelines of the respective projects (default id `SignPath.ApiToken`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That change comes from me, right? We should probably say "credential" instead of "System credential"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was in the commit which you asked me to cherry-pick
Fixed
String scopeName = scope == null ? "<null>" : scope.getDisplayName(); | ||
CredentialsScope credentialScope = credential.getScope(); | ||
|
||
if (allowedScopes.length > 0 && !Arrays.asList(allowedScopes).contains(credentialScope)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the allowedScope.length > 0
actually necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If allowedScope is empty there is no scope restriction
Updated readme
…path-plugin into feature/SIGN-6984
Allow to store Api Token in global and system scope
Submitter checklist