[ranger] 01/01: RANGER-4116: Fix labels in .asf.yaml

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a commit to branch kumaab-ranger-4116
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit d46cc0d7c7ba477a819556af29fb651f507178db
Author: Abhishek Kumar 
AuthorDate: Thu Mar 2 19:53:10 2023 -0800

RANGER-4116: Fix labels in .asf.yaml
---
 .asf.yaml | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index ca7beeef2..b5961fa18 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -19,10 +19,11 @@ github:
   description: "Apache Ranger - To enable, monitor and manage comprehensive 
data security across the Hadoop platform"
   homepage: https://ranger.apache.org/
   labels:
-- AuthZ
-- Java
-- Python
-- Docker
+- ranger
+- authz
+- java
+- python
+- docker
   enabled_merge_buttons:
 squash:  true
 merge:   false



[ranger] branch kumaab-ranger-4116 created (now d46cc0d7c)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-ranger-4116
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at d46cc0d7c RANGER-4116: Fix labels in .asf.yaml

This branch includes the following new commits:

 new d46cc0d7c RANGER-4116: Fix labels in .asf.yaml

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[ranger] branch master updated (617393344 -> 5af232597)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


from 617393344 RANGER-4116: Add .asf.yaml (#227)
 add 5af232597 RANGER-4043: Fix 'getent group' command when enumerate 
groups is enabled (#223)

No new revisions were added by this update.

Summary of changes:
 .../org/apache/ranger/unixusersync/process/UnixUserGroupBuilder.java| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



Error while running github feature from .asf.yaml in ranger!

2023-03-02 Thread Apache Infrastructure


An error occurred while running github feature in .asf.yaml!:
.asf.yaml: Invalid GitHub label 'AuthZ' - must be lowercase alphanumerical and 
<= 35 characters!



[ranger] 01/02: RANGER-4114: updated plugin to use consistent property-prefix across all references - #2

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 450434cc03e6293dd0f643b21d898996797e75cd
Author: Madhan Neethiraj 
AuthorDate: Thu Mar 2 17:12:20 2023 -0800

RANGER-4114: updated plugin to use consistent property-prefix across all 
references - #2

(cherry picked from commit f909c81024b03ce69fd401c259f9849a6886a57d)
---
 .../src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
index 7f6b4acb9..58a47cf1b 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
@@ -22,7 +22,6 @@ package org.apache.ranger.plugin.util;
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
 import org.apache.commons.lang.StringUtils;
-import org.apache.hadoop.conf.Configuration;
 import org.apache.ranger.admin.client.RangerAdminClient;
 import org.apache.ranger.authorization.hadoop.config.RangerPluginConfig;
 import org.apache.ranger.plugin.service.RangerBasePlugin;



[ranger] branch ranger-2.4 updated (c14a7cec7 -> f42c5986d)

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a change to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


from c14a7cec7 RANGER-4114: updated plugin to use consistent 
property-prefix across all references
 new 450434cc0 RANGER-4114: updated plugin to use consistent 
property-prefix across all references - #2
 new f42c5986d RANGER-3028: Upgrade-Maven-PMD-plugin-version-to-3.14.0

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java| 1 -
 pom.xml | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)



[ranger] 02/02: RANGER-3028: Upgrade-Maven-PMD-plugin-version-to-3.14.0

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit f42c5986d97f87aad9279837728a04f0426be513
Author: Bhavik Patel 
AuthorDate: Tue Jan 5 10:22:00 2021 +0530

RANGER-3028: Upgrade-Maven-PMD-plugin-version-to-3.14.0

(cherry picked from commit 6e2d66a856b33ae70c078875645f38b0cac54114)
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index e2e202123..1e77f5191 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,7 +169,7 @@
 1.2.19
 2.17.2
 1.6.0
-3.7
+3.14.0
 3.0.2
 3.0.0
 1.10.19



[ranger] branch kumaab-enable-unit-tests updated (3fa3c840c -> ec9442ca2)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-enable-unit-tests
in repository https://gitbox.apache.org/repos/asf/ranger.git


from 3fa3c840c Update maven.yml
 add ec9442ca2 Update maven.yml

No new revisions were added by this update.

Summary of changes:
 .github/workflows/maven.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



Error while running github feature from .asf.yaml in ranger!

2023-03-02 Thread Apache Infrastructure


An error occurred while running github feature in .asf.yaml!:
.asf.yaml: Invalid GitHub label 'AuthZ' - must be lowercase alphanumerical and 
<= 35 characters!



[ranger] branch master updated (eb72be71b -> 617393344)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


from eb72be71b RANGER-4114: Remove unused import (#228)
 add 617393344 RANGER-4116: Add .asf.yaml (#227)

No new revisions were added by this update.

Summary of changes:
 plugin-yarn/conf/yarn-site-changes.cfg => .asf.yaml | 16 ++--
 1 file changed, 14 insertions(+), 2 deletions(-)
 copy plugin-yarn/conf/yarn-site-changes.cfg => .asf.yaml (67%)



[ranger] branch master updated (48a635c30 -> eb72be71b)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


from 48a635c30 RANGER-4115: Tags containing attributes not processed 
correctly by tagsync
 add eb72be71b RANGER-4114: Remove unused import (#228)

No new revisions were added by this update.

Summary of changes:



[ranger] branch master updated: RANGER-4115: Tags containing attributes not processed correctly by tagsync

2023-03-02 Thread abhay
This is an automated email from the ASF dual-hosted git repository.

abhay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
 new 48a635c30 RANGER-4115: Tags containing attributes not processed 
correctly by tagsync
48a635c30 is described below

commit 48a635c30ac2afe4492f06d132cc517431933dd8
Author: Abhay Kulkarni 
AuthorDate: Thu Mar 2 17:16:21 2023 -0800

RANGER-4115: Tags containing attributes not processed correctly by tagsync
---
 .../ranger/tagsync/source/atlas/AtlasNotificationMapper.java   | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
 
b/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
index dadc76a54..a7c456b3d 100644
--- 
a/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
+++ 
b/tagsync/src/main/java/org/apache/ranger/tagsync/source/atlas/AtlasNotificationMapper.java
@@ -351,9 +351,14 @@ public class AtlasNotificationMapper {
 
 RangerTagDef tagDef = new RangerTagDef(tag.getName(), 
"Atlas");
 if (MapUtils.isNotEmpty(tag.getAttributes())) {
+List attributeDefs = 
tagDef.getAttributeDefs();
+if (attributeDefs == null) {
+attributeDefs = new ArrayList<>();
+}
 for (String attributeName : 
tag.getAttributes().keySet()) {
-tagDef.getAttributeDefs().add(new 
RangerTagAttributeDef(attributeName, 
entityWithTags.getTagAttributeType(tag.getName(), attributeName)));
+attributeDefs.add(new 
RangerTagAttributeDef(attributeName, 
entityWithTags.getTagAttributeType(tag.getName(), attributeName)));
 }
+tagDef.setAttributeDefs(attributeDefs);
 }
 ret.add(tagDef);
 }



[ranger] branch master updated: RANGER-4114: updated plugin to use consistent property-prefix across all references - #2

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
 new f909c8102 RANGER-4114: updated plugin to use consistent 
property-prefix across all references - #2
f909c8102 is described below

commit f909c81024b03ce69fd401c259f9849a6886a57d
Author: Madhan Neethiraj 
AuthorDate: Thu Mar 2 17:12:20 2023 -0800

RANGER-4114: updated plugin to use consistent property-prefix across all 
references - #2
---
 .../src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
index 7f6b4acb9..58a47cf1b 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
@@ -22,7 +22,6 @@ package org.apache.ranger.plugin.util;
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
 import org.apache.commons.lang.StringUtils;
-import org.apache.hadoop.conf.Configuration;
 import org.apache.ranger.admin.client.RangerAdminClient;
 import org.apache.ranger.authorization.hadoop.config.RangerPluginConfig;
 import org.apache.ranger.plugin.service.RangerBasePlugin;



[ranger] branch kumaab-RANGER-4114 created (now 2e49d0c59)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-RANGER-4114
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at 2e49d0c59 RANGER-4114: Remove unused import

This branch includes the following new commits:

 new 2e49d0c59 RANGER-4114: Remove unused import

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[ranger] 01/01: RANGER-4114: Remove unused import

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a commit to branch kumaab-RANGER-4114
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 2e49d0c5989468124530e8a3e97429b3a6a3258e
Author: Abhishek Kumar 
AuthorDate: Thu Mar 2 16:27:25 2023 -0800

RANGER-4114: Remove unused import
---
 .../src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
index 7f6b4acb9..58a47cf1b 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerRolesProvider.java
@@ -22,7 +22,6 @@ package org.apache.ranger.plugin.util;
 import com.google.gson.Gson;
 import com.google.gson.GsonBuilder;
 import org.apache.commons.lang.StringUtils;
-import org.apache.hadoop.conf.Configuration;
 import org.apache.ranger.admin.client.RangerAdminClient;
 import org.apache.ranger.authorization.hadoop.config.RangerPluginConfig;
 import org.apache.ranger.plugin.service.RangerBasePlugin;



[ranger] branch kumaab-ranger-4116 updated (73fd9bc9d -> a86f1a065)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-ranger-4116
in repository https://gitbox.apache.org/repos/asf/ranger.git


from 73fd9bc9d Create .asf.yaml
 add a86f1a065 Update .asf.yaml

No new revisions were added by this update.

Summary of changes:
 .asf.yaml | 2 ++
 1 file changed, 2 insertions(+)



[ranger] branch kumaab-ranger-4116 created (now 73fd9bc9d)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-ranger-4116
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at 73fd9bc9d Create .asf.yaml

This branch includes the following new commits:

 new 73fd9bc9d Create .asf.yaml

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[ranger] 01/01: Create .asf.yaml

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a commit to branch kumaab-ranger-4116
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 73fd9bc9d8a340dcd62bd4b7eccb553751f21c65
Author: Abhishek Kumar 
AuthorDate: Thu Mar 2 16:05:22 2023 -0800

Create .asf.yaml
---
 .asf.yaml | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0..8104d136d
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,27 @@
+# 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.
+
+github:
+  description: "Apache Ranger - To enable, monitor and manage comprehensive 
data security across the Hadoop platform"
+  homepage: https://ranger.apache.org/
+  labels:
+- AuthZ
+- Java
+- Python
+- Docker
+  enabled_merge_buttons:
+squash:  true
+merge:   false
+rebase:  false



[ranger] branch kumaab-enable-unit-tests updated (a501506bd -> 3fa3c840c)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-enable-unit-tests
in repository https://gitbox.apache.org/repos/asf/ranger.git


from a501506bd Enable unit tests in regular builds
 add 3fa3c840c Update maven.yml

No new revisions were added by this update.

Summary of changes:
 .github/workflows/maven.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



[ranger] branch kumaab-enable-unit-tests created (now a501506bd)

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a change to branch kumaab-enable-unit-tests
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at a501506bd Enable unit tests in regular builds

This branch includes the following new commits:

 new a501506bd Enable unit tests in regular builds

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




[ranger] 01/01: Enable unit tests in regular builds

2023-03-02 Thread abhi
This is an automated email from the ASF dual-hosted git repository.

abhi pushed a commit to branch kumaab-enable-unit-tests
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit a501506bd555f51f153c2301b6a0abd191a5139f
Author: Abhishek Kumar 
AuthorDate: Thu Mar 2 14:58:56 2023 -0800

Enable unit tests in regular builds
---
 .github/workflows/maven.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index cd3bf0f34..7deb4119b 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -44,4 +44,4 @@ jobs:
 distribution: 'temurin'
 cache: maven
 - name: Build with Maven
-  run: mvn install -DskipJSTests=true -DskipTests 
-Dmaven.javadoc.skip=true --no-transfer-progress -B -V
+  run: mvn install -Dmaven.javadoc.skip=true --no-transfer-progress -B -V



[ranger] branch ranger-1.1 updated: RANGER-3856: Ranger admin client updated with option to work with non-kerberized server

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-1.1
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-1.1 by this push:
 new e1b035f5e RANGER-3856: Ranger admin client updated with option to work 
with non-kerberized server
e1b035f5e is described below

commit e1b035f5e442b2a605239b14381cd60f040b6d50
Author: Ankita Sinha 
AuthorDate: Mon Aug 22 14:03:37 2022 +0530

RANGER-3856: Ranger admin client updated with option to work with 
non-kerberized server
---
 .../ranger/admin/client/RangerAdminRESTClient.java | 25 +-
 .../admin/client/RangerAdminJersey2RESTClient.java | 18 ++--
 2 files changed, 36 insertions(+), 7 deletions(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/admin/client/RangerAdminRESTClient.java
 
b/agents-common/src/main/java/org/apache/ranger/admin/client/RangerAdminRESTClient.java
index dddfbc7fe..fc49ef052 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/admin/client/RangerAdminRESTClient.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/admin/client/RangerAdminRESTClient.java
@@ -53,6 +53,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
private String clusterName;
private RangerRESTClient restClient;
private RangerRESTUtils restUtils   = new RangerRESTUtils();
+   private boolean forceNonKerberos = false;
 
public static  GenericType> getGenericType(final T clazz) {
 
@@ -84,6 +85,8 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
clusterName = 
RangerConfiguration.getInstance().get(propertyPrefix + ".ambari.cluster.name", 
"");
int  restClientConnTimeOutMs= 
RangerConfiguration.getInstance().getInt(propertyPrefix + 
".policy.rest.client.connection.timeoutMs", 120 * 1000);
int  restClientReadTimeOutMs= 
RangerConfiguration.getInstance().getInt(propertyPrefix + 
".policy.rest.client.read.timeoutMs", 30 * 1000);
+   this.forceNonKerberos   = 
RangerConfiguration.getInstance().getBoolean(propertyPrefix + 
".forceNonKerberos", false);
+
 if (!StringUtil.isEmpty(tmpUrl)) {
 url = tmpUrl.trim();
 }
@@ -102,7 +105,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
 
ServicePolicies ret = null;
UserGroupInformation user = MiscUtil.getUGILoginUser();
-   boolean isSecureMode = user != null && 
UserGroupInformation.isSecurityEnabled();
+   boolean isSecureMode = isKerberosEnabled(user);
ClientResponse response = null;
if (isSecureMode) {
if (LOG.isDebugEnabled()) {
@@ -174,7 +177,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
 
ClientResponse response = null;
UserGroupInformation user = MiscUtil.getUGILoginUser();
-   boolean isSecureMode = user != null && 
UserGroupInformation.isSecurityEnabled();
+   boolean isSecureMode = isKerberosEnabled(user);
 
if (isSecureMode) {
PrivilegedAction action = new 
PrivilegedAction() {
@@ -219,7 +222,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
 
ClientResponse response = null;
UserGroupInformation user = MiscUtil.getUGILoginUser();
-   boolean isSecureMode = user != null && 
UserGroupInformation.isSecurityEnabled();
+   boolean isSecureMode = isKerberosEnabled(user);
 
if (isSecureMode) {
PrivilegedAction action = new 
PrivilegedAction() {
@@ -287,7 +290,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
ClientResponse response = null;
WebResource webResource = null;
UserGroupInformation user = MiscUtil.getUGILoginUser();
-   boolean isSecureMode = user != null && 
UserGroupInformation.isSecurityEnabled();
+   boolean isSecureMode = isKerberosEnabled(user);
 
if (isSecureMode) {
PrivilegedAction action = new 
PrivilegedAction() {
@@ -358,7 +361,7 @@ public class RangerAdminRESTClient implements 
RangerAdminClient {
List ret = null;
String emptyString = "";
UserGroupInformation user = MiscUtil.getUGILoginUser();
-   boolean isSecureMode = user != null && 
UserGroupInformation.isSecurityEnabled();
+   boolean isSecureMode = isKerberosEnabled(user);
 
final WebResource webResource = 
createWebResource(RangerRESTUtils.REST_URL_LOOKUP_TAG_NAMES)
.queryParam(RangerRESTUtils.SERVICE_NAME_PARAM, 
serviceName)

[ranger] branch ranger-2.4 updated: RANGER-4114: updated plugin to use consistent property-prefix across all references

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.4 by this push:
 new c14a7cec7 RANGER-4114: updated plugin to use consistent 
property-prefix across all references
c14a7cec7 is described below

commit c14a7cec73298594a8cea0a278d0f598f86ee2e1
Author: Madhan Neethiraj 
AuthorDate: Fri Feb 10 22:42:18 2023 -0800

RANGER-4114: updated plugin to use consistent property-prefix across all 
references

(cherry picked from commit 6b5628fbd76d4c2c407a54d4e98b937eec21df1c)
---
 .../RangerAbstractContextEnricher.java|  6 ++
 .../plugin/contextenricher/RangerTagEnricher.java |  4 ++--
 .../contextenricher/RangerUserStoreEnricher.java  |  4 ++--
 .../ranger/plugin/util/RangerRolesProvider.java   |  5 +++--
 .../ranger/plugin/policyengine/TestPolicyEngine.java  | 19 ++-
 .../policyengine/TestPolicyEngineForDeltas.java   | 19 ++-
 6 files changed, 33 insertions(+), 24 deletions(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
index f65a0cf88..8714a9625 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
@@ -204,6 +204,12 @@ public abstract class RangerAbstractContextEnricher 
implements RangerContextEnri
}
}
 
+   public String getPropertyPrefix() {
+   RangerPluginConfig pluginConfig = getPluginConfig();
+
+   return pluginConfig != null ? pluginConfig.getPropertyPrefix() 
: "ranger.plugin." + serviceDef.getName();
+   }
+
public String getConfig(String configName, String defaultValue) {
RangerPluginContext pluginContext = this.pluginContext;
String  ret   = defaultValue;
diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
index 93d1e9d08..8f3410353 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
@@ -103,7 +103,7 @@ public class RangerTagEnricher extends 
RangerAbstractContextEnricher {
 
super.init();
 
-   String propertyPrefix= "ranger.plugin." + 
serviceDef.getName();
+   String propertyPrefix= getPropertyPrefix();
String tagRetrieverClassName = 
getOption(TAG_RETRIEVER_CLASSNAME_OPTION);
long   pollingIntervalMs = 
getLongOption(TAG_REFRESHER_POLLINGINTERVAL_OPTION, 60 * 1000);
 
@@ -404,7 +404,7 @@ public class RangerTagEnricher extends 
RangerAbstractContextEnricher {
}
 
protected RangerReadWriteLock createLock() {
-   String propertyPrefix= "ranger.plugin." + 
serviceDef.getName();
+   String propertyPrefix= getPropertyPrefix();
RangerPluginConfig config= getPluginConfig();
booleandeltasEnabled = config != null && 
config.getBoolean(propertyPrefix + 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_TAG_DELTA, 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_TAG_DELTA_DEFAULT);
booleaninPlaceUpdatesEnabled = config != null && 
config.getBoolean(propertyPrefix + 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_IN_PLACE_TAG_UPDATES, 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_IN_PLACE_TAG_UPDATES_DEFAULT);
diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
index 34ccc766d..0ea5730aa 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
@@ -57,10 +57,11 @@ public class RangerUserStoreEnricher extends 
RangerAbstractContextEnricher {
 
 super.init();
 
+String propertyPrefix  = getPropertyPrefix();
 String userStoreRetrieverClassName = 
getOption(USERSTORE_RETRIEVER_CLASSNAME_OPTION);
 long   pollingIntervalMs   = 
getLongOption(USERSTORE_REFRESHER_POLLINGINTERVAL_OPTION, 3600 * 1000);
 
-dedupStrings = getBooleanConfig("ranger.plugin." + 
serviceDef.getName() 

[ranger] branch master updated: RANGER-4114: updated plugin to use consistent property-prefix across all references

2023-03-02 Thread madhan
This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
 new 6b5628fbd RANGER-4114: updated plugin to use consistent 
property-prefix across all references
6b5628fbd is described below

commit 6b5628fbd76d4c2c407a54d4e98b937eec21df1c
Author: Madhan Neethiraj 
AuthorDate: Fri Feb 10 22:42:18 2023 -0800

RANGER-4114: updated plugin to use consistent property-prefix across all 
references
---
 .../RangerAbstractContextEnricher.java|  6 ++
 .../plugin/contextenricher/RangerTagEnricher.java |  4 ++--
 .../contextenricher/RangerUserStoreEnricher.java  |  4 ++--
 .../ranger/plugin/util/RangerRolesProvider.java   |  5 +++--
 .../ranger/plugin/policyengine/TestPolicyEngine.java  | 19 ++-
 .../policyengine/TestPolicyEngineForDeltas.java   | 19 ++-
 6 files changed, 33 insertions(+), 24 deletions(-)

diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
index f65a0cf88..8714a9625 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerAbstractContextEnricher.java
@@ -204,6 +204,12 @@ public abstract class RangerAbstractContextEnricher 
implements RangerContextEnri
}
}
 
+   public String getPropertyPrefix() {
+   RangerPluginConfig pluginConfig = getPluginConfig();
+
+   return pluginConfig != null ? pluginConfig.getPropertyPrefix() 
: "ranger.plugin." + serviceDef.getName();
+   }
+
public String getConfig(String configName, String defaultValue) {
RangerPluginContext pluginContext = this.pluginContext;
String  ret   = defaultValue;
diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
index 8f2ecaa1d..efb885a74 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
@@ -104,7 +104,7 @@ public class RangerTagEnricher extends 
RangerAbstractContextEnricher {
 
super.init();
 
-   String propertyPrefix= "ranger.plugin." + 
serviceDef.getName();
+   String propertyPrefix= getPropertyPrefix();
String tagRetrieverClassName = 
getOption(TAG_RETRIEVER_CLASSNAME_OPTION);
long   pollingIntervalMs = 
getLongOption(TAG_REFRESHER_POLLINGINTERVAL_OPTION, 60 * 1000);
 
@@ -405,7 +405,7 @@ public class RangerTagEnricher extends 
RangerAbstractContextEnricher {
}
 
protected RangerReadWriteLock createLock() {
-   String propertyPrefix= "ranger.plugin." + 
serviceDef.getName();
+   String propertyPrefix= getPropertyPrefix();
RangerPluginConfig config= getPluginConfig();
booleandeltasEnabled = config != null && 
config.getBoolean(propertyPrefix + 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_TAG_DELTA, 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_TAG_DELTA_DEFAULT);
booleaninPlaceUpdatesEnabled = config != null && 
config.getBoolean(propertyPrefix + 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_IN_PLACE_TAG_UPDATES, 
RangerCommonConstants.PLUGIN_CONFIG_SUFFIX_IN_PLACE_TAG_UPDATES_DEFAULT);
diff --git 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
index a895e956a..16f8afb2c 100644
--- 
a/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
+++ 
b/agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerUserStoreEnricher.java
@@ -57,10 +57,11 @@ public class RangerUserStoreEnricher extends 
RangerAbstractContextEnricher {
 
 super.init();
 
+String propertyPrefix  = getPropertyPrefix();
 String userStoreRetrieverClassName = 
getOption(USERSTORE_RETRIEVER_CLASSNAME_OPTION);
 long   pollingIntervalMs   = 
getLongOption(USERSTORE_REFRESHER_POLLINGINTERVAL_OPTION, 3600 * 1000);
 
-dedupStrings = getBooleanConfig("ranger.plugin." + 
serviceDef.getName() + ".dedup.strings", true);
+dedupStrings = getBooleanConfig(propertyPrefix + "

[ranger] branch ranger-2.4 updated: RANGER-4113: Upgrade tomcat to 8.5.86

2023-03-02 Thread pradeep
This is an automated email from the ASF dual-hosted git repository.

pradeep pushed a commit to branch ranger-2.4
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/ranger-2.4 by this push:
 new a28c05a59 RANGER-4113: Upgrade tomcat to 8.5.86
a28c05a59 is described below

commit a28c05a59cfb30060edbc0bdba3d3d4eae88755b
Author: Pradeep Agrawal 
AuthorDate: Thu Mar 2 14:51:34 2023 +0530

RANGER-4113: Upgrade tomcat to 8.5.86
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 2324996f7..e2e202123 100644
--- a/pom.xml
+++ b/pom.xml
@@ -200,7 +200,7 @@
 1.99.7
 1.2.4
 1.19
-8.5.79
+8.5.86
 6.9.4
 2.3
 3.4.14



[ranger] branch dependabot/npm_and_yarn/security-admin/src/main/webapp/react-webapp/minimist-1.2.8 created (now eb16d7ab7)

2023-03-02 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/npm_and_yarn/security-admin/src/main/webapp/react-webapp/minimist-1.2.8
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at eb16d7ab7 Bump minimist in /security-admin/src/main/webapp/react-webapp

No new revisions were added by this update.



[ranger] branch dependabot/npm_and_yarn/security-admin/src/test/javascript/minimist-and-karma-and-karma-mocha-and-extract-zip-and-mocha-1.2.8 created (now 9bbd00e3a)

2023-03-02 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/npm_and_yarn/security-admin/src/test/javascript/minimist-and-karma-and-karma-mocha-and-extract-zip-and-mocha-1.2.8
in repository https://gitbox.apache.org/repos/asf/ranger.git


  at 9bbd00e3a Bump minimist, karma, karma-mocha, extract-zip and mocha

No new revisions were added by this update.



[ranger] branch master updated: RANGER-4113: Upgrade tomcat to 8.5.86

2023-03-02 Thread pradeep
This is an automated email from the ASF dual-hosted git repository.

pradeep pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git


The following commit(s) were added to refs/heads/master by this push:
 new e817d996e RANGER-4113: Upgrade tomcat to 8.5.86
e817d996e is described below

commit e817d996efc8f225f825c8bbc69756e1324dd20c
Author: Pradeep Agrawal 
AuthorDate: Thu Mar 2 14:51:34 2023 +0530

RANGER-4113: Upgrade tomcat to 8.5.86
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 0c12c914c..3a039565d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -203,7 +203,7 @@
 1.99.7
 1.2.4
 1.19
-8.5.83
+8.5.86
 6.9.4
 2.3
 3.4.14