Hi, I'm trying to write a custom authorizer for Kafka and I ran into some things I wanted to confirm and better understand as I relied a lot on AI to understand the particular Apache Kafka code. They both relate to how the requests are forwarded from brokers to controllers ...
1) Is my understanding correct that when a user sends some request such as managing topics or ACLs that need to be forwarded to the controller, that it is not authorized on the broker first and just forwarded to the controller and authorized only there? That does not seem like a best security practice, so I wonder what was the main motivation for this. 2) Would it make sense to include the source listener in the forwarded request? When you have an authorizer that wants to use the listener as part of the authorization decision (e.g. because you want to have a "management listener" for management operations and "regular listener" for consumers and producers), then it cannot easily do this on the forwarded requests as it seems to always get the control plane listener instead of the original listener. Or is there some reason why the original listener is not included there? Thanks Regards Jakub
