OAuth2 client runs into an exception (hostname_check_failed) when auth_oauth2.issuer points to a host with a wildcard certificate #14351
-
Describe the bugRabbitMQ server cannot connect to OAuth issuer when its webserver uses a wildcard certificate. (see logs below) Reproduction steps
Expected behaviorIt accepts the valid wildcard certificate. It would also be nice if we could just use a http URL for Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@Gabscap the exception you are looking at is has to do with a standard TLS verification whose behavior is controlled via configuration. We won't troubleshoot OAuth 2 setups of non-paying users, and you haven't shared even a line of your configuration, so below is some basic guidance as to what is going on and what you should be investigating instead of claiming that this is a RabbitMQ bug. TLS Has Many Settings RabbitMQ Cannot Possibly Configure For YouIn effectively all places in RabbitMQ when the node has to use a TLS client or server socket, the TLS-related options are user controlled. The most essential ones can be found in this section but there are many others. For every TLS connections, related to OAuth 2 or not, the TLS client performs two types of verification, both of which can be disabled:
So the question you should be asking yourself is "how do I configure the OAuth 2 plugin's TLS options? what options can be related to the two types verification? How can I disable the hostname verification part entirely?" TLS-Related Settings of the OAuth 2 HTTP Client Used by RabbitMQSpecifically the OAuth 2 client example, the docs do mention a number of TLS-related options and a setting called It accepts two values, Multi-Provider ConfigurationsThe same setting can be configured when multiple IDPs are used. All One of them is Why Can't I Just Use an HTTP URL?Communicating with the IDP using HTTP will make the OAuth 2 setup dramatically less secure, opening it to Man-in-the-Middle attacks in the most crucial place. |
Beta Was this translation helpful? Give feedback.
@Gabscap the exception you are looking at is has to do with a standard TLS verification whose behavior is controlled via configuration.
We won't troubleshoot OAuth 2 setups of non-paying users, and you haven't shared even a line of your configuration, so below is some basic guidance as to what is going on and what you should be investigating instead of claiming that this is a RabbitMQ bug.
TLS Has Many Settings RabbitMQ Cannot Possibly Configure For You
In effectively all places in RabbitMQ when the node has to use a TLS client or server socket, the TLS-related options are user controlled. The most essential ones can be found in this section but there are many others.
For every TLS connec…