Skip to content

Restore compatibility with Credentials Binding Plugin after SECURITY-698 #74

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jpederzolli
Copy link
Member

This resolves an issue using the credentials binding plugin and a credential with a $ in it.

Specifically, this change jenkinsci/credentials-binding-plugin@0c75238#diff-c4de7f03a70e0d1a7b7e4153c45cfcb9R101 converts a single $ into $$$$ -- resulting in the container process seeing $$ instead of a single $. This PR results in the correct credentials being passed to the container build.

Additionally, logic was added to mask sensitive variables since they will not be masked (completely) if the credential contains one or more $ characters.

@jpederzolli jpederzolli changed the title Restore compatibility with Crdentials Binding Plugin after SECURITY-698 Restore compatibility with Credentials Binding Plugin after SECURITY-698 Jul 6, 2018
@jpederzolli
Copy link
Member Author

FYI @jonhermansen, this resolves a security issue with passwords (with a $) being exposed in console logs.

@jonhermansen
Copy link
Member

Hey @jpederzolli, thank you for the patch! I would like to merge this ASAP but I want to go through some manual testing myself first. I'll try to get it merged/released this weekend.

@jpederzolli
Copy link
Member Author

@jonhermansen sounds good, thanks!

@jpederzolli
Copy link
Member Author

Any word on this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants