deniskuzZ commented on code in PR #5870: URL: https://github.com/apache/hive/pull/5870#discussion_r2152247296
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: ########## @@ -431,7 +432,8 @@ public void setThreadFactory(ThreadFactory threadFactory) { processor = new ThriftHiveMetastore.Processor<>(handler); LOG.info("Starting DB backed MetaStore Server with generic processor"); boolean jwt = MetastoreConf.getVar(conf, ConfVars.THRIFT_METASTORE_AUTHENTICATION).equalsIgnoreCase("jwt"); - ServletSecurity security = new ServletSecurity(conf, jwt); + AuthType authType = jwt ? AuthType.JWT : AuthType.SIMPLE; Review Comment: i find it's bizarre to support different authentication methods for multiple endpoints served by the same servlet in a production cluster ########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: ########## @@ -431,7 +432,8 @@ public void setThreadFactory(ThreadFactory threadFactory) { processor = new ThriftHiveMetastore.Processor<>(handler); LOG.info("Starting DB backed MetaStore Server with generic processor"); boolean jwt = MetastoreConf.getVar(conf, ConfVars.THRIFT_METASTORE_AUTHENTICATION).equalsIgnoreCase("jwt"); - ServletSecurity security = new ServletSecurity(conf, jwt); + AuthType authType = jwt ? AuthType.JWT : AuthType.SIMPLE; Review Comment: i find it bizarre to support different authentication methods for multiple endpoints served by the same servlet in a production cluster -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org