Skip to content

EOFError when connecting with SCRAM authentication #936

Answered by sandbardev
sandbardev asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure. sasl_ver_ssl: true forced us to provide a pair of credentials which we didn't have, and couldn't create a pair recognized by the Kafka servers.
What solved the issue for us was adding ssl_ca_certs_from_system: true:

@kafka = Kafka.new(
      ['url_1:9096', 'url_2:9096'],
      ssl_ca_certs_from_system: true,
      ssl_verify_hostname: false,
      sasl_scram_username: 'valid_user',
      sasl_scram_password: 'valid_password',
      sasl_scram_mechanism: 'sha512',
      client_id: 'app_name'
)

It then worked perfectly. We can close this issue.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dasch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #935 on March 14, 2022 16:03.