Mask passwords in configuration-show

Use the mask_dict_password util on the configuration view.

Change-Id: Ifbc2f317d217497ce6aad05423f5af7dc883721c
Closes-Bug: #1645792
This commit is contained in:
Matt Van Dijk 2016-10-11 12:20:23 -04:00 committed by Trevor McCasland
parent adff356315
commit f7d41c7b7c
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
# under the License.
from oslo_utils import strutils
class ConfigurationView(object):
@ -93,7 +95,7 @@ class DetailedConfigurationView(object):
"id": self.configuration.id,
"name": self.configuration.name,
"description": self.configuration.description,
"values": values,
"values": strutils.mask_dict_password(values),
"created": self.configuration.created,
"updated": self.configuration.updated,
"instance_count":