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?
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.name
config property
https://kafka.apache.org/documentation/#security
Alternatively, topic quotas or max.message.bytes
can be configured such that clients will be unable to send data, but they'll still be able to connect