diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-07-18 23:32:05 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-07-18 23:55:52 +0200 |
commit | 35d529d359643525755c2c50b2c70e490ba7609a (patch) | |
tree | d60a3f36b6897532da58850cdd1ca1467c6f0996 | |
parent | 860a8da43c0c81c88dd676137a55df9d087f2fb4 (diff) | |
download | sos-35d529d359643525755c2c50b2c70e490ba7609a.tar.gz |
cluster plugin: add obfuscation of luci secrets
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | sos/plugins/cluster.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/cluster.py b/sos/plugins/cluster.py index 8a3432ea..68bfa3f7 100644 --- a/sos/plugins/cluster.py +++ b/sos/plugins/cluster.py @@ -144,6 +144,8 @@ class Cluster(Plugin, RedHatPlugin): self.do_file_sub(cluster_conf, r"(\s*\<fencedevice\s*.*\s*passwd\s*=\s*)\S+(\")", r"\1%s" %('"***"')) + for luci_cfg in glob("/var/lib/luci/etc/*.ini*"): + self.do_file_sub(luci_cfg, r"(.*secret\s*=\s*)\S+", r"\1******") self.do_cmd_output_sub("corosync-objctl", r"(.*fence.*\.passwd=)(.*)", r"\1******") |