-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
AMQP 1.0 connection authentication stopped working against the HTTP authN backend starting with 3.11.10 #9043
Comments
Hm, even with RabbitMQ
This is what I see when I run
...and this is what I see with a regular AMQP 0.9.1 connection via this test program:
Continuing to investigate... |
@motmot80 well, testing with the RabbitMQ 3.10.x branch still fails. It appears that the AMQP 1.0 plugin hasn't sent the supplied password to the HTTP auth backend for quite a while now:
In your environment, does your HTTP auth server bother to look at the password supplied or is it just the username? I'm moving on to just fixing this issue rather than trying to understand when it broke, or if it ever worked 😹 |
It looks like PR #6931 is what broke the combination of the AMQP 1.0 plugin and multiple auth backends. cc @MarcialRosales @michaelklishin |
@MarcialRosales @lukebakken is this not applicable to |
@michaelklishin yes, it should be applied to |
(cherry picked from commit dbffccb) (cherry picked from commit c3ee4e5) # Conflicts: # deps/rabbitmq_management/selenium/bin/suite_template # deps/rabbitmq_management/selenium/package.json # deps/rabbitmq_management/selenium/run-amqp10-roundtriptest # deps/rabbitmq_management/selenium/suites/auth-cache-http-backends.sh # deps/rabbitmq_management/selenium/suites/auth-http-backend.sh
@michaelklishin We retested https://github.com/rabbitmq/rabbitmq-server-binaries-dev/releases/tag/v3.11.21-alpha.16 fix in one of our dev reference environments (RHEL 8, Erlang 25.3.2.3). Works like a charm! Thanks for the quick support. Best regards |
@lukebakken After upgraded to 3.12.13-debian-12-r2 the problem occurs again. |
Hi @motmot80 - could you please do the following:
Thanks |
Hi @motmot80 , I am not able to reproduce this issue in 3.12.13 (docker image). Could you please provide rabbitmq logs with debug level enabled and also the token you are using? |
Discussed in #9031
Originally posted by motmot80 August 8, 2023
Describe the bug
Since RabbitMQ 3.11.10 it isnt possible to authenticate amqp-v1.0 clients with the http-auth-plugin.
It seems that the lastest RMQ versions may have broken the plugin combination
Reproduction steps
Minimal java client:
Expected behavior
Same behavior as RMQ 3.11.9 or 3.10.25 (< 3.11.10):
Authentication is working
Additional context
Maybe the Oauth 2 refactorings have broken the interface between the amqpv1 and the http-auth plugin.
Thanks in advance and best regards
Thomas
RabbitMQ stack trace
The text was updated successfully, but these errors were encountered: