tychedelia/kafka-protocol-rs

Is there way to integrate AUTH mechanisms?

trickster opened this issue · 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/

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!

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 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.