confluentinc / kafka-rest

Confluent REST Proxy for Kafka
https://docs.confluent.io/current/kafka-rest/docs/index.html
Other
47 stars 647 forks source link

Is Authorization or ACLs are supported in Kafka-Rest #525

Open amitgurav04 opened 5 years ago

amitgurav04 commented 5 years ago

Suppose, I have two clients A and B. and two topics T1 and T2.

Client A want to send the message on topic T1. But he should not able to send message on topic T2 .

Client B want to send the message on topic T2. But he should not able to send message on topic T1 .

Can we add such authorization in Kafka-rest? Which we can do in Kafka broker using ACLS.

Please help me on this.

Thanks in advance.

stanislavkozlovski commented 5 years ago

Hey there @amitgurav04, I'm afraid the rest proxy does not currently support your requested feature. It currently supports proxy->broker authentication, but not user->proxy.

Feel free to check out our documentation on the matter: https://docs.confluent.io/current/kafka-rest/docs/security.html

pecanNBU commented 5 years ago

kafka-rest uses jetty severlet, you can Override configurePreResourceHandling from Application in KafkaRestApplication and add a filter to ServletContextHandler

mithunmanohar commented 4 years ago

The confluent security plugin(available under a Confluent enterprise license) supports this. https://docs.confluent.io/current/confluent-security-plugins/kafka-rest/introduction.html