Repository navigation
EMQX Enterprise (LTS) 5.8.12
Download
Ubuntu / Debian
| OS | Arch | Package | Tarball |
|---|---|---|---|
ubuntu26.04 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu26.04 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu24.04 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu24.04 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu22.04 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu22.04 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu20.04 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
ubuntu20.04 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
debian13 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
debian13 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
debian12 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
debian12 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
debian11 |
amd64 | .deb (sha256) | .tar.gz (sha256) |
debian11 |
arm64 | .deb (sha256) | .tar.gz (sha256) |
RHEL / Rocky / Amazon Linux
| OS | Arch | Package | Tarball |
|---|---|---|---|
el10 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
el10 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
el9 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
el9 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
el8 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
el8 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
el7 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
el7 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
amzn2 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
amzn2 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
amzn2023 |
amd64 | .rpm (sha256) | .tar.gz (sha256) |
amzn2023 |
arm64 | .rpm (sha256) | .tar.gz (sha256) |
macOS
| OS | Arch | Package |
|---|---|---|
macos15 |
arm64 | .zip (sha256) |
Summary
EMQX Enterprise 5.8.12 is a maintenance release for the 5.8 LTS line. It adds Enterprise Linux 10 and Ubuntu 26.04 packages, reduces idle resource use for authentication and authorization backends, and improves subscription queries. It also fixes memory growth in JWKS refreshes and in Kafka and Confluent producers configured without acknowledgments.
Upgrade Notes
- The new
mqtt.max_connect_user_propertieslimit defaults to 100. It applies separately to CONNECT and Will properties. Set it toinfinityif your clients need the previous behavior. - Clusters with nodes older than 5.3.0 require
rpc.insecure_fallback = trueon every node to use the legacy handshake. - To change
plugins.install_dir, set it in the configuration file or withEMQX_PLUGINS__INSTALL_DIRand restart the node.
Enhancements
Platform Support
-
#18031 Added Enterprise Linux 10 (EL10) packages, for Red Hat Enterprise Linux 10, Rocky Linux 10, and compatible distributions.
-
#19972 Added Ubuntu 26.04 packages.
Observability and Performance
-
#17964 Reduced idle process and memory overhead for authentication and authorization backends by no longer creating unused buffer worker pools.
-
#18186 Improved deep-page queries in the subscriptions HTTP API by accumulating in-memory subscription rows on each target node, avoiding one RPC per pagination batch.
Security Hardening
-
#18205 Strengthened validation of data backup archives during import so a backup file's contents are restored only into the table it is meant for.
-
#17857 Improved redaction of sensitive data in logs, traces, and API responses.
Secrets are now consistently hidden in the affected places, including authentication and authorization backend query traces, JWT signing key material (carried inside
jose_jwkrecords), HTTP connector request headers, Prometheus configuration API responses, and authenticator creation responses. -
#18317 The HTTP API now redacts
service_account_jsonin responses for GCP PubSub Producer and Consumer connectors that use JSON service account authentication. -
#18328 The Snowflake connector now applies its configured
ssloptions when connecting to Snowflake endpoints. Previously the connector ignored thesslsettings and never verified the server certificate. -
#18336 Read-only REST endpoints no longer return secrets in cleartext:
GET /listenersandGET /listeners/{id}now render the listenerssl_options.passwordas******.GET /exhooksandGET /exhooks/{name}now render the gRPC clientssl.passwordas******.- Audit log entries for
POST /licensenow record the request body as******, so the license key does not appear inGET /auditresults.
Updating a listener or an exhook server with a body that contains the
******placeholder keeps the stored secret unchanged.Upgraded HOCON to 0.46.3. This release renders sensitive values inside array-typed config fields as
******and no longer prints sensitive field values in config validation error logs. -
#18356 MQTT connections are now refused until node startup completes, so listeners no longer serve traffic before authentication, authorization, and plugin security hooks are active. The
GET /statusendpoint reports HTTP 503 during this startup window, so load balancers can route around the node until it is ready. -
#18835 Stopped including the result of a successful configuration change in the cluster configuration sync debug logs.
The result could carry compiled runtime state, such as the HTTP authenticator header templates, which held secrets that log redaction did not cover.
-
#18958 MQTT listeners now close a connection as soon as its first packet is not a CONNECT, before reading the packet body.
-
#19716 Updated the bundled CA trust store to the Mozilla CA set as of 2026-10-20.
The bundle moves from certifi 2.10.0 (142 certificates) to 118 certificates. Among the roots it no longer contains are
emSign ECC Root CA - G3,AAA Certificate Services,emSign Root CA - C1,emSign ECC Root CA - C3,SecureSign Root CA12andAtos TrustedRoot 2011; it gains the roots Mozilla has added since, such asSECOM TLS RSA Root CA 2024,SECOM TLS ECC Root CA 2024,Telia RSA TLS Root CA v3andTelia EC TLS Root CA v3.This bundle is the trust store for connectors that send HTTP requests and have no
cacertfileconfigured. Setcacertfileto pin the trust anchors of an outgoing connection yourself. -
#19883 In the
jqfunction of the rule engine SQL,envand$ENVnow evaluate to an empty object. -
#20029 MQTT-SN QoS -1 publishes now go through gateway authentication and publish authorization, the same as other publishes.
-
#20116 Update Hackney to use standard TLS certificate-path validation with the bundled CA certificates.
-
#20149, #20194 Enhanced cluster RPC security with
gen_rpc3.5.4. -
#20154 Made HTTP request parsing on the Dashboard, the REST API and the WebSocket listeners stricter:
- HTTP/2 requests are limited to 32 KB of decoded headers. When a request has larger headers, EMQX resets the HTTP/2 stream with the error code
ENHANCE_YOUR_CALM. Other requests on the same connection are not affected. - HTTP/2 header blocks sent in several frames are limited to 32 KB.
- HTTP/2 header blocks that encode an integer of more than 38 bits are rejected with a connection error.
- HTTP/1.1 requests with more than 100 header lines are rejected with status 431, also when header names repeat.
- HTTP/1.1 request bodies with a chunk size of more than 16 hex digits are rejected.
- Multipart request bodies with a part header block larger than 2048 bytes are rejected.
EMQX also applies the 32 KB limit to the headers and trailers of HTTP/2 responses it receives, for example from ExHook and ExProto gRPC servers. A gRPC call fails when the server returns larger metadata.
- HTTP/2 requests are limited to 32 KB of decoded headers. When a request has larger headers, EMQX resets the HTTP/2 stream with the error code
-
#20188 Dashboard LDAP single sign-on and LDAP bind authentication now reject empty passwords before contacting the LDAP server.
-
#20203 Cluster Link now validates replication operation types.
-
#20209 The Dashboard and REST API now reject uploaded plugin packages whose file names do not match the plugin name pattern.
Bug Fixes
Core MQTT Functionalities
-
#18623 Stop MQTT listeners before stopping applications during node shutdown.
Previously, listeners kept accepting and processing client traffic while the applications behind the publish path were already stopped. Publishing clients could then trigger a burst of
hook_callback_exceptionerrors in the log, for example from the rule engine, until the listeners stopped a few seconds later. Listeners now stop first, so no client traffic is processed during application shutdown.The node now also reports itself as not running in
GET /statusas soon as shutdown begins, so load balancers stop routing new connections to it. -
#18676 A malformed packet received before the CONNECT packet now closes the connection instead of crashing the connection process.
-
#19643 Fixed MQTT packet ordering over WebSocket when a message contains complete packets followed by an incomplete or invalid packet, and prevented connection process crashes when handling such invalid packets.
Fixed unnecessary error logs when sessions expire after node evacuation or rebalancing.
-
#19730 Fixed the handling of three kinds of malformed MQTT packets. EMQX now rejects each of them as a protocol error and closes the connection, instead of ending the connection process with an error.
- A packet with a Remaining Length of zero encoded in more than one byte, for example a CONNECT sent as
10 80 00. A DISCONNECT or PINGREQ with this encoding is now handled as a normal DISCONNECT or PINGREQ. - A packet with a variable byte integer, such as a Property Length, that ends while its continuation bit is set, or that is longer than four bytes.
- An MQTT 5.0 User Property that ends after its key, without a complete value length.
- A packet with a Remaining Length of zero encoded in more than one byte, for example a CONNECT sent as
-
#20140 MQTT packets with a Remaining Length longer than four bytes are now rejected as malformed. The MQTT specification allows at most four bytes.
Data Integration
-
#17605 Fixed Oracle action prepare/status checks to parse action SQL without executing it, and reject unsupported top-level DDL/DCL/TCL statements. Also improved support for text payloads over 4000 bytes when the payload placeholder is the last bind parameter.
-
#17716 Added the option of allowing TLS Peer Verification for Confluent Producer Connectors.
-
#17720 Added the option of allowing TLS Peer Verification for GCP PubSub Producer/Consumer Connectors.
-
#17954 Fix GreptimeDB async batches that could remain unflushed after health checks at low write rates.
-
#17947 Fixed an issue where updating an HTTP connector could leave its action buffer workers blocked after the connector was recreated, causing messages to remain queued until the next retry interval.
-
#17994 Fixed Kafka producer action retry metrics. The
retried,retried.success, andretried.failedcounters on an action's metrics now reflect messages that the internal buffer re-sends after a broker reconnect, so an operator can tell whether retried messages ultimately succeeded or failed. Previously these counters stayed at0regardless of how many internal retries occurred. Thesuccessandfailedcounters are unaffected and are not double-counted. -
#18082 Kafka producer:
max_linger_timeis honored again for memory-mode buffers (upgraded the Kafka client library wolff to 4.1.11). When less than a full batch is buffered, the producer waits up tomax_linger_timefor more messages before forming a produce request, reducing the produce request rate at high message rates; sending is immediate whenever a full batch's worth of data is available, and the publish path is never delayed. The defaultmax_linger_time = 0keeps the previous send-immediately behavior.This also applies to Azure Event Hubs and Confluent producer connectors, which use the same client library.
-
#18301 Elasticsearch action
indexandidvalues are now URL-encoded when composing the request path, so characters such as#or/in a templated value are treated as literal text within a single path segment instead of altering the request target. The JSON request body is not affected. -
#18465 Fixed handling of templated INSERT SQL statements in the ClickHouse, TDengine, SQL Server, and MySQL Sinks (when batch insert is enabled).
Previously, rendering SQL templates could often produce malformed SQL due to syntax errors in the manually entered template itself and due to interpolation issues.
Now, SQL statements are fully parsed when an action is created, and invalid SQL is rejected. During rendering, correct escaping is enforced. To provide consistent and predictable behavior, we limit the SQL features that can be used. Most notably, we reject comments in SQL statements. However, we support a large subset of syntax features: constant values, strings and string interpolation, arithmetic, functions, conditions, and conditional operators.
MySQL also supports
ON DUPLICATE KEY UPDATE, ClickHouse supportsFORMAT ValuesandFORMAT JSONCompactEachRow, and TDengine supportsINSERT ... USING ... TAGSand table identifier interpolation.To provide consistent rendering for MySQL templates, the MySQL Sink unconditionally disables
ANSI_QUOTESandNO_BACKSLASH_ESCAPESmodes for all connections, and treats the statements accordingly.The ClickHouse Sink now infers the batch value separator from the SQL template and ignores the configured
batch_value_separatorvalue. -
#18762 Fixed an error reported by the TDengine action. When the action could not be found, the error named the connector's ID instead of the action's ID, which made the error read as if a valid connector ID was invalid.
-
#18920 Fixed GreptimeDB connectors that switched between connected and disconnected under heavy write load. The health check no longer waits behind pending writes, so it fails only when GreptimeDB does not respond.
-
#19107 On rare occasions, under heavy load, the GCP PubSub Producer and HTTP Actions could report unrecoverable errors with the reason
{error,closed}. These errors are now deemed recoverable, as they happen as the remote server closes connections. -
#19369 Previously, during the health check of Postgres Actions and their derivative families, a transaction to validate the table existence would remain active and holding a lock on the target table until the next health check. Now, the transaction is closed as soon as the table existence probe ends.
-
#19534 HTTP actions no longer retry recoverable HTTP responses immediately within an asynchronous query. Both connector callbacks return these errors to the action buffer, whose retries are controlled by
resume_intervalandrequest_ttl. -
#19802 Fixed an issue where GCP PubSub Producer request bodies were not properly redacted from logs and traces. When such bodies were large enough, they could lead to increased CPU and memory usage, as well as
long_scheduleandlarge_heapwarnings pointing toehttpcprocesses formatting log messages. -
#19844 Removed redundant health checks performed by MongoDB actions. Previously, each action performed an additional health check, so the number of checks increased with the number of actions associated with a connector. This could contribute to timeouts and connection pool contention (
mongodb_connector_pool_checkout_timeouterrors). -
#19994 Fixed growing memory use in Kafka and Confluent producer actions when acknowledgments are disabled (
required_acks = none). -
#20061 On rare occasions, under heavy load, the GCP PubSub Producer and HTTP Actions could report unrecoverable errors with the reason
{error,einval}. These errors are now deemed recoverable, as they happen as the remote server closes connections. -
#20084 Previously, parsing the configured SQL when creating a PostgreSQL action, or an action derived from it, left a lock on the target table and prevented the table from being altered. The parsing transaction now ends as soon as parsing completes.
PostgreSQL client connections are now tagged with the application name
emqx.
Gateway
- #18652 MQTT-SN now publishes configured Will messages when sleeping clients exceed their sleep duration and no longer publishes Will messages when clients disconnect normally.
Access Control
-
#19003 Hardened
PUT /api/v5/api_key/:nameso that it only updates the fields present in the request body. Previously a partial update could also rewrite fields it did not mention, so an administrator who was not paying close attention to every field could unintentionally change the permissions of the API key named in the request. Calling this endpoint already requires administrator privileges. -
#19030 Non-administrator dashboard users and API keys now get a
403response when they request the global configuration astext/plainfromGET /api/v5/configs. Only administrators can export that document, which is the cleartext half of theGET /configs->PUT /configsworkflow. The redactedapplication/jsonvariant of the same endpoint is unchanged and remains available to every authenticated user. -
#19305 Restricted the backup file download (
GET /api/v5/data/files/:filename) to administrators. Viewer API keys now get a 403 response, like dashboard viewers. Viewers can still list the backup files withGET /api/v5/data/files.
Erlang Runtime
- #20123, #20231 Updated Erlang/OTP to 26.2.5.14-3. This fixes an HTTP client memory leak that affected JWKS refreshes and a possible node crash when decoding malformed Erlang external term data.
Clustering
-
#17770 Fixed configuration update commands (REST API and CLI) crashing with a
function_clausecrash report when the underlying cluster RPC layer aborted with an unexpected reason, for example{no_exists, cluster_rpc_mfa}when the cluster RPC tables were not yet available during node startup or recovery. Such failures are now returned to the caller as a structured error instead. -
#18385 Fixed an issue where submitting a configuration containing an invalid Unicode escape sequence through
PUT /configsreturned an internal error. Such requests now return a validation error that names the invalid escape.
Observability
-
#17709 Fixed a JSON log formatter crash that could replace some debug-level log and trace events with a
FORMATTER CRASHline.The crash happened when a log field held a tuple value (for example the
resultfield of theauthenticator_resultandauthentication_resultauthentication trace events) and the active formatter configuration did not carry achars_limitsetting. As a result, the events that show which authenticator accepted or rejected a connection were missing from the output. These events are now formatted correctly. -
#17886 Exposed the publish quota-exceeded packet metric in Prometheus as
emqx_packets_publish_quota_exceeded. -
#18107 Fixed an issue where the dashboard metrics APIs (
GET /api/v5/monitor_currentandGET /api/v5/monitor) returned500 INTERNAL_ERRORwhile a node was joining the cluster.While a joining node is restarting its applications, sampling its metrics fails; this failure is now tolerated: the APIs return the aggregate of the remaining reachable nodes and log a warning, instead of failing the whole request.
Also fixed a spurious
clear_monitor_metrics_rpc_errorswarning that was logged on every successfulDELETE /api/v5/monitorrequest. -
#18877 Audit records for requests denied by role-based access control now include the authenticated dashboard user or API key and the request's path parameters.
Before this change, a request that passed authentication but was denied by role-based access control was recorded with an empty
sourceand withouthttp_request.bindings, soGET /api/v5/auditcould not show who made the request or what it targeted. Records for unauthenticated requests are unchanged.
Management
-
#18067 Fixed the file transfer files API (
GET /api/v5/file_transfer/files) failing to list files whose names contain non-ASCII characters (e.g. Chinese). -
#18820 Fixed
PUT /api/v5/telemetry/statusreturning500 INTERNAL_ERRORwith an Erlang stack trace when the request body omits theenablefield.The endpoint now returns
400 BAD_REQUESTwith a validation message. The API documentation marksenableas required and no longer shows a default value for it, because the endpoint has never applied that default. -
#18823 Fixed a misspelled field name in the
emqx ctl listenersoutput.The command printed the listener's enabled flag as
enbale. It now printsenable. Scripts that parse this output must be updated to match the corrected name. -
#19617 Fixed a false
failed_to_read_data_filewarning during backup export. The warning was logged for configuration values that only start with the data directory name, for exampledata_sourcein a Tablestore action. The exported backup was always correct. Only the log was wrong. -
#19896 Fixed incorrect display of non-ASCII customer names in
emqx ctl license info. -
#20192 Changing
plugins.install_dirrequires a node restart. Set the directory in the configuration file or withEMQX_PLUGINS__INSTALL_DIRbefore restarting.
Breaking Changes
-
#18973 Added
mqtt.max_connect_user_properties, which limits the number of MQTT v5 User Property pairs accepted separately in CONNECT properties and Will properties. The default is 100; set it toinfinityto disable the limit. -
#19454 Changed the default of
rpc.insecure_fallbackfromtruetofalse.Cluster nodes authenticate their backplane (RPC) connections with a challenge-response handshake. The fallback sends the Erlang cookie to the peer when that handshake fails, and it existed to cluster with EMQX releases older than 5.3.0, which do not speak the challenge-response handshake.
A cluster whose nodes all run 5.3.0 or later is unaffected. To cluster with a node older than 5.3.0, set
rpc.insecure_fallback = trueon every node explicitly. A node logs a warning each time it uses the fallback, so check the node logs forgen_rpc_insecure_fallbackbefore you upgrade.