Comment 1 for bug 1770683

Revision history for this message
Matthew Booth (mbooth-9) wrote :

I believe the fix is as simple as:

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']

It doesn't even appear that more tests are required, as this list is already adequately tested.