d8tltanc commented on a change in pull request #9485:
URL: https://github.com/apache/kafka/pull/9485#discussion_r537657552



##########
File path: core/src/main/scala/kafka/server/KafkaApis.scala
##########
@@ -2109,7 +2104,8 @@ class KafkaApis(val requestChannel: RequestChannel,
         sendErrorResponseMaybeThrottle(request, 
Errors.TRANSACTIONAL_ID_AUTHORIZATION_FAILED.exception)
         return
       }
-    } else if (!authorize(request.context, IDEMPOTENT_WRITE, CLUSTER, 
CLUSTER_NAME)) {
+    } else if (!authorize(request.context, IDEMPOTENT_WRITE, CLUSTER, 
CLUSTER_NAME, true, false)
+        || !authorizeByResourceType(request.context, AclOperation.WRITE, 
ResourceType.TOPIC)) {

Review comment:
       Good catch commit 031c2f41e6611df3d18ef9b709c7d98c91b93326 




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to