-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[JENKINS-62820] Ability to hide credential usage in job output #924
[JENKINS-62820] Ability to hide credential usage in job output #924
Conversation
Added documentation Added unit test
Build only fails on windows nodes, with I guess timeouts. Is there a way to trigger build again without pushing dummy commits to the branch ? |
I cannot find the artifacts to download the hpi to test interactively ? |
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.
Would you consider the comments that I've added.
I can't find downloadable artifacts either. I'm confident they were available previously, but they may now be deployed as incremental builds to the artifact repository. I don't see them in the incremental builds in the artifact repository either. |
Co-authored-by: Mark Waite <[email protected]>
Changes based on feedback
I'm surprised that this change is sufficient for your requirements. This change does not alter the git client plugin output which reports:
Is it enough to hide only the credential ID or do you also want to hide the disagnostic message in the build log that shows the description of the 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.
Requesting changes to remind me not to merge until it is understood why it is enough to suppress the credentials ID but not necessary to suppress the credential description.
I confirmed with interactive testing that it behaves as expected.
For us it is not necessary to hide the description. The most important thing is users cannot get the credential id to further use it in withCredentials blocks. |
JENKINS-62820 - add ability to hide credenital use in job output
In our company we are using git plugin to checkout git repositories with centrally managed credentials. Pipeline users should not know which credentials are being used to not give them the opportunity to use this credentials in a withCredentials block and bypass certain 4-eyes principles that are in place. Therefore we would like to introduce the possibility to add a global option to hide the output of credential usage in the job log.
Checklist
Types of changes
Further comments
Not applicable