问:sasl+acl如何实现多用户作为消费账号或生成账号?
vim kafka_server_jaas.conf
KafkaServer { org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="admin"
user_admin="admin"
user_wyk_reader="wyk_reader_pwd"
user_wyk_writer="wyk_writer_pwd";
};
vim ../bin/kafka-server-start.sh
exec $base_dir/kafka-run-class.sh $EXTRA_ARGS -Djava.security.auth.login.config=$KAFKA_HOME/config/kafka_server_jaas.conf kafka.Kafka "$@"
vim wyk_reader_jaas.conf
KafkaClient {
org.apache.kafka.common.security.plain.PlainLoginModule required
username="wyk_reader"
password="wyk_reader_pwd";
};
配置完毕后,wyk_reader可以赋权限,并且可以正常使用,现在就是想不仅有wyk_reader可以赋消费的权限还有其他用户可以,进行Read权限授权,我该如何修改配置??
你的答案