diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py index 2ab4f5ae43..f3e6c73eed 100644 --- a/sos/report/plugins/networking.py +++ b/sos/report/plugins/networking.py @@ -67,6 +67,7 @@ def setup(self): "/sys/class/net/*/device/numa_node", "/sys/class/net/*/flags", "/sys/class/net/*/statistics/", + "/etc/nmstate/", ]) self.add_forbidden_path([ @@ -308,6 +309,14 @@ def setup(self): super().setup() + def postproc(self): + + self.do_path_regex_sub( + "/etc/nmstate", + r"(\s+(mka-cak|private-key-password|psk|password):).*", + r"\1 ******" + ) + class UbuntuNetworking(Networking, UbuntuPlugin, DebianPlugin): trace_host = "archive.ubuntu.com"