1. Scenario description
Due to multi-vendor integration and data sharing requirements, the on-site business needs to be connected to the current Kafka cluster. In order to achieve a function similar to tenant isolation, it is necessary to enable Kafka’s authority control and dynamic user management functions, so that different vendors can access authorized legal resources. Consumers Accounts can only consume data, and producer accounts can only produce data.
Literature reference : Kafka Chinese documentation ; stackoverflow. .
2. Control method
☛ Kafka permission classification:
❥ Authentication (Authentication): It is to authenticate the connection between the client and the server , to authenticate the connection between brokers and zookeeper (producer and consumer), other brokers, t