Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization issues are not loud and clear #704

Closed
7 tasks
bpradeep20 opened this issue Oct 24, 2019 · 9 comments
Closed
7 tasks

Authorization issues are not loud and clear #704

bpradeep20 opened this issue Oct 24, 2019 · 9 comments

Comments

@bpradeep20
Copy link

Description

I am not getting any authorization error when I am using ACL based authentication in my Kafka broker and my python client code is authenticated via kerberos. Should I get TOPIC_AUTHORIZATION_ERROR?

How to reproduce

Checklist

Please provide the following information:

  • confluent-kafka-python and librdkafka version (confluent_kafka.version() and confluent_kafka.libversion()):
  • Apache Kafka broker version:
  • Client configuration: {...}
  • Operating system:
  • Provide client logs (with 'debug': '..' as necessary)
  • Provide broker log excerpts
  • Critical issue
@bpradeep20 bpradeep20 changed the title Authorization issues are not load and clear Authorization issues are not loud and clear Nov 19, 2019
@bpradeep20
Copy link
Author

Can anyone please help me to get some sort of exception/error when a client is not authorized for an action with KAfka broker? I am unable to figure it out.

@bpradeep20
Copy link
Author

Can somebody please help on how to get correct authorization error?

@rnpridgeon
Copy link
Contributor

Can you please provide the version of the client you are using along with your client configuration. Specifically I'm curious if you have an error_cb registered with your client(for global errors) and/or a delivery callback configured (For per message error reporting).

Thanks,
Ryan

@rnpridgeon
Copy link
Contributor

#746

@astoliarov
Copy link

Same issue here.

        self.producer.poll(0)
        
        def delivery_report(err, msg):
            """ Called once for each message produced to indicate delivery result.
                Triggered by poll() or flush(). """
            if err is not None:
                print('Message delivery failed: {}'.format(err))
            else:
                print('Message delivered to {} [{}]'.format(msg.topic(), msg.partition()))

        serialized = self.serializer.dumps(event)
        self.producer.produce(
            self.kafka_topic_name, serialized.encode("utf-8"), on_delivery=delivery_report
        )

In this code callback fires when message successfully delivered and do not triggers if I'am trying to write to topic without access

@edenhill
Copy link
Contributor

edenhill commented Sep 9, 2020

@astoliarov The next version, v1.6.0, will provide improved authentication error reporting.

@astoliarov
Copy link

astoliarov commented Sep 9, 2020

@edenhill Thanks, maybe you can tell me when to wait for the new version?

@edenhill
Copy link
Contributor

edenhill commented Sep 9, 2020

We're aiming for october.

@edenhill
Copy link
Contributor

Or january, whichever comes first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants