diff options
author | Sandro Bonazzola <sbonazzo redhat com> | 2014-12-16 12:32:49 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-12-16 12:32:49 +0000 |
commit | 0a63fff9037848c8c240134fb8fff7e97e958a9d (patch) | |
tree | db4ad68f41343c86204c607efdb5bf33c7fda16b | |
parent | 0aec209ec6870c6ec3cbb6e2209d35adb2b62009 (diff) | |
download | sos-0a63fff9037848c8c240134fb8fff7e97e958a9d.tar.gz |
[ovirt] remove password leak from ovirt-engine setup answer file
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/ovirt.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sos/plugins/ovirt.py b/sos/plugins/ovirt.py index 407c9189..6e3a0925 100644 --- a/sos/plugins/ovirt.py +++ b/sos/plugins/ovirt.py @@ -186,4 +186,16 @@ class Ovirt(Plugin, RedHatPlugin): r'{key}=********'.format(key=key) ) + # 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 |