Kafka Producer / Consumer Authorization

Is Authorization happens on each read/write operation for every message or is it done once per connection from producer/consumer ?



  • Authorizations checks happen on each Kafka request. Every time the producer sends messages to Kafka, brokers will ensure that it has the correct ACLs. Same thing happens for consumers and other clients.

    If you change ACLs, then the very next request will be evaluated against the updated rules.

    Authentication on the other hand is perform once when the connection is established. There is some work in progress to revalidate authentication periodically for existing connections so that should be available at some point in the future.

Sign In or Register to comment.