Fixed consumer group IDv3.15+

Use a fixed, operator-chosen consumer group ID to work with ACL-enforced Kafka clusters. This is required on Kafka clusters that enforce ACLs on consumer groups, where the default random group ID can’t be pre-allowlisted.

Because the group ID is stable, the plugin commits offsets under the same identity every time, so consumption picks up where it left off.

Prerequisites

  • You have a Kafka cluster

  • You have a Kafka topic in the cluster

  • The consumer group name is allowlisted in your broker ACLs

Environment variables

  • BOOTSTRAP_SERVER_HOST: The bootstrap server host

  • KAFKA_TOPIC: The name of the Kafka topic to consume from

  • CONSUMER_GROUP_ID: The fixed consumer group ID, pre-allowlisted in your broker ACLs

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!