Sandro Bonazzola has uploaded a new change for review. Change subject: remove password leak from ovirt-engine setup answer file ......................................................................
remove password leak from ovirt-engine setup answer file Change-Id: Ie86186b48e04141d2ed7ee9b2185eb3a09bbc166 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1162788 Signed-off-by: Sandro Bonazzola <[email protected]> --- M src/sos/plugins/ovirt.py 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector refs/changes/72/35172/1 diff --git a/src/sos/plugins/ovirt.py b/src/sos/plugins/ovirt.py index a98be0e..3c52844 100644 --- a/src/sos/plugins/ovirt.py +++ b/src/sos/plugins/ovirt.py @@ -183,4 +183,16 @@ ) + # Answer files contain passwords + for key in ( + 'OVESETUP_CONFIG/adminPassword', + 'OVESETUP_CONFIG/remoteEngineHostRootPassword', + ): + self.do_path_regex_sub( + r'/var/lib/ovirt-engine/setup/answers/.*', + r'{key}=(.*)'.format(key=key), + r'{key}=********'.format(key=key) + ) + + # vim: expandtab tabstop=4 shiftwidth=4 -- To view, visit http://gerrit.ovirt.org/35172 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie86186b48e04141d2ed7ee9b2185eb3a09bbc166 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-log-collector Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
