-
Notifications
You must be signed in to change notification settings - Fork 542
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
[plugins] Obfuscate proxy credentials in env. settings #3789
[plugins] Obfuscate proxy credentials in env. settings #3789
Conversation
Trivial reproducer:
I am not sure if whole |
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
OK, the |
HTTP_PROXY or similar env.variables can contain credentials we must scrub. The variables or directly credentials can be specified in a few places the commit deals with. Resolves: sosreport#3789 Signed-off-by: Pavel Moravec <[email protected]>
ee3acd2
to
100071d
Compare
"/var/log/anaconda.*", | ||
"/root/install.log", | ||
"/root/install.log.syslog" | ||
] | ||
|
||
self.add_copy_spec(paths) | ||
self.add_copy_spec(self.copypaths) |
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.
The credentials can be in either anaconda log or in the *ks.cfg
file - hence apply postproc to all copyspecs.
The pylint failure is solved already but checking out this pr doesn't show the commit, so I think you'll have to resync. |
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.
looks good to me, it would be good to do the same in apt.py as well, but if you prefer, I can do a seperate PR for that later (as that is already obfuscating proxy)
HTTP_PROXY or similar env.variables can contain credentials we must scrub. The variables or directly credentials can be specified in a few places the commit deals with. Futher, update apt plugin to use the new do_paths_httpproxy_sub method. Resolves: sosreport#3789 Signed-off-by: Pavel Moravec <[email protected]>
100071d
to
824cc48
Compare
Good point wrt Apt plugin where I in fact copied the RE from - I just updated the PR accordingly. |
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 LGTM, however I should note that what this does and what it says it does are slightly different.
The obfuscation isn't actually looking for *_PROXY
variables, just urls with username and passwords in them, which so happen to be the convention for proxy authentication.
I have a slight preference to rename to do_path_http_sub()
or something similar, but it is not a big item for me and I'm fine if you want to merge as is.
HTTP_PROXY or similar env.variables can contain credentials we must scrub. The variables or directly credentials of a http(s) URL can be specified in several places the commit deals with. Futher, update apt plugin to use the new do_paths_httpp_sub method. Resolves: sosreport#3789 Signed-off-by: Pavel Moravec <[email protected]>
824cc48
to
7eb20e7
Compare
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Adding stageone and stagetwo tests for [system] plugin. Also adding tag scrub for only testing scrub of sensitive data. And updating README with how to call scrub and stagetwo tests. Related: sosreport#3788 Related: sosreport#3789 Resolves: sosreport#3798 Signed-off-by: Jan Jansky <[email protected]>
Obfuscate credentials in env.variable settings for e.g. HTTP_PROXY or similar.
Inspired by: #3788
Resolves: #3789
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines