aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/foreman.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index 3e500e5b..1d02777f 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -259,8 +259,13 @@ class Foreman(Plugin):
"/var/log/foreman-installer/foreman-proxy*",
r"(\s*proxy_password\s=) (.*)",
r"\1 ********")
+ # yaml values should be alphanumeric
self.do_path_regex_sub(
- "/etc/foreman(.*)((yaml|yml|conf)(.*)?)",
+ "/etc/foreman(.*)((yaml|yml)(.*)?)",
+ r"((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)",
+ r'\1"********"')
+ self.do_path_regex_sub(
+ "/etc/foreman(.*)((conf)(.*)?)",
r"((\:|\s*)(passw|cred|token|secret|key).*(\:\s|=))(.*)",
r"\1********")
self.do_path_regex_sub(