Skip to content

Producer Security with Kerberos #82

Open
@d1820

Description

@d1820

In the current version of Kafka 9.0.x. The producer/consumer API can support kerberos authentication to an AD server. In review your code I dont clearly see a way to do this. Is this not currently possible? From the java perspective possible by running these steps:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_secure-kafka-ambari/content/ch_secure-kafka-config-options.html#d6e422

Any insight to this? or how i would be able to accomplish this?

Update - looks as if it could possibly be done by editing the KafkaTcpSocket:GetStreamAsync() but this is a private method. Would need to be able to get access to the networkStream so could wrap that in a NegotiateStream.

Any way we can add a optional Func to the KafkaTcpSocket class to allow for a way to get the stream and alter it before its returned and allow for a task System.IO.Stream return type or maybe use the visitor/decorator pattern on the stream? Otherwise I think the only other option would be to re-create the KafkaTcpSocket class and make the changes..

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions