Add private_key to the list of sanitized keys
Nova's create keypair operation will currently log the generated
keypair if debug logs are enabled.
(cherry picked from commit 0fb1b0aabe
)
Closes-Bug: #1770683
Change-Id: I7f889f0bf254fad43b1e26d32fa145f88c668b39
This commit is contained in:
parent
e64b7564b2
commit
edf2e78cc8
|
@ -57,7 +57,7 @@ SLUGIFY_HYPHENATE_RE = re.compile(r"[-\s]+")
|
|||
_SANITIZE_KEYS = ['adminPass', 'admin_pass', 'password', 'admin_password',
|
||||
'auth_token', 'new_pass', 'auth_password', 'secret_uuid',
|
||||
'secret', 'sys_pswd', 'token', 'configdrive',
|
||||
'CHAPPASSWORD', 'encrypted_key']
|
||||
'CHAPPASSWORD', 'encrypted_key', 'private_key']
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue