From 7473dc7306d436b70b17ed512117c67ad65ca3ad Mon Sep 17 00:00:00 2001 From: Gerry Buteau Date: Mon, 24 Jul 2017 10:25:23 -0400 Subject: [PATCH] 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 --- muranoagent/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/muranoagent/app.py b/muranoagent/app.py index c6bad296..7b3f901a 100644 --- a/muranoagent/app.py +++ b/muranoagent/app.py @@ -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