diff --git a/Dockerfile b/Dockerfile index 8915d575a0..ec34b5d22b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,6 +58,7 @@ RUN chmod +x /opt/apache-atlas/bin/repair_index.py COPY atlas-hub/atlas_start.py.patch atlas-hub/atlas_config.py.patch /opt/apache-atlas/bin/ COPY atlas-hub/pre-conf/atlas-log4j.xml /opt/apache-atlas/conf/ COPY atlas-hub/pre-conf/atlas-log4j2.xml /opt/apache-atlas/conf/ +COPY atlas-hub/pre-conf/atlas-auth/ /opt/apache-atlas/conf/ RUN curl https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.6.2/jolokia-jvm-1.6.2-agent.jar -o /opt/apache-atlas/libext/jolokia-jvm-agent.jar diff --git a/atlas-hub/pre-conf/atlas-auth/atlas-atlas-audit.xml b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-audit.xml new file mode 100755 index 0000000000..39dbcdc1c3 --- /dev/null +++ b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-audit.xml @@ -0,0 +1,139 @@ + + + + + + xasecure.audit.is.enabled + true + + + + + + xasecure.audit.destination.solr + false + + + + xasecure.audit.destination.solr.urls + NONE + + + + xasecure.audit.destination.solr.zookeepers + + + + + xasecure.audit.destination.solr.collection + NONE + + + + + + xasecure.audit.destination.hdfs + false + + + + xasecure.audit.destination.hdfs.dir + hdfs://__REPLACE__NAME_NODE_HOST:8020/ranger/audit + + + + xasecure.audit.destination.hdfs.subdir + %app-type%/%time:yyyyMMdd% + + + + xasecure.audit.destination.hdfs.filename.format + %app-type%_ranger_audit_%hostname%.log + + + + xasecure.audit.destination.hdfs.file.rollover.sec + 86400 + + + + + + + xasecure.audit.destination.log4j + false + + + + xasecure.audit.destination.log4j.logger + AUTH_AUDIT + + + + + xasecure.audit.destination.elasticsearch + true + + + xasecure.audit.elasticsearch.is.enabled + true/ + + + xasecure.audit.destination.elasticsearch.urls + logging-master.logging.svc.cluster.local + + + xasecure.audit.destination.elasticsearch.index + ranger-audit + + diff --git a/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security-changes.cfg b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security-changes.cfg new file mode 100755 index 0000000000..8fd6e09274 --- /dev/null +++ b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security-changes.cfg @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Change the original policy parameter to work with policy manager based. +# +# +atlas.plugin.atlas.service.name %REPOSITORY_NAME% mod create-if-not-exists + diff --git a/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security.xml b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security.xml new file mode 100755 index 0000000000..6b16b6ee1e --- /dev/null +++ b/atlas-hub/pre-conf/atlas-auth/atlas-atlas-security.xml @@ -0,0 +1,88 @@ + + + + + + atlas.plugin.atlas.service.name + atlas + + Name of the Ranger service containing policies for this YARN instance + + + + + atlas.plugin.atlas.policy.source.impl + org.apache.atlas.authz.admin.client.AtlasAuthRESTClient + + Class to retrieve policies from the source + + + + + atlas.plugin.atlas.authz.rest.url + localhost:21000/api/atlas/v2/auth + + URL to Ranger Admin + + + + + atlas.plugin.atlas.policy.rest.ssl.config.file + /etc/atlas/conf/ranger-policymgr-ssl.xml + + Path to the file containing SSL details to contact Ranger Admin + + + + + atlas.plugin.atlas.policy.pollIntervalMs + 30000 + + How often to poll for changes in policies? + + + + + atlas.plugin.atlas.policy.cache.dir + /etc/atlas/atlasdev/policycache + + Directory where Ranger policies are cached after successful retrieval from the source + + + + + atlas.plugin.atlas.policy.rest.client.connection.timeoutMs + 120000 + + RangerRestClient Connection Timeout in Milli Seconds + + + + + atlas.plugin.atlas.policy.rest.client.read.timeoutMs + 120000 + + AtlasAuth read Timeout in Milli Seconds + + + + + atlas.plugin.atlas.policyengine.option.disable.tag.retriever + true + +