ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avija...@apache.org
Subject ambari git commit: AMBARI-15535 : Permission on metrics-grafana.ini should be 600 to protect password (avijayan)
Date Wed, 23 Mar 2016 16:56:14 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 d177b60fe -> c8a7040c9


AMBARI-15535 : Permission on metrics-grafana.ini should be 600 to protect password (avijayan)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c8a7040c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c8a7040c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c8a7040c

Branch: refs/heads/branch-2.2
Commit: c8a7040c9ef2afb659cb724055c832b98280cac3
Parents: d177b60f
Author: Aravindan Vijayan <avijayan@hortonworks.com>
Authored: Wed Mar 23 09:55:26 2016 -0700
Committer: Aravindan Vijayan <avijayan@hortonworks.com>
Committed: Wed Mar 23 09:56:04 2016 -0700

----------------------------------------------------------------------
 .../common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py   | 3 ++-
 .../python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c8a7040c/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
index a5d6ee6..836fe27 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/ams.py
@@ -423,7 +423,8 @@ def ams(name=None, action=None):
     File(format("{ams_grafana_conf_dir}/ams-grafana.ini"),
          owner=params.ams_user,
          group=params.user_group,
-         content=InlineTemplate(params.ams_grafana_ini_template)
+         content=InlineTemplate(params.ams_grafana_ini_template),
+         mode=0600
          )
 
     if action != 'stop':

http://git-wip-us.apache.org/repos/asf/ambari/blob/c8a7040c/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py
b/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py
index 2e13862..c04ece7 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/AMBARI_METRICS/test_metrics_grafana.py
@@ -102,5 +102,6 @@ class TestMetricsGrafana(RMFTestCase):
     self.assertResourceCalled('File', '/etc/ambari-metrics-grafana/conf/ams-grafana.ini',
                               owner = 'ams',
                               group = 'hadoop',
-                              content = InlineTemplate(self.getConfig()['configurations']['ams-env']['content'])
+                              content = InlineTemplate(self.getConfig()['configurations']['ams-env']['content']),
+                              mode = 0600
                               )


Mime
View raw message