diff options
author | Matthew Booth <mbooth@redhat.com> | 2018-05-11 17:13:58 +0100 |
---|---|---|
committer | Matthew Booth <mbooth@redhat.com> | 2018-05-15 12:24:31 +0100 |
commit | 2c8452a42ef58e0352883512d1ecf724ae1dcdd5 (patch) | |
tree | 13aa3d312e740a2f3d6395f1a39761d503d12d76 | |
parent | b2d695014c87b996871dd988329d673af583fe18 (diff) | |
download | oslo-utils-2c8452a42ef58e0352883512d1ecf724ae1dcdd5.tar.gz |
Add private_key to the list of sanitized keys3.28.3
Nova's create keypair operation will currently log the generated
keypair if debug logs are enabled.
(cherry picked from commit 0fb1b0aabe100bb36d0e4ad6d5a9f96dd8eb6ff6)
Closes-Bug: #1770683
Change-Id: I7f889f0bf254fad43b1e26d32fa145f88c668b39
-rw-r--r-- | oslo_utils/strutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_utils/strutils.py b/oslo_utils/strutils.py index 7376ce0..6b82dba 100644 --- a/oslo_utils/strutils.py +++ b/oslo_utils/strutils.py @@ -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 |