-
Notifications
You must be signed in to change notification settings - Fork 835
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
Make verbosity configurable and not leak sensitive values #4249
Conversation
Hi @gtrog. Thanks for your PR. I'm waiting for a SeldonIO or todo member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. |
Tested locally:
Default verbosity, no
Then, with overridden verbosity contains
|
Thank you @gtrog, the change looks good. Could you post difference in output between verbose level 1 and 2 for completness? |
Sure thing, if I build the docker image locally:
And then run it the same way the
Next, if I run it the same way, but explicitly setting verbosity=2:
So, this would allow you to still set verbosity=2 by adding An argument could be made that rclone should definitely fix this on their side as well, to not log sensitive values, but until they do, we shouldn't default to verbose=2. |
Thanks @gtrog, I'd probably prefer to have some verbosity 2.5 (knowing what vars are set but with values redacted automatically). But as it seems there's no option for this setting for verbosity 1 seems appropriate. |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RafalSkolasinski The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Make verbosity configurable and not leak sensitive values * Use same ENV value convention
Yeah, I'll see if I can make a contribution to RClone as well and maybe eventually circle back here and do that |
What this PR does / why we need it:
Reduce verbose logging, which leaks sensitive values like secrets/keys, but, make it configurable via
RCLONE_VERBOSE
.Which issue(s) this PR fixes:
Fixes #4247
Special notes for your reviewer: