omkreddy commented on code in PR #14083: URL: https://github.com/apache/kafka/pull/14083#discussion_r1298325937
########## core/src/main/scala/kafka/server/ControllerApis.scala: ########## @@ -842,6 +848,114 @@ class ControllerApis(val requestChannel: RequestChannel, } } + def allowTokenRequests(request: RequestChannel.Request): Boolean = { + val protocol = request.context.securityProtocol + if (request.context.principal.tokenAuthenticated || + // We have to allow PLAINTEXT for the controller Apis + // protocol == SecurityProtocol.PLAINTEXT || Review Comment: Can we add a check if this is forwarded request then only PLAINTEXT allowed. We still need to disallow for direct PLAINTEXT requets -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org