-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] Remove TLS related options when not using TLS #41616
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
[Messenger] Remove TLS related options when not using TLS #41616
Conversation
Can you implement a test, please? |
89e2d1d
to
37e602d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 as a bugfix for 5.2
I don't know if my question makes sense ... but I'll ask it: if we silently drop the TLS config when using Before, this typo would have been caught by the exception ... but now that typo could become a potential security issue? |
@javiereguiluz if your broker is configured to accept both TLS & non-TLS connections, you are right, the non-TLS connection will be used even if it's not what you were looking for. |
Thank you @odolbeau. |
Remove TLS related options when not using TLS to connect to a broker.
The goal is to be able to use the same configuration for both
amqp://
&amqps://
DSN.Currently, when using a configuration containing a
cacert
key with a non-TLS DSN will throw aAMQPConnectionException
(Socket error: could not connect to host.)Configuration example: