-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add SASL&mTLS authentication support for Kafka in Promtail #4663
Add SASL&mTLS authentication support for Kafka in Promtail #4663
Conversation
TODO
|
9574df7
to
cacf104
Compare
cacf104
to
0bad5ed
Compare
* Add test stacks for SSL, SASL/PLAIN, SASL/SCRAM, SASL over TLS authentication
34212a1
to
488fae3
Compare
c66d3c5
to
d2f4a58
Compare
Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice contribution @taisho6339. Went through the code once and it looks awesome. I'll run it locally this week and circle back.
Thank you so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to connect with SSL locally, because of : java.security.cert.CertificateException: No name matching host.docker.internal found
Otherwise LGTM
Maybe we need to add "host.docker.internal" as SAN field in create certs script. |
What this PR does / why we need it:
Currently, Promtail doesn't support Kafka authentication so we can only connect with no auth.
Let me suggest changes to add some authentication for Kafka.
This PR adds the following auth method.
In addition,
Most of the changes are due to additional modules and testing tools.
Which issue(s) this PR fixes:
Fixes #4662
Special notes for your reviewer:
Checklist
CHANGELOG.md
about the changes.