Skip to content

Commit

Permalink
[sunbeam] Fix obfuscation for masakari and url
Browse files Browse the repository at this point in the history
Signed-off-by: Arif Ali <[email protected]>
  • Loading branch information
arif-ali authored and TurboTurtle committed Nov 30, 2024
1 parent ecfcf50 commit 50fdcb2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sos/report/plugins/sunbeam_hypervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,20 @@ def postproc(self):
]
connection_keys = ["connection", "sql_connection"]

openstack_folders = [
"nova",
"neutron",
"ceilometer",
"masakarimonitors",
]

self.do_path_regex_sub(
fr"{self.common_dir}/etc/(nova|neutron|ceilometer)/*",
fr'{self.common_dir}/etc/({"|".join(openstack_folders)})/*',
fr'(^\s*({"|".join(protect_keys)})\s*=\s*)(.*)',
r"\1*********"
)
self.do_path_regex_sub(
fr"{self.common_dir}/etc/(nova|neutron|ceilometer)/*",
fr'{self.common_dir}/etc/({"|".join(openstack_folders)})/*',
fr'(^\s*({"|".join(connection_keys)})\s*=\s*(.*)'
r'://(\w*):)(.*)(@(.*))',
r"\1*********\6"
Expand All @@ -87,6 +94,7 @@ def postproc(self):
"ovn_cacert",
"ovn_cert",
"ovn_key",
"url",
]

self.do_file_sub(
Expand Down

0 comments on commit 50fdcb2

Please sign in to comment.