Skip to content

Ranger 2.0.0 2.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agents-audit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion agents-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,8 @@ public StringBuilder toString(StringBuilder sb) {

return sb;
}

protected String getStringifiedValue() { return stringifiedValue; }

protected void setStringifiedValue(String val) { this.stringifiedValue = val; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,17 @@ public void init(RangerPolicy policy, RangerServiceDef serviceDef, RangerPolicyE
denyExceptionEvaluators = Collections.<RangerPolicyItemEvaluator>emptyList();
} else {
allowEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_ALLOW);
denyEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_DENY);
allowExceptionEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_ALLOW_EXCEPTIONS);
denyExceptionEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_DENY_EXCEPTIONS);

if (ServiceDefUtil.getOption_enableDenyAndExceptionsInPolicies(serviceDef)) {
denyEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_DENY);
allowExceptionEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_ALLOW_EXCEPTIONS);
denyExceptionEvaluators = createPolicyItemEvaluators(policy, serviceDef, options, RangerPolicyItemEvaluator.POLICY_ITEM_TYPE_DENY_EXCEPTIONS);
} else {
denyEvaluators = Collections.<RangerPolicyItemEvaluator>emptyList();
allowExceptionEvaluators = Collections.<RangerPolicyItemEvaluator>emptyList();
denyExceptionEvaluators = Collections.<RangerPolicyItemEvaluator>emptyList();
}

}

dataMaskEvaluators = createDataMaskPolicyItemEvaluators(policy, serviceDef, options, policy.getDataMaskPolicyItems());
Expand Down Expand Up @@ -1268,4 +1276,4 @@ private List<RangerConditionEvaluator> createRangerPolicyConditionEvaluator(Rang
return rangerConditionEvaluators;
}

}
}
2 changes: 1 addition & 1 deletion agents-cred/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion agents-installer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion credentialbuilder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion embeddedwebserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion hbase-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion hdfs-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.Stack;

Expand Down Expand Up @@ -814,6 +815,19 @@ public RangerHdfsResource(String path, String owner) {
super.setValue(RangerHdfsAuthorizer.KEY_RESOURCE_PATH, path);
super.setOwnerUser(owner);
}

@Override
public String getAsString() {
String ret = super.getStringifiedValue();

if (ret == null) {
ret = Objects.toString(super.getValue(RangerHdfsAuthorizer.KEY_RESOURCE_PATH));

super.setStringifiedValue(ret);
}

return ret;
}
}

class RangerHdfsAccessRequest extends RangerAccessRequestImpl {
Expand Down
2 changes: 1 addition & 1 deletion hive-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion jisql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion knox-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-atlas/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-kms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-kylin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-nifi-registry/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<artifactId>ranger</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-nifi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-ozone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ limitations under the License.
<parent>
<artifactId>ranger</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-presto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-solr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-sqoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion plugin-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<description>Security for Enforcing Enterprise Policies</description>
<packaging>pom</packaging>
<name>ranger</name>
Expand Down Expand Up @@ -117,11 +117,11 @@
<googlecode.log4jdbc.version>1.2</googlecode.log4jdbc.version>
<gson.version>2.2.4</gson.version>
<guice.version>4.0</guice.version>
<hadoop.version>3.1.1-0.0</hadoop.version>
<hadoop.version>3.1.4-1.0-SNAPSHOT</hadoop.version>
<ozone.version>0.4.0-alpha</ozone.version>
<hamcrest.all.version>1.3</hamcrest.all.version>
<hbase.version>2.1.10-1.0</hbase.version>
<hive.version>3.1.3-1.0</hive.version>
<hbase.version>2.1.10-2.0-SNAPSHOT</hbase.version>
<hive.version>3.1.3-2.0-SNAPSHOT</hive.version>
<hbase-shaded-protobuf>2.0.0</hbase-shaded-protobuf>
<hbase-shaded-netty>2.0.0</hbase-shaded-netty>
<hbase-shaded-miscellaneous>2.0.0</hbase-shaded-miscellaneous>
Expand Down
2 changes: 1 addition & 1 deletion ranger-atlas-plugin-shim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion ranger-elasticsearch-plugin-shim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion ranger-examples/conditions-enrichers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<parent>
<artifactId>ranger-examples</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion ranger-examples/distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger-examples</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ranger-examples/plugin-sampleapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<artifactId>ranger-examples</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion ranger-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<artifactId>ranger</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ranger-examples</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion ranger-examples/sampleapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<artifactId>ranger-examples</artifactId>
<groupId>org.apache.ranger</groupId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion ranger-hbase-plugin-shim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion ranger-hdfs-plugin-shim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<parent>
<groupId>org.apache.ranger</groupId>
<artifactId>ranger</artifactId>
<version>2.0.0-1.0</version>
<version>2.0.0-2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<dependencies>
Expand Down
Loading