Unable to match mqtt scope since update #11021
-
Describe the bugSince the update of the new version of rabbitmq v3.13.1 i'm not able to write in topics. I had to rollback to the version 3.12.1 but didn't tested in version between the last version. When the user try to write on this topic positions.${sub} i got this error from the mqtt logs:
Reproduction stepsHere is my advanced configuration it is using the keycloak:
And an example of the jwt payload: {
"exp": 1713286423,
"iat": 1713285823,
"jti": "c6bdb805-d6a8-409f-ad45-ea1d67153822",
"iss": "...",
"aud": [
"argos",
"realm-management",
"account"
],
"sub": "2b1cae37-197e-4b47-ab88-5141ac958112",
"typ": "Bearer",
"azp": "**",
"session_state": "**",
"acr": "1",
"allowed-origins": [
"***"
],
"realm_access": {
"roles": [
"default-roles-fnpc",
"offline_access",
"uma_authorization"
]
},
"resource_access": {
"realm-management": {
"roles": [
"manage-users",
"query-users"
]
},
"account": {
"roles": [
"manage-account",
"manage-account-links",
"view-profile"
]
}
},
"scope": "openid profile email",
"sid": "***",
"internal": "true",
"email_verified": true,
"name": "***",
"preferred_username": "***",
"given_name": "***",
"family_name": "***",
"mqtt_scope": "argos.write:*/*/positions.{sub}",
"email": "***",
"email_otp": "false"
} Expected behaviorExpected to be able to write in topic with identificated user as with the old version of the rabbitmq Additional contextNo additional |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
@gaetansenn we will only investigate OAuth 2-related issues if you provide a complete set of steps to reproduce or if you are a paying user. Otherwise you'd have to troubleshoot it yourself. Enabling debug logging would be a good first step. Provide details on how Keycloak was configured. We routinely see issues with IDP configuration that has nothing to do with RabbitMQ. |
Beta Was this translation helpful? Give feedback.
-
I also highly recommend against using |
Beta Was this translation helpful? Give feedback.
-
Hello @michaelklishin thank you for your reply. Here the more detailed lines but look like the problem comes from the
|
Beta Was this translation helpful? Give feedback.
-
Hi @gaetansenn , i am reading the following error in the logs which tells me you are trying to create a queue (i.e
|
Beta Was this translation helpful? Give feedback.
This issue will be fixed in 3.13.2 by #11023 which doesn't check for
configure
access anymore if the will queue doesn't exist.