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

How to pass security protocol, mechanism user and pass to connect to kafka #24

Open
raafael opened this issue Jul 23, 2024 · 1 comment
Labels
enhancement New feature or request new feature

Comments

@raafael
Copy link

raafael commented Jul 23, 2024

Hello! I didn't find in the docs more information about different kafka configurations to connect, I am using a bintami kafka helm deployed in k8s and my configuration to connect to the brooker in my microservices is like that:

kafka.bootstrap.servers=xxxxx
kafka.security.protocol=SASL_PLAINTEXT
kafka.sasl.mechanism=SCRAM-SHA-256
kafka.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="" password="";
kafka.session.timeout.ms=30000

Is possible to connect in kafka like this with krakend ?

@0xMattijs
Copy link

0xMattijs commented Sep 12, 2024

It looks like no config is passed to the underlying kafkapubsub constructor:

t, err := pubsub.OpenTopic(ctx, dns+cfg.TopicURL)

It would be nice if settings from the extra config could be picked up and passed here, since this seems possible according to the docs: https://pkg.go.dev/gocloud.dev/pubsub/kafkapubsub#example-OpenTopic

Eventually the config will be passed to Sarama: https://pkg.go.dev/github.com/IBM/sarama#Config, which offers all the nice knobs.

@alombarte alombarte added enhancement New feature or request new feature labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
None yet
Development

No branches or pull requests

3 participants