Replies: 2 comments
-
The following code: import ssl
from faststream import FastStream
from faststream.confluent import KafkaBroker
from faststream.security import SASLPlaintext
ssl_context = ssl.create_default_context()
security = SASLPlaintext(
ssl_context=ssl.create_default_context(),
username="my_usr",
password="my_pass",
)
broker = KafkaBroker(
bootstrap_servers="my.bootstrap.server.com:443",
security=security,
)
app = FastStream(broker) Will be parse as this connection parameters: {
'security_protocol': 'SASL_SSL',
'ssl_context': '<ssl.SSLContext object at 0x110528840>',
'sasl_mechanism': 'PLAIN',
'sasl_plain_username': 'my_usr',
'sasl_plain_password': 'my_pass'
} And, finally as the following confluent config: {
"security.protocol": "sasl_ssl",
"sasl.mechanism": "PLAIN",
"sasl.username": "my_usr",
"sasl.password": "my_pass",
} Are you sure, that the problem realted to FastStream? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think, it is a bug and we should mv this discussion to Issues |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I really need your help, as I've been trying everything to be able to consume from a topic using SASL_SSL authentication.
This is the code I'm using:
And this is the log with ssl verifying errors I'm getting:
Does anyone have any idea of how I can solve my issues?
I've tried the same thing using
Faust
and it's working fine using the same certificate, user and password.Thanks in advance for any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions