This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1b1cc6d AMBARI-23282. Setting a non-world-readable permission for
atlas-application.properties file (#703)
1b1cc6d is described below
commit 1b1cc6d1ccfcfb89594206ca7283db05b852bf89
Author: smolnar82 <[email protected]>
AuthorDate: Thu Mar 22 08:59:13 2018 +0100
AMBARI-23282. Setting a non-world-readable permission for
atlas-application.properties file (#703)
---
.../common-services/ATLAS/0.1.0.2.3/package/scripts/metadata.py | 2 +-
.../src/test/python/stacks/2.3/ATLAS/test_metadata_server.py | 4 ++--
ambari-server/src/test/python/stacks/2.5/ATLAS/test_atlas_server.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata.py
b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata.py
index 850e789..d78efe9 100644
---
a/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata.py
+++
b/ambari-server/src/main/resources/common-services/ATLAS/0.1.0.2.3/package/scripts/metadata.py
@@ -129,7 +129,7 @@ def metadata(type='server'):
# Needed by both Server and Client
PropertiesFile(format('{conf_dir}/{conf_file}'),
properties = params.application_properties,
- mode=0644,
+ mode=0600,
owner=params.metadata_user,
group=params.user_group
)
diff --git
a/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py
b/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py
index 5d99867..0213cdc 100644
--- a/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py
+++ b/ambari-server/src/test/python/stacks/2.3/ATLAS/test_metadata_server.py
@@ -125,7 +125,7 @@ class TestMetadataServer(RMFTestCase):
properties=app_props,
owner=u'atlas',
group=u'hadoop',
- mode=0644,
+ mode=0600,
)
self.assertResourceCalled('Directory',
'/var/log/ambari-infra-solr-client',
create_parents = True,
@@ -260,7 +260,7 @@ class TestMetadataServer(RMFTestCase):
properties=app_props,
owner=u'atlas',
group=u'hadoop',
- mode=0644,
+ mode=0600,
)
self.assertResourceCalled('TemplateConfig',
self.conf_dir+"/atlas_jaas.conf",
diff --git
a/ambari-server/src/test/python/stacks/2.5/ATLAS/test_atlas_server.py
b/ambari-server/src/test/python/stacks/2.5/ATLAS/test_atlas_server.py
index 0d5eb2a..6b49689 100644
--- a/ambari-server/src/test/python/stacks/2.5/ATLAS/test_atlas_server.py
+++ b/ambari-server/src/test/python/stacks/2.5/ATLAS/test_atlas_server.py
@@ -122,7 +122,7 @@ class TestAtlasServer(RMFTestCase):
properties=app_props,
owner=u'atlas',
group=u'hadoop',
- mode=0644,
+ mode=0600,
)
self.assertResourceCalled('Directory', '/var/log/ambari-infra-solr-client',
create_parents=True,
--
To stop receiving notification emails like this one, please contact
[email protected].