You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vi...@apache.org on 2023/03/31 17:53:30 UTC
[hive] branch branch-3 updated (8caadd75ea0 -> 97bae130539)
This is an automated email from the ASF dual-hosted git repository.
vihangk1 pushed a change to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git
from 8caadd75ea0 HIVE-27033 : Backport of HIVE-23044 (Aman Raj, reviewed by Vihang Karajgaonkar)
add 97bae130539 HIVE-26949: Backport HIVE-26071 to branch-3 (Junlin Zeng reviewed by Vihang Karajgaonkar)
No new revisions were added by this update.
Summary of changes:
standalone-metastore/pom.xml | 19 ++
.../hadoop/hive/metastore/HiveMetaStore.java | 2 +-
.../hadoop/hive/metastore/HiveMetaStoreClient.java | 60 +++--
.../hive/metastore/HmsThriftHttpServlet.java | 156 +++++++----
.../auth/HttpAuthenticationException.java | 6 +-
.../hive/metastore/auth/jwt/JWTValidator.java | 109 ++++++++
.../metastore/auth/jwt/URLBasedJWKSProvider.java | 88 +++++++
.../hadoop/hive/metastore/conf/MetastoreConf.java | 12 +-
.../TestRemoteHiveMetastoreWithHttpJwt.java | 284 +++++++++++++++++++++
.../resources/auth/jwt/jwt-authorized-key.json | 12 +
.../resources/auth/jwt/jwt-unauthorized-key.json | 12 +
.../resources/auth/jwt/jwt-verification-jwks.json | 20 ++
12 files changed, 708 insertions(+), 72 deletions(-)
copy {service/src/java/org/apache/hive/service => standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore}/auth/HttpAuthenticationException.java (88%)
create mode 100644 standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/auth/jwt/JWTValidator.java
create mode 100644 standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/auth/jwt/URLBasedJWKSProvider.java
create mode 100644 standalone-metastore/src/test/java/org/apache/hadoop/hive/metastore/TestRemoteHiveMetastoreWithHttpJwt.java
create mode 100644 standalone-metastore/src/test/resources/auth/jwt/jwt-authorized-key.json
create mode 100644 standalone-metastore/src/test/resources/auth/jwt/jwt-unauthorized-key.json
create mode 100644 standalone-metastore/src/test/resources/auth/jwt/jwt-verification-jwks.json