From 97092bd38baff168b85358ebbe13ebd3ef618a97 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Thu, 11 Apr 2024 17:16:59 +0000 Subject: [PATCH] Change mtcInfo log in mtcCtrlMsg.cpp to a dlog The mtcInfo message log was enhanced to include the payload in a previous update without realizing that message contained the target BMC's username and password. This update switches that log to a debug (not enabled by default) log to avoid revealing provisioned BMC crediatials in the mtce logs. Test Plan: PASS: Verify mtce package build PASS: Verify mtcInfo log with bmc info payload is no longer logged. Story: 2010940 Task: 49857 Change-Id: I35db04e9292471d92c24c98922350cfb72b5035e --- mtce/src/maintenance/mtcCtrlMsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtce/src/maintenance/mtcCtrlMsg.cpp b/mtce/src/maintenance/mtcCtrlMsg.cpp index 96f8ef8b..80beefa3 100755 --- a/mtce/src/maintenance/mtcCtrlMsg.cpp +++ b/mtce/src/maintenance/mtcCtrlMsg.cpp @@ -677,7 +677,7 @@ int send_mtc_cmd ( string & hostname, int cmd , int interface, string json_dict mtc_cmd.cmd = cmd ; mtc_cmd.num = 0 ; data = "{\"mtcInfo\":" + json_dict + "}"; - ilog("%s mtc info update: %s", hostname.c_str(), data.c_str()); + dlog("%s mtc info update: %s", hostname.c_str(), data.c_str()); rc = PASS ; break ; }