-
Notifications
You must be signed in to change notification settings - Fork 47
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
One of ConnectionManager constructors ignores TLS settings #120
Comments
If you mean Rebus' way of allowing multiple endpoints to be passed to the My guess is that your own code that creates A PR would be much appreciated 🙂 |
The complication is that there are potentially more useful advanced configuration options, besides just "tls on/off", such as protocol version, SNI hostname, trust settings and so on that are not encodable in the uri string, but can be set up in customizer. And such customizations, while unlikely, may need to be different per endpoint. |
It's fixed in Rebus.RabbitMq 9.1.0, which is on NuGet.org now 🙂 |
Thanks for the great library!
I am currently trying to make it work over TLS and encountered the following problem:
fails with error:
This happens due to
ConnectionManager
not configuring endpoints correctly. In this case, original connection string has the right schema and host name, yet anAmqpTcpEndpoint
created hereRebus.RabbitMq/Rebus.RabbitMq/Internals/ConnectionManager.cs
Line 129 in 240baa5
does not get its
SslOptions
initialized.The other constructor initializes them properly
Rebus.RabbitMq/Rebus.RabbitMq/Internals/ConnectionManager.cs
Line 76 in 240baa5
so if another
UseRabbitMq
overload is used (the one takingIList<ConnectionEndpoint> endpoints
), everything seems to work.Workaround:
I would gladly submit a PR to fix this, but I am a bit puzzled by the problematic constructor supporting multiple endpoints and I do not understand how it's supposed to be used, so as to not break that flow. I also am not sure how that has to co-exist with
customizer
. Any customizations to connection settings seem to be ignored by current code.The text was updated successfully, but these errors were encountered: