Replies: 2 comments 2 replies
-
You are not using the official Java client. So it is hard to know what different client errors mean. You should probably as a first thing check the broker logs. But if the client worked before without adding the authorization, then your problem is likely the authorization. Either it does not work or you are not allowed to produce/consume the messages. PS: The blog post is 2 and half years old. I think the request sent to the OPA server changed since the blog post was written. So make sure that what you have is up to date. |
Beta Was this translation helpful? Give feedback.
-
Hi again @scholzj ,
-Could you give me a simple example in rego where I can authorize only producer_1 to write in topic_1? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I want to produce and consume to kafka from an external python client using mTLS for the authentication and OPA for the authorization.
Broker configuration:
kafka user:
I have extracted the user certificates in PEM (.crt) format to use it with the kafka producer in python
Python code for the producer:
Kafka user:
Python code for the consumer:
I have tested the kafka producer and consumer in python with the ssl certificates and it s working fine.
I have deployed OPA server and added the OPA policies with Config map following the tutorial. The OPA server is working fine.
Once I add the authorization section to the broker configruation,
the producer is failing with this error :
kafka.errors.KafkaTimeoutError: KafkaTimeoutError: Failed to update metadata after 60.0 secs.
Beta Was this translation helpful? Give feedback.
All reactions