-
Notifications
You must be signed in to change notification settings - Fork 4
feat: authentication support for kafka connection #530
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
Conversation
| } | ||
| } | ||
|
|
||
| return &kafka.Transport{ |
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.
Don't you need to set a Dialer as well here?
If writer Transport is nil DefaultTransport is used, but in this case it won't as we're explicitly setting it with createKafkaRoundTripper.
I think here we should first create a Transport like here and then set the SASL and TLS?
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.
Updated.
Support self-hosted users better by providing auth mechanism for Kafka connections. Introduces a few environment variables:
SENTRY_KAFKA_SASL_MECHANISM(valid values:"PLAIN","SCRAM-SHA-256","SCRAM-SHA-512","")SENTRY_KAFKA_SASL_USERNAMESENTRY_KAFKA_SASL_PASSWORDSENTRY_KAFKA_SSL_CA_PATHSENTRY_KAFKA_SSL_CERT_PATHSENTRY_KAFKA_SSL_KEY_PATHIf the mechanism is not provided, it will default to a nil
kafka.RoundTripper, which is the default already.Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.