-
-
Notifications
You must be signed in to change notification settings - Fork 105
JENKINS-75933 Allow to control logging of masking message #379
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
base: master
Are you sure you want to change the base?
Conversation
how is this filling up your logs? can you create an issue for this? |
jglick
left a comment
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.
this is filling up our logs
is rather surprising. A single log line per withCredentials step noting which variables are due to be masked seems appropriate and necessary. In what scenario would this “fill up” logs?
| private static final class Execution2 extends GeneralNonBlockingStepExecution { | ||
|
|
||
| private static final long serialVersionUID = 1; | ||
| private static final boolean disableSecurityLogging = "false".equalsIgnoreCase(System.getenv("DISABLE_SECURITY_LOGGING")); |
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.
https://javadoc.jenkins.io/jenkins/util/SystemProperties.html#getBoolean(java.lang.String,boolean) and please use positive rather than negative sense, e.g. enable mask logging on by default or set to false to override.
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.
Okay @jglick
Let me change that.
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.
Updated as per review comments @jglick
Let me try to give you a sample log. I explained the scenario in https://issues.jenkins.io/browse/JENKINS-75933 |
@jglick and @jtnord May be what is lacking here (as well as in the similar PR that I raised for the configuration plugin) is the understanding that this pipeline is a comprehensive pipeline that takes multiple products through the process and deploys them to 14 different datacenters. Just to give a brief looks at the steps, see what happens just at the CI part alone. What I am sharing is just the CI part and this repeats for multipel products when an overall validation runs.
|
where are you using credentialsBinding? in if you are doing this 100 times, still the line entries are hardly visible against the 100 of maven invocations, and would consume negligible disk space that necessitates their removal.
To where, Jenkins or sonarqube? if the latter why not performPublishSonarCube(), and if the former no credentials should be invloved here? |
All those are closures where credentials are used. And it is also used multuple times for interacting with varuous systems. |
I would leave it here. As I am not sure what additional information I can give to have this approved. |
|
Any comments? |
Ability to disable the logs that says "Masking" of credentials as this is filling up our logs.
Testing done
In progress
Submitter checklist