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
This commit is contained in:
parent
b4623d96dd
commit
7473dc7306
|
@ -19,6 +19,7 @@ import time
|
|||
|
||||
from oslo_log import log as logging
|
||||
from oslo_service import service
|
||||
from oslo_utils import strutils
|
||||
import semantic_version
|
||||
import six
|
||||
|
||||
|
@ -77,7 +78,8 @@ class MuranoAgent(service.Service):
|
|||
|
||||
plan = self._queue.get_execution_plan()
|
||||
if plan is not None:
|
||||
LOG.debug("Got an execution plan '{0}':".format(str(plan)))
|
||||
LOG.debug("Got an execution plan '{0}':".format(
|
||||
strutils.mask_password(str(plan))))
|
||||
self._run(plan)
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue