summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2018-05-11 17:13:58 +0100
committerMatthew Booth <mbooth@redhat.com>2018-05-11 17:19:57 +0100
commit0fb1b0aabe100bb36d0e4ad6d5a9f96dd8eb6ff6 (patch)
tree9e391d5a7ed27480a0e29dd21c6fec647820719c
parentd365e4f6660b7d6e61bf0d86a744a111b7718787 (diff)
downloadoslo-utils-0fb1b0aabe100bb36d0e4ad6d5a9f96dd8eb6ff6.tar.gz
Add private_key to the list of sanitized keys3.36.2
Nova's create keypair operation will currently log the generated keypair if debug logs are enabled. Closes-Bug: #1770683 Change-Id: I7f889f0bf254fad43b1e26d32fa145f88c668b39
-rw-r--r--oslo_utils/strutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_utils/strutils.py b/oslo_utils/strutils.py
index 929b34d..c7d0f55 100644
--- a/oslo_utils/strutils.py
+++ b/oslo_utils/strutils.py
@@ -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