Browse Source

Mask sensitive information before logging execution plan.

Use oslo_utils.strutils to mask any potentially sensitive
information in the execution plan before writing to the log.

Change-Id: I9008dcd68da4ba14bbf1360a672e1a91ae0a8e91
Closes-Bug: #1706059
tags/3.3.0
Gerry Buteau 1 year ago
parent
commit
7473dc7306
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      muranoagent/app.py

+ 3
- 1
muranoagent/app.py View File

@@ -19,6 +19,7 @@ import time
19 19
 
20 20
 from oslo_log import log as logging
21 21
 from oslo_service import service
22
+from oslo_utils import strutils
22 23
 import semantic_version
23 24
 import six
24 25
 
@@ -77,7 +78,8 @@ class MuranoAgent(service.Service):
77 78
 
78 79
         plan = self._queue.get_execution_plan()
79 80
         if plan is not None:
80
-            LOG.debug("Got an execution plan '{0}':".format(str(plan)))
81
+            LOG.debug("Got an execution plan '{0}':".format(
82
+                strutils.mask_password(str(plan))))
81 83
             self._run(plan)
82 84
             return
83 85
 

Loading…
Cancel
Save