chia7712 commented on code in PR #20822:
URL: https://github.com/apache/kafka/pull/20822#discussion_r2493557235


##########
core/src/main/scala/kafka/server/KafkaApis.scala:
##########
@@ -529,7 +529,7 @@ class KafkaApis(val requestChannel: RequestChannel,
     if (authorizedRequestInfo.isEmpty)
       sendResponseCallback(Map.empty)
     else {
-      val internalTopicsAllowed = request.header.clientId == "__admin_client"
+      val internalTopicsAllowed = request.header.clientId != null && 
request.header.clientId.startsWith("__")

Review Comment:
   we should not touch this "backdoor" - I have posted a discussion on the 
https://issues.apache.org/jira/browse/KAFKA-5246



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to