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

bump new API config.Version to V1_0_0_0 to fix SASL handshake #22

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

solidgoldbomb
Copy link
Contributor

This commit in samsara (IBM/sarama@765bfa3) which first appears in samsara v1.41.0 bumps the default version to SASLHandshakeV1 in Net.SASL.NewConfig().

This leads to a failure of "Error while performing SASL handshake " when using SASL auth. The failure happens immediately after the socket connection is established and prior to any handshake occurring. This is the code path that leads to the failure:

The default config.Version in main.go is currently V0_9_0_0 which is too low for the SASL handshake (even before the upstream commit). The config.Version used when enable-new-api is specified is currently V0_10_2_0 which is also too low for the SASL handshake given the new upstream commit.

I was able to successfully auth using SASL/PLAIN over TLS using enable-new-api and this diff.

@pceric
Copy link
Owner

pceric commented Feb 15, 2024

Thanks for the PR. At this point I think it's safe to assume everyone is using at least V1_0_0_0.

@pceric pceric merged commit e4dd910 into pceric:master Feb 15, 2024
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

Successfully merging this pull request may close these issues.

2 participants