Consumer group ID per Kong Gateway Consumerv3.15+

Set the Kafka consumer group ID from the authenticated Kong Gateway Consumer’s username. Each Kong Gateway Consumer gets its own Kafka consumer group and independent offset tracking. On ACL-enforced clusters, group names match Kong Gateway Consumer usernames, so operators can pre-allowlist them.

If no Consumer is authenticated, the plugin falls back to random mode and logs a warning.

Prerequisites

Environment variables

  • BOOTSTRAP_SERVER_HOST: The bootstrap server host

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

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!