-
-
Notifications
You must be signed in to change notification settings - Fork 143
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 authentication to add-cluster command options #191
Comments
I looked into the Kafka security protocol https://kafka.apache.org/31/javadoc/org/apache/kafka/common/security/auth/SecurityProtocol.html
This is not reflected in Sarama https://github.com/Shopify/sarama/blob/main/config.go where SSL and TLS can both be optionally configured. In the example files there is also a I basically see three ways the interface could work:
I personally prefer option 3. One thing I like a lot about Authentication and Encryption are an entry barrier that I would like to help make as low as possible. I think having a flag for each of them would serve the purpose. |
Thanks so much for working on this and bringing these ideas! I tend to agree. Some config options of kafka - especially in the SASL area - are hard to understand. So i share your approach of making it as accessible as possible - even if things are presented differently. What exactly would --encryption do? Is it a boolean? I didn't quite understand this one. |
Glad to here this :) If authentication is presented this way, it must be possible to differentiate between sasl_plaintext and sasl_ssl. I indeed thought of a boolean. If it is set, then I would also require the TLS parameters. And even though it is more consistent with Do you feel like booleans I personally think |
The name should explicitly about "tls", i.e. --tls or --enable-tls. --encryption sounds way too generic for what it is. What about this: from what i see, this is more like your approach 1). |
@maowerner @birdayz
|
Currently the authentication options are not supported when using
kaf config add-cluster
.The examples are very helpful for setting up a cluster with authentication and I got everything working fine by editing the configuration file directly, but it could be more beginner-friendly.
Are there any pitfalls to do this? As far as I can see, it should be sufficient to add more options in
kaf/cmd/kaf/config.go
Line 172 in 4fef082
I could offer to contribute this myself :)
The text was updated successfully, but these errors were encountered: