-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Kafka Schema Registry with basic authentication not working in native mode #15448
Comments
/cc @cescoffier |
Can you provide a reproducer? It seems that the underlying Http client used by the Confluent Avro serde do not get the authentication data. |
Please find attached the reproducer I can share the credentials of confluent cloud/schema registry through private DM if you want |
You gave me a clue on the underlying HTTP client of Confluent Avro Serde. After doing some reverse engineering, I landed on below class which uses ServiceLoader Once I enabled this in application properties and build a native image, everything works as expected. quarkus.native.auto-service-loader-registration=true Thanks again for the insights. Is this info worthwhile to add in documentation? |
Awesome! With that, I can extend the Kafka extension to do that automatically (register the service implementation). |
Describe the bug
When accessing schema registry in native mode, the basic authentication is not working and I am getting 401 unauthorized. It works good in the JVM mode
In Native mode below properties are not honored.
stacktrace
Expected behavior
Schema registry with basic authentication works in native mode similar to JVM mode
Configuration
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
: Linux x64java -version
: Java 11mvnw --version
orgradlew --version
): mvnwAdditional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: