kafka-protocol-rs icon indicating copy to clipboard operation
kafka-protocol-rs copied to clipboard

Is there way to integrate AUTH mechanisms?

Open trickster opened this issue 2 years ago • 3 comments

I have been researching about auth mechanism support for kafka. I found that there is rsasl crate for that. We need to figure out how to integrate these two and test the entire system.

https://github.com/dequbed/rsasl/tree/feature/gss-api https://github.com/dequbed/rsasl/

trickster avatar Dec 21 '22 01:12 trickster

This crate is transport agnostic. I'm not totally sure about integration here -- I'm not opposed to adding stuff behind feature flags if it would help integration with other libraries though!

tychedelia avatar Jan 17 '23 16:01 tychedelia

Ohai!

I don't know much about the Kafka protocol, but rsasl is designed to be agnostic of transport too; it will just write the mechanism data into any impl io::Write you hand it (e.g. a Vec<u8>).

I'm currently getting the version 2 out of the door (which is the one you'd want to use), so the latest link on docs.rs will give you the wrong answers. https://docs.rs/rsasl/2.0.0-rc.4/rsasl/index.html is a working link for the current development version though.

dequbed avatar Jan 25 '23 20:01 dequbed

@dequbed hiiii! wow, great timing, i was just looking at your crate. i started a (very provisional work in progress) tower implementation here and was planning on working on getting SASL going this weekend. thanks for the heads up i'd love to integrate with this.

tychedelia avatar Jan 25 '23 21:01 tychedelia