JENKINS-75933 Allow to control logging of masking message#379
JENKINS-75933 Allow to control logging of masking message#379vrenjith wants to merge 5 commits intojenkinsci:masterfrom
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.
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.
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.
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