[ranger] branch ranger-2.2 updated: RANGER-3441:PropertiesUtil (Admin) logging potentially sensitive data

2021-09-28 Thread abhay
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
 new f47acb5  RANGER-3441:PropertiesUtil (Admin) logging potentially 
sensitive data
 new 20234c1  Merge branch 'ranger-2.2' of 
https://gitbox.apache.org/repos/asf/ranger into ranger-2.2
f47acb5 is described below

commit f47acb52681c0d8378b15637299f8baf51d0d226
Author: Abhishek Kumar 
AuthorDate: Tue Sep 28 12:33:35 2021 -0700

RANGER-3441:PropertiesUtil (Admin) logging potentially sensitive data
---
 .../src/main/java/org/apache/ranger/common/PropertiesUtil.java| 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java 
b/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
index 80a2d60..0ad7abb 100644
--- a/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
+++ b/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
@@ -62,8 +62,7 @@ public class PropertiesUtil extends 
PropertyPlaceholderConfigurer {
Set keySet = System.getProperties().keySet();
for (Object key : keySet) {
String keyStr = key.toString();
-   propertiesMap.put(keyStr, System.getProperties()
-   .getProperty(keyStr).trim());
+   propertiesMap.put(keyStr, 
System.getProperties().getProperty(keyStr).trim());
}
 
// Let's add our properties now
@@ -321,8 +320,9 @@ public class PropertiesUtil extends 
PropertyPlaceholderConfigurer {
keySet = props.keySet();
for (Object key : keySet) {
String keyStr = key.toString();
-logger.debug("PropertiesUtil:[" + keyStr + "][" +
-(keyStr.contains("password") || 
keyStr.contains("keystore.pass")   ? "]" : props.get(keyStr)) + "]");
+   if (logger.isDebugEnabled()) {
+   logger.debug("PropertiesUtil:[" + keyStr + "][" + 
(keyStr.toLowerCase().contains("pass") ? "]" : props.get(keyStr)) + 
"]");
+   }
}
 
super.processProperties(beanFactory, props);


[ranger] branch ranger-2.2 updated: RANGER-3415:Change pom version from 2.2.0-SNAPSHOT to 2.2.0

2021-09-28 Thread rmani
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
 new e5998fd  RANGER-3415:Change pom version from 2.2.0-SNAPSHOT to 2.2.0
e5998fd is described below

commit e5998fd3249e0eb1661d2b21fe53f4002e07fe95
Author: Ramesh Mani 
AuthorDate: Tue Sep 28 12:55:27 2021 -0700

RANGER-3415:Change pom version from 2.2.0-SNAPSHOT to 2.2.0
---
 agents-audit/pom.xml   | 2 +-
 agents-common/pom.xml  | 2 +-
 agents-cred/pom.xml| 2 +-
 agents-installer/pom.xml   | 2 +-
 credentialbuilder/pom.xml  | 2 +-
 dev-support/ranger-docker/.env | 2 +-
 distro/pom.xml | 2 +-
 docs/pom.xml   | 2 +-
 embeddedwebserver/pom.xml  | 2 +-
 hbase-agent/pom.xml| 2 +-
 hdfs-agent/pom.xml | 2 +-
 hive-agent/pom.xml | 2 +-
 intg/pom.xml   | 3 ++-
 jisql/pom.xml  | 2 +-
 kms/pom.xml| 3 ++-
 knox-agent/pom.xml | 2 +-
 plugin-atlas/pom.xml   | 2 +-
 plugin-elasticsearch/pom.xml   | 2 +-
 plugin-kafka/pom.xml   | 2 +-
 plugin-kms/pom.xml | 2 +-
 plugin-kudu/pom.xml| 2 +-
 plugin-kylin/pom.xml   | 2 +-
 plugin-nifi-registry/pom.xml   | 2 +-
 plugin-nifi/pom.xml| 2 +-
 plugin-ozone/pom.xml   | 2 +-
 plugin-presto/pom.xml  | 2 +-
 plugin-schema-registry/pom.xml | 2 +-
 plugin-solr/pom.xml| 2 +-
 plugin-sqoop/pom.xml   | 2 +-
 plugin-yarn/pom.xml| 2 +-
 pom.xml| 2 +-
 ranger-atlas-plugin-shim/pom.xml   | 2 +-
 ranger-elasticsearch-plugin-shim/pom.xml   | 2 +-
 ranger-examples/conditions-enrichers/pom.xml   | 2 +-
 ranger-examples/distro/pom.xml | 2 +-
 ranger-examples/plugin-sampleapp/pom.xml   | 2 +-
 ranger-examples/pom.xml| 2 +-
 ranger-examples/sample-client/pom.xml  | 2 +-
 ranger-examples/sampleapp/pom.xml  | 2 +-
 ranger-hbase-plugin-shim/pom.xml   | 2 +-
 ranger-hdfs-plugin-shim/pom.xml| 2 +-
 ranger-hive-plugin-shim/pom.xml| 2 +-
 ranger-kafka-plugin-shim/pom.xml   | 2 +-
 ranger-kms-plugin-shim/pom.xml | 2 +-
 ranger-knox-plugin-shim/pom.xml| 2 +-
 ranger-kylin-plugin-shim/pom.xml   | 2 +-
 ranger-ozone-plugin-shim/pom.xml   | 2 +-
 ranger-plugin-classloader/pom.xml  | 2 +-
 ranger-presto-plugin-shim/pom.xml  | 2 +-
 ranger-solr-plugin-shim/pom.xml| 2 +-
 ranger-sqoop-plugin-shim/pom.xml   | 2 +-
 ranger-storm-plugin-shim/pom.xml   | 2 +-
 ranger-tools/pom.xml   | 2 +-
 ranger-util/pom.xml| 2 +-
 ranger-yarn-plugin-shim/pom.xml| 2 +-
 security-admin/pom.xml | 2 +-
 storm-agent/pom.xml| 2 +-
 tagsync/pom.xml| 2 +-
 ugsync-util/pom.xml| 2 +-
 ugsync/ldapconfigchecktool/ldapconfigcheck/pom.xml | 2 +-
 ugsync/pom.xml | 2 +-
 unixauthclient/pom.xml | 2 +-
 unixauthnative/pom.xml | 2 +-
 unixauthpam/pom.xml| 2 +-
 unixauthservice/pom.xml| 2 +-
 65 files changed, 67 insertions(+), 65 deletions(-)

diff --git a/agents-audit/pom.xml b/agents-audit/pom.xml
index 485c77f..821364c 100644
--- a/agents-audit/pom.xml
+++ b/agents-audit/pom.xml
@@ -28,7 +28,7 @@
 
 org.apache.ranger
 ranger
-2.2.0-SNAPSHOT
+2.2.0
 ..
 
 
diff --git a/agents-common/pom.xml b/agents-common/pom.xml
index 9bea683..4d05f41 100644
--- a/agents-common/pom.xml
+++ b/agents-common/pom.xml
@@ -39,7 +39,7 @@
 
 org.apache.ranger
 ranger
-2.2.0-SNAPSHOT
+2.2.0
 ..
 
 
diff --git 

[ranger] branch ranger-2.2 updated: RANGER-3449:Updated copyright years in the NOTICE file and plugin details in README.txt

2021-09-28 Thread rmani
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
 new 08bbf83  RANGER-3449:Updated copyright years in the NOTICE file and 
plugin details in README.txt
08bbf83 is described below

commit 08bbf835729f3788ea33d2f5e2e6915ed0314d69
Author: Ramesh Mani 
AuthorDate: Tue Sep 28 12:52:38 2021 -0700

RANGER-3449:Updated copyright years in the NOTICE file and plugin details 
in README.txt
---
 NOTICE.txt  | 2 +-
 README.txt  | 6 ++
 docs/NOTICE | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/NOTICE.txt b/NOTICE.txt
index b315087..56bff74 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -1,5 +1,5 @@
 Apache Ranger
-Copyright 2014-2019 The Apache Software Foundation
+Copyright 2014-2021 The Apache Software Foundation
 
 This product includes software developed at The Apache Software Foundation 
(http://www.apache.org/).
 This product includes software developed by Spring Security Project 
(http://www.springframework.org/security)
diff --git a/README.txt b/README.txt
index fce972a..79e6985 100644
--- a/README.txt
+++ b/README.txt
@@ -58,6 +58,9 @@ Build Process
ranger--yarn-plugin.tar.gz
ranger--kylin-plugin.tar.gz
ranger--elasticsearch-plugin.tar.gz
+   ranger--ozone-plugin.tar.gz
+   ranger--presto-plugin.tar.gz
+   ranger--schema-registry-plugin.tar.gz
 
 Importing Apache Ranger Project into Eclipse
 
@@ -85,6 +88,9 @@ Installation Host Information
 (h)  Sqoop plugin needs to be installed on Sqoop2 hosts
 (i)  Kylin plugin needs to be installed on Kylin hosts
 (j)  Elasticsearch plugin needs to be installed on Elasticsearch hosts
+(k)  Ozone plugin needs to be installed on Ozone hosts
+(l)  Presto plugin needs to be installed on Presto hosts
+(m)  Schema Registry plugin needs to be installed on Schema Registry hosts
 
 Installation Process
 
diff --git a/docs/NOTICE b/docs/NOTICE
index 24e4e68..82d2316 100644
--- a/docs/NOTICE
+++ b/docs/NOTICE
@@ -1,5 +1,5 @@
 Apache Ranger
-Copyright 2014-2016 The Apache Software Foundation
+Copyright 2014-2021 The Apache Software Foundation
 
 This product includes software developed by
 The Apache Software Foundation (http://www.apache.org/).


[ranger] branch master updated: RANGER-3441:PropertiesUtil (Admin) logging potentially sensitive data

2021-09-28 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 f599c91  RANGER-3441:PropertiesUtil (Admin) logging potentially 
sensitive data
 new 0ffc660  Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/ranger
f599c91 is described below

commit f599c916d84461847613560f856be47438bda884
Author: Abhishek Kumar 
AuthorDate: Tue Sep 28 12:33:35 2021 -0700

RANGER-3441:PropertiesUtil (Admin) logging potentially sensitive data
---
 .../src/main/java/org/apache/ranger/common/PropertiesUtil.java| 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java 
b/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
index 80a2d60..0ad7abb 100644
--- a/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
+++ b/security-admin/src/main/java/org/apache/ranger/common/PropertiesUtil.java
@@ -62,8 +62,7 @@ public class PropertiesUtil extends 
PropertyPlaceholderConfigurer {
Set keySet = System.getProperties().keySet();
for (Object key : keySet) {
String keyStr = key.toString();
-   propertiesMap.put(keyStr, System.getProperties()
-   .getProperty(keyStr).trim());
+   propertiesMap.put(keyStr, 
System.getProperties().getProperty(keyStr).trim());
}
 
// Let's add our properties now
@@ -321,8 +320,9 @@ public class PropertiesUtil extends 
PropertyPlaceholderConfigurer {
keySet = props.keySet();
for (Object key : keySet) {
String keyStr = key.toString();
-logger.debug("PropertiesUtil:[" + keyStr + "][" +
-(keyStr.contains("password") || 
keyStr.contains("keystore.pass")   ? "]" : props.get(keyStr)) + "]");
+   if (logger.isDebugEnabled()) {
+   logger.debug("PropertiesUtil:[" + keyStr + "][" + 
(keyStr.toLowerCase().contains("pass") ? "]" : props.get(keyStr)) + 
"]");
+   }
}
 
super.processProperties(beanFactory, props);


[ranger] branch master updated: RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger HiveAuthorization

2021-09-28 Thread rmani
This is an automated email from the ASF dual-hosted git repository.

rmani 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 3c6b44e  RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger 
HiveAuthorization
3c6b44e is described below

commit 3c6b44ebafa2e82dcf8e43ea6003e5e8d0d6b050
Author: Ramesh Mani 
AuthorDate: Mon Sep 27 17:59:11 2021 -0700

RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger HiveAuthorization

Signed-off-by: Ramesh Mani 
---
 .../ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
index 2ae9379..9dfbc9b 100644
--- 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
+++ 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
@@ -2501,6 +2501,7 @@ public class RangerHiveAuthorizer extends 
RangerHiveAuthorizerBase {
case SHOW_ROLE_GRANT:
case SHOW_ROLE_PRINCIPALS:
case SHOW_TRANSACTIONS:
+   case RELOADFUNCTION:
case REPLDUMP:
case REPLLOAD:
case REPLSTATUS:


[ranger] branch ranger-2.2 updated: RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger HiveAuthorization

2021-09-28 Thread rmani
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/ranger-2.2 by this push:
 new e6ece6a  RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger 
HiveAuthorization
e6ece6a is described below

commit e6ece6a46679da4ea37b6f114b7323c7efd04149
Author: Ramesh Mani 
AuthorDate: Mon Sep 27 17:59:11 2021 -0700

RANGER-3454:Hive command RELOAD FUNCTION failing in Ranger HiveAuthorization

Signed-off-by: Ramesh Mani 
---
 .../ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
index 2ae9379..9dfbc9b 100644
--- 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
+++ 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
@@ -2501,6 +2501,7 @@ public class RangerHiveAuthorizer extends 
RangerHiveAuthorizerBase {
case SHOW_ROLE_GRANT:
case SHOW_ROLE_PRINCIPALS:
case SHOW_TRANSACTIONS:
+   case RELOADFUNCTION:
case REPLDUMP:
case REPLLOAD:
case REPLSTATUS: