Replies: 2 comments 2 replies
-
RabbitMQ does not implement an HTTP API client, it relies on the one that comes with the runtime (that is, Erlang/OTP). This is the first time that I recall someone asking for HTTP client proxy options support. 3.13.0 will include a separate (internally) OAuth 2 client #10012, so adding support for HTTP proxies will be more feasible. However, with just one request it's not going to be our team's priority. You are welcome to contribute this feature once #10012 is merged. Here is the relevant portion of the Erlang standard library docs, it has an HTTP proxy example right on the first page. |
Beta Was this translation helpful? Give feedback.
-
In other news, please use Discussions for questions. This idea has next to no specifics attached to it, so this is discussion material. For example, you try to use an environment variable and assume that RabbitMQ automatically will pick them up. But RabbitMQ uses environment variables only in a handful of places, all configuration happens via one or two configuration files, by design. So such things must be clearly designed, explained in the proposal, and weighted against their alternatives. "setup http_proxy for RabbitMQ" is not a design that can be implemented. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
We have a stack consist of:
rabbitmq_auth_backend_oauth2
plugin enabled that fetches the keys from our Keycloak:Everything works in our stack in normal conditions but when we run the stack behind a corporate proxy we face the issue.
RMQ receives the connections from STOMP clients but it cannot verify the tokens since it cannot get the key from our Keycloak (because of proxy it cannot reach out).
We solved this issue for other components of our stack by setting environment variables such as
http_proxy
,https_proxy
andno_proxy
.I passed these variables to the RMQ as below but still, it cannot parse the JWT token:
RMQ logs:
So what is the solution in this case? I couldn't find that much info on how to run RMQ behind corporate proxy set aside fetching key and working with JWT.
Reproduction steps
Expected behavior
RabbitMQ or Oauth2 plugin should pick up the
http_proxy
andno_proxy
environment variables and use them to reach Keycloak and fetch the keys.Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions