Merge "Mask passwords in configuration-show"
This commit is contained in:
commit
3174b06183
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
security:
|
||||||
|
- Configuration show masks any password values.
|
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user