MQTT: Keep connection open for authz failures#15201
Merged
michaelklishin merged 2 commits intomainfrom Jan 2, 2026
Merged
Conversation
Adjust mqtt disconnect comment Add a config option to toggle mqtt disconnect on unauthorized topic mqtt.disconnect_on_unauthorized=true(defualt) disconnect the clinet when publish or subscribe unauthorized topic. mqtt.disconnect_on_unauthorized=false subscribe unauthorized topic, reply SUBACK(non-authorized) and send retained messages for the successfully subscribed topics and keep connection. publish unauthorized topic, MQTT v5 and QoS1 reply with PUBACK including an error reason code and keep connection, MQTT v3 and QoS1 reply with PUBACK no error reason code and keep connection, QoS0 drop silently and keep connection. Add a config option to toggle mqtt disconnect on unauthorized topic mqtt.disconnect_on_unauthorized=true(defualt) disconnect the clinet when publish or subscribe unauthorized topic. mqtt.disconnect_on_unauthorized=false subscribe unauthorized topic, reply SUBACK(non-authorized) and send retained messages for the successfully subscribed topics and keep connection. publish unauthorized topic, QoS1 reply with PUBACK(non-authorized) and keep connection, QoS0 drop silently and keep connection.
Closed
4 tasks
michaelklishin
approved these changes
Jan 2, 2026
Collaborator
|
Per discussion with David: a |
Collaborator
|
@iamdrq thank you for contributing. |
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
(cherry picked from commit e1d147c)
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
MQTT: Keep connection open for authz failures (backport #15201)
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
michaelklishin
added a commit
that referenced
this pull request
Jan 2, 2026
michaelklishin
added a commit
to rabbitmq/rabbitmq-website
that referenced
this pull request
Jan 4, 2026
michaelklishin
added a commit
that referenced
this pull request
Feb 24, 2026
michaelklishin
added a commit
that referenced
this pull request
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR supersedes #15123.
The first commit contains the changes in #15123 contributed by @iamdrq .
The second commit contains some refactoring.