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.

Closes-Bug: #1770683
Change-Id: I7f889f0bf254fad43b1e26d32fa145f88c668b39
This commit is contained in:
Matthew Booth 2018-05-11 17:13:58 +01:00
parent d365e4f666
commit 0fb1b0aabe
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,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