You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2019/05/14 05:58:54 UTC

[ambari] branch branch-2.7 updated: AMBARI-25277. Security Concern as ambari-server.log and ambari-agent.log shows cleartext passwords. (aonishuk)

This is an automated email from the ASF dual-hosted git repository.

aonishuk pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new bb76491  AMBARI-25277. Security Concern as ambari-server.log and ambari-agent.log shows cleartext passwords. (aonishuk)
bb76491 is described below

commit bb764916e2d8e6f380dc8ac4d1686aae1b5eda5b
Author: Andrew Onishuk <ao...@hortonworks.com>
AuthorDate: Mon May 13 14:24:09 2019 +0300

    AMBARI-25277. Security Concern as ambari-server.log and ambari-agent.log shows cleartext passwords. (aonishuk)
---
 .../src/main/python/ambari_agent/listeners/ServerResponsesListener.py   | 2 +-
 ambari-server/src/main/resources/stacks/stack_advisor.py                | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/ambari-agent/src/main/python/ambari_agent/listeners/ServerResponsesListener.py b/ambari-agent/src/main/python/ambari_agent/listeners/ServerResponsesListener.py
index 02d60a5..a4af571 100644
--- a/ambari-agent/src/main/python/ambari_agent/listeners/ServerResponsesListener.py
+++ b/ambari-agent/src/main/python/ambari_agent/listeners/ServerResponsesListener.py
@@ -74,7 +74,7 @@ class ServerResponsesListener(EventListener):
     This string will be used to log received messsage of this type
     """
     if Constants.CORRELATION_ID_STRING in headers:
-      correlation_id = headers[Constants.CORRELATION_ID_STRING]
+      correlation_id = int(headers[Constants.CORRELATION_ID_STRING])
       
       if correlation_id in self.logging_handlers:
         message_json = self.logging_handlers[correlation_id](headers, message_json)
diff --git a/ambari-server/src/main/resources/stacks/stack_advisor.py b/ambari-server/src/main/resources/stacks/stack_advisor.py
index 850c21c..d82cf80 100644
--- a/ambari-server/src/main/resources/stacks/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/stack_advisor.py
@@ -1502,7 +1502,6 @@ class DefaultStackAdvisor(StackAdvisor):
       if siteProperties is not None:
         siteRecommendations = recommendedDefaults[siteName]["properties"]
         self.logger.info("SiteName: %s, method: %s" % (siteName, method.__name__))
-        self.logger.info("Site properties: %s" % str(siteProperties))
         self.logger.info("Recommendations: %s" % str(siteRecommendations))
         return method(siteProperties, siteRecommendations, configurations, services, hosts)
     return []