Closed alexandernajafi closed 1 year ago
It is not a bug. It is working as designed. AMQP protocol defines a maximum frame size. Typically, 4096 (initial_frame_max
) bytes is more than sufficient for the the SASL negotiation frame, which carries the credentials. In this case, your token exceeds it and you need to configure RabbitMQ to accommodate your requirements.
We had a similar issue in the management ui which was solved after the management ui stopped using cookies to store credentials. Cookies had also a limit of 4096 which cannot be exceeded.
Describe the bug
Adding a lot of different permissions for RabbitMQ to a user causes the JWT token to grow quite a lot. When a large token is sent to RabbitMQ (more than 4096 chars) an error occurs and the authentication fails
It seems like if you increase the
initial_frame_max
setting, a larger token is allowed.Is this an expected behaviour? And what are your recommendations on choosing a value for
initial_frame_max
? Maybe the documentation should be updated.Reproduction steps
Expected behavior
Authentication is successful
Additional context
No response