-
Notifications
You must be signed in to change notification settings - Fork 61
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
[FIXED JENKINS-43857] Mask Secret parameters in InputSubmittedAction #16
base: master
Are you sure you want to change the base?
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
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.
Does not seem to solving an actual problem.
@@ -122,7 +122,10 @@ public void parameter() throws Exception { | |||
|
|||
// make sure 'x' gets assigned to false | |||
System.out.println(b.getLog()); | |||
assertTrue(b.getLog().contains("after: false")); | |||
// TODO: Should we be masking Secrets? |
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.
Well yes, that is the important problem to solve!
String k = entry.getKey(); | ||
Object v = entry.getValue(); | ||
if (v instanceof Secret) { | ||
this.parameters.put(k, "******"); |
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.
Why? The plaintext cannot be recovered from build.xml
without access to global keys anyway. PasswordParameterValue
stores a Secret
so why should we not do the same here?
I'll let @i386 comment since this was his concern. |
Problem: If we serialize the contents of this Action via Staplers export mechanism then would we be leaking secrets? |
JENKINS-43857
cc @reviewbybees