-
Notifications
You must be signed in to change notification settings - Fork 259
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
Invalid Security Protocol SASL_SSL #174
Comments
It may make sense to specify pkg-config as a requirement for with and without dynamic linking. Additionally, should check for openssl and sasl2 when using those features in the build.rs file. Without cmake build, was finally able to make it further by specifying
|
The environment setup like above finally got everything building/linking properly, with sasl_ssl available. rdkafka-sys should compare feature flags to available libraries, since librdkafka doesn't fail with them not present. |
I'm afraid this is mostly working as intended. As you say, the upstream librdkafka build system doesn't error if it can't find the libraries that you've enabled. There's an issue open for that, but it hasn't seen much activity: edenhill/mklove#21. I'm hesitant to try to work around it on our end, because changes can break as many environments as they fix. In general I've found the CMake build system more reliable, and that's where I've been investing time lately. I'd be curious to know why the CMake build failed for you when you enable SSL/SASL. |
|
Er, sorry, that's not what I meant to say. I've opened a PR upstream to try to get this fixed. Unfortunately I don't think there's anything to be done on our side, but I that PR merges it will eventually make its way down here. confluentinc/librdkafka#2640 |
I'm attempting to set
security.protocol
toSASL_SSL
. I receive the following errorClient config error: Invalid value "SASL_SSL" for configuration property "security.protocol" security.protocol SASL_SSL
I'm using
sasl
andssl
feature, and the configure output seems correct.SASL_PLAINTEXT
will work fine.Build output stripped to relevant lines
I'm going to guess that it is failing to find libssl, even with specifying OPENSSL_ROOT_DIR. Attempting cmake_build causes rdkafka-sys to fail to build, with both openssl 1.0 and 1.1.
The text was updated successfully, but these errors were encountered: