diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py index e0b6eeb159..891540fed6 100644 --- a/sos/plugins/foreman.py +++ b/sos/plugins/foreman.py @@ -290,7 +290,12 @@ def postproc(self): "/var/log/foreman-installer/sat*", sat_debug_reg, r"\1 \2 ********") + # also hide passwords in yet different formats self.do_path_regex_sub( + "/var/log/foreman-installer/sat*", + r"(\.|_|-)password(=\'|=|\", \")(\w*)", + r"\1password\2********") + self.do_path_regex_sub( "/var/log/foreman-installer/foreman-proxy*", r"(\s*proxy_password\s=) (.*)", r"\1 ********")