We are debugging a bug and we need to prevent all producers to produce messages to a specific kafka-topic. There are alot of producers and I can't control them.
How can I do that on the kafka-side?
We are debugging a bug and we need to prevent all producers to produce messages to a specific kafka-topic. There are alot of producers and I can't control them.
How can I do that on the kafka-side?
Copyright © 2021 Jogjafile Inc.
Firewalling a port would block all traffic.
Setting up a TCP proxy and dropping packets would require a bit of work to understand the inner Kafka protocol.
Therefore, you would need to enable client authorization (SASL) or other authentication mechanisms on the broker(s), then modify certificates and/or ACL policies to limit server connections per topic
Refer
authorizer.class.nameconfig propertyhttps://kafka.apache.org/documentation/#security
Alternatively, topic quotas or
max.message.bytescan be configured such that clients will be unable to send data, but they'll still be able to connecthttps://kafka.apache.org/documentation/#design_quotas