Mask chapsecret

Doesn't mask chapsecre
>>> strutils.mask_password("'chapsecre' : 'aaaaa'")
"'chapsecre' : 'aaaaa'"

Masks chapsecret
>>> strutils.mask_password("'chapsecret' : 'aaaaa'")
"'chapsecret' : '***'"

Closes-Bug: #2038466
Change-Id: Iae22a544ff69069b1b82b6ab3a885f3a19869287
This commit is contained in:
whoami-rajat 2023-10-04 17:42:31 +00:00
parent a122f5c065
commit cecf061e6e

View File

@ -76,7 +76,7 @@ _SANITIZE_KEYS = ['adminpass', 'admin_pass', 'password', 'admin_password',
'designaterndckey', 'cephadminkey', 'heatauthencryptionkey',
'cephclientkey', 'keystonecredential',
'barbicansimplecryptokek', 'cephrgwkey', 'swifthashsuffix',
'migrationsshkey', 'cephmdskey', 'cephmonkey']
'migrationsshkey', 'cephmdskey', 'cephmonkey', 'chapsecret']
# NOTE(ldbragst): Let's build a list of regex objects using the list of
# _SANITIZE_KEYS we already have. This way, we only have to add the new key