Replies: 3 comments 5 replies
-
@bast42 running plugins won't be notified of the metadata store change, so yes, a node restart may be necessary depending on what a plugin does. We have several Selenium-based test suites that were originally introduced for testing certain OAuth 2 workflows. They suggest that a new 4.2 beta (there is no such thing as an 4.2 RC at the moment, regardless of how the community Docker image names its tags) is fine. @MarcialRosales FYI. |
Beta Was this translation helpful? Give feedback.
-
I have followed the reproduction steps against v4.1.x branch (build: RabbitMQ 4.1.3+32.g7413939.dirty) and i have not seen any issues. I have tested using keycloak. I start a brand new server. I successfully log in with |
Beta Was this translation helpful? Give feedback.
-
I compared the behavior of different RabbitMQ images from the Docker community again, specifically rabbitmq:4.1.3-management and rabbitmq:4.2.0-beta.1-management. I noticed that starting from version 4.2, you explicitly need to enable the rabbitmq_auth_backend_oauth2 plugin for OAuth 2.0. With earlier versions, OAuth 2.0 worked even without explicitly enabling this plugin (at least with the image from the Docker community). I’m aware that this was an incorrect use of RabbitMQ and that the OAuth 2.0 plugin must be enabled. However, since we didn’t have to enable the plugin before, we assumed during the tests with 4.2.0-beta.1 that the issue was caused by the switch to Khepri. To be honest, I still do not get, why OAuth 2.0 works with version 4.1.3 if the plugin is disabled. Anyway, thanks for your support and quick replies. RabbitMQ 4.1.3 (with OAuth 2.0 config and default plugins)
RabbitMQ 4.2.0-beta.1 (with OAuth 2.0 config and default plugins)
RabbitMQ 4.2.0-beta.1 (with OAuth 2.0 config, with OAuth 2.0 plugin)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
After enabling Khepri in RabbitMQ (version 4.1) via the Management UI, I am redirected to the login page displaying the message "Not_Authorized". The previously working OAuth 2.0 login option no longer works (it redirects to a blank page) and disappears when the login page is reloaded. The basic authentication option still works as expected after the migration to Khepri.
Restarting RabbitMQ — either by restarting the container or via
rabbitmqctl stop_app
andrabbitmqctl start_app
— resolves the issue, and the OAuth 2.0 option on the login page becomes available and functional again.Note: When using RabbitMQ 4.2 RC (container image tag 4.2-rc-management) with Khepri as the default metadata store, the OAuth 2.0 login option is not shown after the initial startup. Again, a restart is required to resolve the issue.
Reproduction steps
After a few seconds, you are redirected to the login page. The OAuth2 login option is still visible but no longer works.
To resolve the problem restart RabbitMQ (
podman restart rabbitmq
orrabbitmqctl stop_app
&rabbitmqctl start_app
).Expected behavior
After a successful migration to Khepri, the OAuth2 login option remains available on the login page and works as expected.
Additional context
rabbitmq.conf:
Beta Was this translation helpful? Give feedback.
All reactions