Skip to content
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

sasl scram support #601

Closed
smedegaard opened this issue May 27, 2020 · 4 comments · Fixed by faust-streaming/faust#29
Closed

sasl scram support #601

smedegaard opened this issue May 27, 2020 · 4 comments · Fixed by faust-streaming/faust#29

Comments

@smedegaard
Copy link

Both aiokafka and Confluent kafka supports scram authentication. Faust should too

@forsberg
Copy link

I got this working with some effort, including a merge of aio-libs/aiokafka into robinhood/aiokafka. The result is available as a branch in my fork of faust: 1.10-scram-sha-sasl-mechanism. Not tested in production yet, your mileage may vary.

@popadi
Copy link

popadi commented Nov 5, 2021

Hey! What is the status for this? Any plans on having all the other mechanisms available like they do in faust-streaming/faust? See here https://github.com/faust-streaming/faust/blob/master/faust/types/auth.py#L23-L27.

@smeana
Copy link

smeana commented Oct 27, 2022

How do you specify mechanism=SASLMechanism.SCRAM_SHA_512?
Using version 1.10.4
I can only see PLAIN and GSSAPI

class SASLMechanism(Enum):
    PLAIN = 'PLAIN'
    GSSAPI = 'GSSAPI'

How can I make this work for SASL_SSL with SCRAM_SHA_512?

 ssl_context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH, cafile='../certs.pem')

 app = faust.App('cod_error_count_sap',
                autodiscover=True,
                broker=[
                    URL("kafka://....:9093"),
                    URL("kafka://.....:9093"),
                    URL("kafka://......:9093"),
                    URL("kafka://.....:9093"),
                    URL("kafka://.....:9093"),
                ],
                broker_credentials=faust.SASLCredentials(username='......', password='......',
                                                         ssl_context=ssl_context, mechanism=SASLMechanism.SCRAM_SHA_512),
                store='rocksdb://'
                ) 

@patkivikram
Copy link
Collaborator

This project is not maintained anymore. Please refer to the faust-streaming as that repo is maintained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants