setup acl with kafka
authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
super.users=User:admin;User:kafka
allow.everyone.if.no.acl.found=false
security.inter.broker.protocol=SASL_SSL
Reader User 생성
kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--allow-principal User:reader --allow-principal User:writer \
--operation Read \
--group=* \
--topic acl-test
Writer User 생성
kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--allow-principal User:writer \
--operation Writer \
--topic acl-test
kafka-acls.sh --authorizer-properties zookepper.connect=zookeeper1.mydomain.com:2181 --add \
--list \
--topic acl-test
Read 권한 삭제
kafka-acls.sh --authorizer-properties zookeeper.connect=zookeeper1.mydomain.com:2181 \
--remove \
--allow-principal User:reader
--topic acl-test
댓글남기기