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:
parent
adff356315
commit
f7d41c7b7c
@ -0,0 +1,3 @@
|
||||
---
|
||||
security:
|
||||
- Configuration show masks any password values.
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user