question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If "sasl_ssl" doesn't show up in Kafka.features does that mean it isn't supported?

See original GitHub issue

My real issue is that I get Broker transport error whenever I try to run subscriptions for graphql using node-rdkafka using sasl_ssl and I’m trying to find a solution to that. I’ve installed everything I believe I need for librdkafka to work properly, but when I print out Kafka.features I get

[
  'gzip',
  'snappy',
  'ssl',
  'sasl',
  'regex',
  'lz4',
  'sasl_gssapi',
  'sasl_plain',
  'sasl_scram',
  'plugins',
  'zstd',
  'sasl_oauthbearer'
]

Because sasl_ssl doesn’t explicitly show up in this list does that mean it isn’t supported? I thought maybe because sasl and ssl are both there it might work, but I’m wondering if I’m wrong.

Thanks in advance for all the help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
RicardoGralhozcommented, Oct 24, 2020

Because sasl_ssl doesn’t explicitly show up in this list does that mean it isn’t supported?

Probably sasl_ssl shoudln’t be shown there. I also had 'security.protocol': 'sasl_ssl' with similar settings, had multiple issues and was able to fix all of them and sasl_ssl is still not shown as librdkafka features. See also librdkafka Configuration properties, especially builtin.features

Here are some useful links to help solving this type of connection issues:

Adding more verbose logging from librdkafka helped too. See the consumer example:

// Valid debug mode options are CSV string of selected debug contexts:
//    "generic,broker,topic,metadata,feature,queue,msg,protocol,cgrp,
//      security,fetch,interceptor,plugin,consumer,admin,eos,mock,all" 
rdkafkaConfig.debug = "broker,protocol,security,consumer";

Helpful commands to fix missing dependencies and rebuild node-rdkafka:

  1. apt -qq list libsasl2-modules-gssapi-mit libsasl2-dev libssl-dev
  2. sudo apt-get install libsasl2-dev
  3. sudo apt-get install libssl-dev
  4. npm rebuild node-rdkafka --loglevel="verbose

Related issues:

  1. Failure to initialize (error:SSL routines:SSL_CTX_new:library has no ciphers) #566
  2. Cant make sasl_ssl work #2257
0reactions
stale[bot]commented, Jun 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Apache Kafka
This combination of features means that Kafka consumers are very cheap—they can come and go without much impact on the cluster or on...
Read more >
Configuring Confluent Platform SASL Authentication using JAAS
Apache Kafka® brokers support client authentication using SASL. SASL authentication can be enabled concurrently with TLS/SSL encryption (TLS/SSL client ...
Read more >
Frequently asked questions - Event Hubs for Apache Kafka
Azure Event Hubs is a cloud-native multi-tier broker with support for multiple protocols that is developed and maintained by Microsoft and doesn't use...
Read more >
Apache Kafka - AWS IoT Core
This value isn't required if your truststore is trusted by Amazon certificate authoriies (CA). This field supports substitution templates. If you use Secrets ......
Read more >
Apache Kafka Reference Guide - Quarkus
Quarkus provides support for Apache Kafka through SmallRye Reactive ... This in turn will divide partitions of the topic among application instances.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found