diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-03-10 22:27:11 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-03-23 17:28:25 +0000 |
commit | 55d5b8b3cebb2fbb1e7980649b90c91dbd7f4e55 (patch) | |
tree | eea0c6dded17460937a43f670aee48166dbe22b3 | |
parent | f077b17e527528de7e6b6d34099db806377f7d4a (diff) | |
download | sos-55d5b8b3cebb2fbb1e7980649b90c91dbd7f4e55.tar.gz |
[pacemaker] Scrub passwords in pcs config
passwd=.. and incoming_password=.. to be obfuscated.
Resolves: #957
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/plugins/pacemaker.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sos/plugins/pacemaker.py b/sos/plugins/pacemaker.py index 43083dfe..0dac1da5 100644 --- a/sos/plugins/pacemaker.py +++ b/sos/plugins/pacemaker.py @@ -68,4 +68,12 @@ class Pacemaker(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): ' --dest %s --from "%s"' % (crm_scrub, crm_dest, crm_from), chroot=self.tmp_in_sysroot()) + + def postproc(self): + self.do_cmd_output_sub( + "pcs config", + r"(passwd=|incoming_password=)\S+", + r"\1********" + ) + # vim: et ts=4 sw=4 |