From f0a81c284d2f533e0fe8adc747c5bd0532a7684f Mon Sep 17 00:00:00 2001 From: lin-hua-cheng Date: Tue, 6 Oct 2015 20:42:40 -0700 Subject: Mask the sensitive values in debug log Change-Id: I0eb11a648c3be21749690f079229c8e63a678e6c Closes-Bug: #1501598 --- openstackclient/common/clientmanager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openstackclient/common') diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index 55c6fe53..edabf65e 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -20,6 +20,7 @@ import logging import pkg_resources import sys +from oslo_utils import strutils import requests from openstackclient.api import auth @@ -167,7 +168,8 @@ class ClientManager(object): self._project_name = self._auth_params['tenant_name'] LOG.info('Using auth plugin: %s' % self.auth_plugin_name) - LOG.debug('Using parameters %s' % self._auth_params) + LOG.debug('Using parameters %s' % + strutils.mask_password(self._auth_params)) self.auth = auth_plugin.load_from_options(**self._auth_params) # needed by SAML authentication request_session = requests.session() -- cgit v1.2.1