Open abishai opened 2 years ago
Strangely, but additional security provider wasn't loaded into java Security, with following hints I was able to connect
-H:AdditionalSecurityProviders=org.apache.kafka.common.security.scram.internals.ScramSaslClientProvider
{
"name": "org.apache.kafka.common.security.scram.ScramLoginModule",
"allDeclaredConstructors": true,
"allDeclaredMethods": true
},
{
"name": "org.apache.kafka.common.security.scram.ScramSaslClient",
"allDeclaredConstructors": true,
"allDeclaredMethods": true
},
{
"name": "org.apache.kafka.common.security.scram.internals.ScramSaslClient$ScramSaslClientFactory",
"allDeclaredConstructors": true,
"allDeclaredMethods": true
},
Would you be able to contribute a sample app for future testing in https://github.com/micronaut-projects/micronaut-kafka/tree/master/tests ?
The issue looks like https://github.com/micronaut-projects/micronaut-kafka/issues/264 but with another connection options.
Expected Behavior
Successful connection to kafka server
Actual Behaviour
After I enabled debug in kafka library, the latest successful log was:
I believe, we received null here https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientAuthenticator.java#L221 because Sasl library was unable to find mechanism requested.
Steps To Reproduce
Default micronaut-kafka example, compiled natively with following settings. Can be verified without actual kafka server setup, the error occurs before connection.
Environment Information
OpenJDK11
Example Application
No response
Version
3.2.3