From 9776cdd332fb39dbff6ca9fb9ff98478a12920d9 Mon Sep 17 00:00:00 2001 From: lin-hua-cheng Date: Mon, 12 Oct 2015 15:06:19 -0700 Subject: [PATCH] Add 'secret' to sensitive keys Change-Id: Iaf1ffe5085315be6b1c26b5f8a7fa43aefe65dde Closes-Bug: #1505420 --- oslo_utils/strutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_utils/strutils.py b/oslo_utils/strutils.py index 56466b2e..62912e24 100644 --- a/oslo_utils/strutils.py +++ b/oslo_utils/strutils.py @@ -53,7 +53,7 @@ SLUGIFY_HYPHENATE_RE = re.compile(r"[-\s]+") # NOTE(flaper87): The following globals are used by `mask_password` _SANITIZE_KEYS = ['adminPass', 'admin_pass', 'password', 'admin_password', 'auth_token', 'new_pass', 'auth_password', 'secret_uuid', - 'sys_pswd', 'token'] + 'secret', 'sys_pswd', 'token'] # 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