Skip to content

Instantly share code, notes, and snippets.

@coheigea
Created September 28, 2016 11:14
Show Gist options
  • Save coheigea/7865a232e6c79a2a868438763614e4af to your computer and use it in GitHub Desktop.
Save coheigea/7865a232e6c79a2a868438763614e4af to your computer and use it in GitHub Desktop.
Authorization privileges for Apache Kafka
[groups]
admin = admin_role
producer = describe_role, read_role, write_role
consumer = describe_role, read_role, describe_consumer_group_role, read_consumer_group_role
[roles]
admin_role = Host=*->Cluster=kafka-cluster->action=ALL
describe_role = Host=*->Topic=test->action=describe
read_role = Host=*->Topic=test->action=read
write_role = Host=*->Topic=test->action=write
describe_consumer_group_role = Host=*->ConsumerGroup=test-consumer-group->action=describe
read_consumer_group_role = Host=*->ConsumerGroup=test-consumer-group->action=read
[users]
Broker = admin
Service = producer
Client = consumer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment