anmolnar commented on code in PR #6447: URL: https://github.com/apache/hbase/pull/6447#discussion_r1846912071
########## hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/ServerRpcConnection.java: ########## @@ -366,13 +366,16 @@ public void processOneRpc(ByteBuff buf) throws IOException, InterruptedException processConnectionHeader(buf); callCleanupIfNeeded(); this.connectionHeaderRead = true; + this.rpcServer.getRpcCoprocessorHost().preAuthorizeConnection(); if (rpcServer.needAuthorization() && !authorizeConnection()) { // Throw FatalConnectionException wrapping ACE so client does right thing and closes // down the connection instead of trying to read non-existent retun. throw new AccessDeniedException("Connection from " + this + " for service " + connectionHeader.getServiceName() + " is unauthorized for user: " + ugi); } this.user = this.rpcServer.userProvider.create(this.ugi); + this.rpcServer.getRpcCoprocessorHost().postAuthorizeConnection( + this.user != null ? this.user.getName() : null, this.clientCertificateChain); Review Comment: In `MasterObserver` only the username is passed as `String` to coprocessor. -- 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: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org