Skip to content

Commit

Permalink
[placement] Obfuscate passwords that have been missed
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 Oct 23, 2024
1 parent 92393e4 commit 4d63e4f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sos/report/plugins/openstack_placement.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,17 @@ def apply_regex_sub(self, regexp, subst):
)

def postproc(self):
protect_keys = ["password", "memcache_secret_key"]
connection_keys = ["database_connection", "slave_connection"]
protect_keys = [
"password",
"memcache_secret_key",
"NOVA_API_PASS",
"PLACEMENT_PASS",
]
connection_keys = [
"database_connection",
"slave_connection",
"connection",
]

join_con_keys = "|".join(connection_keys)

Expand Down

0 comments on commit 4d63e4f

Please sign in to comment.