Merge "Mask passwords in configuration-show"

This commit is contained in:
Jenkins 2017-06-05 21:57:31 +00:00 committed by Gerrit Code Review
commit 3174b06183
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
---
security:
- Configuration show masks any password values.

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_utils import strutils
class ConfigurationView(object): class ConfigurationView(object):
@ -93,7 +95,7 @@ class DetailedConfigurationView(object):
"id": self.configuration.id, "id": self.configuration.id,
"name": self.configuration.name, "name": self.configuration.name,
"description": self.configuration.description, "description": self.configuration.description,
"values": values, "values": strutils.mask_dict_password(values),
"created": self.configuration.created, "created": self.configuration.created,
"updated": self.configuration.updated, "updated": self.configuration.updated,
"instance_count": "instance_count":