Skip to content

update(mqtt config): Enforce strict parser mode by default - #3677

Open
Meggielqk wants to merge 2 commits into
release-6.3from
r63-enforce-strict-mode-for-mqtt
Open

update(mqtt config): Enforce strict parser mode by default#3677
Meggielqk wants to merge 2 commits into
release-6.3from
r63-enforce-strict-mode-for-mqtt

Conversation

@Meggielqk

@Meggielqk Meggielqk commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

@Meggielqk Meggielqk added this to the 6.3.0 milestone Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MQTT configuration documentation to reflect EMQX 6.3.0 behavior, where strict MQTT packet parsing/validation is enabled by default via mqtt.strict_mode, and explains how to disable it globally or per-zone for legacy clients.

Changes:

  • Adds strict_mode = true to the basic MQTT configuration example and documents the new strict_mode option.
  • Introduces a new section describing what “strict MQTT packet validation” checks, plus expected disconnect/log/response behavior.
  • Updates the introductory paragraphs to better frame the page around MQTT protocol behavior and validation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
zh_CN/configuration/mqtt.md Adds strict_mode documentation and a Chinese section explaining strict packet validation and per-zone disablement.
en_US/configuration/mqtt.md Adds strict_mode documentation and an English section explaining strict packet validation and per-zone disablement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +43 to +47
| `strict_mode` | Strict Mode | This sets whether to apply additional protocol compliance checks to incoming MQTT packets. Packets that fail these checks cause the client connection to be closed. | `true` | `true`, `false` |

### Strict MQTT Packet Validation

Starting from EMQX 6.3.0, strict MQTT packet validation is enabled by default. With `strict_mode = true`, EMQX rejects malformed MQTT packets, including packets with:

@Meggielqk Meggielqk Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files under cfg-manual-docgen/configuration-manual-.md are legacy artifacts and are not used by the current published HOCON manual. The HOCON manual is generated from the EMQX schema dump. The generated v6.3.0 data in hocon/hocon-ee-v6.3.0-.json already sets mqtt.strict_mode to true, while this page explicitly states that the new default applies starting from EMQX 6.3.0. @copilot

Comment thread zh_CN/configuration/mqtt.md
@Meggielqk
Meggielqk requested a review from zmstone July 16, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants