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

Plugin doesn't work for schema registries that require authentication #5

Open
KyleBurney opened this issue Dec 18, 2019 · 4 comments
Open

Comments

@KyleBurney
Copy link

KyleBurney commented Dec 18, 2019

I'm using version 2.0.2 of Kafka Tool on a Mac. I'm using SASL SSL as the security type for the cluster I'm connecting to. The avro schema registry requires authentication with the same credentials as the cluster. When I select Avro as the data type for viewing messages, all the messages are replaced with the text Error: org.apache.kafka.common.errors.SerializationException: Error retrieving Avro schema for id 1439 and output in the terminal I opened the app from shows io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException: Cannot construct instance of 'io.confluent.kafka.schemaregistry.client.rest.entities.ErrorMessage' (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (401)

It appears it's receiving a 401 Unauthorized error when trying to connect to the registry. There should be a way to specify the property basic.auth.credentials.source=SASL_INHERIT to resolve the error.

@laymain
Copy link
Owner

laymain commented Dec 18, 2019

Thanks for reporting this issue, I will dig into as soon as I can.

Providing a docker-compose or anything else that will help me reproduce easily this issue would be welcomed 😉

@gonzalogomezgarcia
Copy link

Hi,
I've just created a PR to allow configuration of schema registry client: #12
Regards

@KyleBurney
Copy link
Author

KyleBurney commented Nov 6, 2020 via email

@laymain
Copy link
Owner

laymain commented Nov 6, 2020

Thanks @gonzalogomezgarcia, I like the approach, it's a clever way to add customization.

I may have some feedbacks on the implementation though, I'll try to have a look at that as soon as I can.

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

3 participants