Manage Kafka ACLs for producer and consumer principals using kafka-acls.sh

domain: kafka · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the AclAuthorizer by setting authorizer.class.name=kafka.security.authorizer.AclAuthorizer in server.properties and restart brokers
  2. Grant a producer principal WRITE and DESCRIBE on the target topic: kafka-acls.sh --bootstrap-server localhost:9092 --add --allow-principal User:producer-svc --operation Write --operation Describe --topic my-topic
  3. Grant a consumer principal READ on the topic and DESCRIBE on its consumer group: kafka-acls.sh --add --allow-principal User:consumer-svc --operation Read --topic my-topic and --operation Describe --group my-group
  4. Add an explicit DENY to block a specific user from a host: kafka-acls.sh --add --deny-principal User:badactor --deny-host 198.51.100.3 --operation Read --topic my-topic
  5. List current ACLs to verify: kafka-acls.sh --list --topic my-topic
  6. Remove an ACL by replacing --add with --remove and supplying the same principal/operation/resource flags

Known gotchas

Related routes

configure kafka client and broker authentication using sasl/scram
kafka.apache.org · 5 steps · unrated
enable and operate kafka cruise control for automated partition rebalancing and safe broker decommissioning
github.com · 5 steps · unrated
Configure Kafka producer acks=all with topic min.insync.replicas for strong durability guarantees
kafka.apache.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans