SOHU-Co / kafka-node

Node.js client for Apache Kafka 0.8 and later.
MIT License
2.66k stars 628 forks source link

Adding SASL users dynamically without cluster restart #1458

Open jiovanmichel opened 2 years ago

jiovanmichel commented 2 years ago

Case

How can i create dynamically multiple user_access = "password" and add the configuration in the server.properties file without restarting Kafka.

I using SASL / PLAIN

Example with SASL / SCRAM

bin/kafka-configs.sh --zookeeper localhost:2181 --alter --add-config 'SCRAM-SHA-256=[iterations=8192,password=alice-secret],SCRAM-SHA-512=[password=alice-secret]' --entity-type users --entity-name alice

Any example of how to add using SASL / PLAIN?