Prerequisites for using Kafka functions
Before you use the Kafka Consumer or Kafka Producer functions in UsageCloud, you must ensure that your Kafka cluster is reachable and that the client identity used has the correct Access Control Lists (ACLs).
By configuring these Kafka ACLs in advance, you ensure that Kafka functions can connect to brokers and perform operations securely and reliably.
Resource type | Resource Name | Operations | Description |
|---|---|---|---|
Kafka Consumer permissions and operations | |||
TOPIC | All or specific topics. | READ | The Kafka Consumer function reads data from Kafka topics. To do this, it requires access to resources of type TOPIC in the Kafka cluster. UsageCloud applies topic-level ACL to control client access to Kafka topics. You can configure this ACL to:
|
GROUP | All groups. | READ | The Kafka Consumer function uses consumer groups to track which messages it has read. Each consumer group maintains its own offset history:
In UsageCloud, the consumer group ID is either:
Note! Previews and tests use temporary or unique group IDs that you do not know in advance. Configure ACLs on the GROUP resource to allow all consumer groups for the required operations to ensure the main consumer group and any preview or test groups use the same permissions without additional ACL changes. |
Kafka Producer permissions and operations | |||
TOPIC | All or specific topics. | CREATE | The Kafka Producer function sends data to Kafka topics. To do this, it requires access to resources of type TOPIC in the Kafka cluster. UsageCloud applies topic-level ACLs to control client access to Kafka topics. You can configure these ACLs to:
To support Kafka Producer functions in UsageCloud, you must grant the client the following permissions on the TOPIC resource type:
|
TOPIC | All or specific topics. | DESCRIBE_CONFIGS | |
TOPIC | All or specific topics. | WRITE | |
| All | DESCRIBE | The Kafka Producer function uses transactions to publish messages reliably. To do this, it requires access to UsageCloud generates
|
| All | WRITE | |