Changelog

Notable changes to OrbitMQ, by release.

All notable changes are recorded here. The format follows Keep a Changelog, and releases will use Semantic Versioning.

Unreleased

No release has been published yet; build from source (see Getting started).

Added (M1, single-node broker)

  • Protocol. MQTT 3.1, 3.1.1 and 5.0 in one broker: QoS 0, 1 and 2, retained messages, wills (including MQTT 5.0 Will Delay), clean and persistent sessions with session expiry, message expiry, shared subscriptions ($share/{group}/{filter}, optionally for 3.x clients), topic aliases in both directions, subscription identifiers, Receive Maximum flow control and request/response properties.
  • Runtime. Thread-per-core, shared-nothing data plane on compio (io_uring with epoll fallback on Linux, kqueue on macOS), with two-level cross-core routing, a SUBACK barrier for subscribe visibility, and lossless session takeover between cores.
  • Listeners. Any number of named listeners: TCP, TLS (TLS 1.2 and 1.3, ALPN, session resumption), mutual TLS, WebSocket and secure WebSocket, each optionally behind the PROXY protocol (v1 and v2), with per-listener connection limits and handshake timeouts. WebSocket listeners accept the mqtt and mqttv3.1 subprotocols and have configurable frame and upgrade-request size limits ([listener.ws]).
  • Security. Password-file authentication (Argon2, PBKDF2 and bcrypt hashes), superusers ([auth] superusers) and a static TOML ACL with %c and %u placeholders.
  • Limits. Configurable MQTT limits that default to the specification and are announced to MQTT 5.0 clients in CONNACK; node-wide connection limit; retained-store limits.
  • Observability. Prometheus metrics at /metrics (connections, packets, messages, bytes, drops, sessions, retained messages, authentication, cross-core delivery latency, per-core load, ingress throttling and subscribe-visibility counters).
  • Admin REST API. Node status, session listing and details, kick, stored-session deletion, subscription and retained-message listings, with bearer-token authentication. Described by an OpenAPI 3.1 document.
  • Configuration. orbitmq.toml with environment-variable overrides (now also for [auth], pin_threads, ring_capacity, connect_timeout_secs and admin.request_timeout_ms) and strict validation of unknown keys.
  • CLI. orbitmqctl passwd prints password-file entries (Argon2id, PBKDF2-SHA256 or bcrypt).
  • Conformance. Requirement catalogue for MQTT 3.1, 3.1.1 and 5.0 with a generated conformance matrix.

Changed (M2, in progress)

  • Session queue limits. Besides max_queued_messages (now 10 000 per session by default, was 100 000), each session's queue is capped at max_queued_bytes (16 MiB by default), and the node has a budget for all queued messages (max_queued_memory_percent, 25% of the cgroup or physical memory limit by default, or a fixed max_queued_memory), with matching ORBITMQ_* variables. Each core enforces an equal share of the budget; above it, the oldest messages of the longest queues are dropped and counted as orbitmq_dropped_messages_total{reason="memory_limit"}. Publishers are never slowed down. See Session queues.
  • Memory budget coverage. The node's budget now also counts in-flight messages, retained messages, outbound buffers and partial packets in read buffers, and it applies where the memory limit is unknown (assuming 4 GiB). Over the budget, queues are shed first, sessions then take one message at a time in flight, and connections holding large partial packets or stuck output are closed (MQTT 5.0: DISCONNECT 0x97). A connection whose client stopped reading no longer stays open after it is closed. Metrics orbitmq_memory_budget_bytes, orbitmq_memory_used_bytes{kind} and orbitmq_memory_budget_closes_total. See Session queues, with recommended values for untrusted clients.
  • Memory per idle connection. Idle connections no longer hold read or write buffers, and their per-connection state is smaller: broker memory per idle connection went from about 10 KB to about 3 to 5 KB on development hardware, and is now about 1.9 to 2.0 KB without subscriptions on one core after further slimming of the per-connection state (see Performance targets).
  • Keep-alive checks. Keep-alive and CONNECT deadlines are checked by one timer wheel per core (10 ms slots) instead of a timer per connection. A connection is still never closed before one and a half times its Keep Alive; the close can come up to about 10 ms after that point (see Keep alive).
  • TLS session resumption. New [listener.tls] keys session_resumption (default true) and session_cache_size (default 16384 entries, 0 = no cache). TLS 1.3 clients get one session ticket per handshake, sent with the CONNACK; ticket keys are per listener, rotate every 6 hours and stay in memory; 0-RTT is always off (see TLS session resumption).
  • Connection set-up. Fewer system calls per connection on plain TCP listeners: the first read goes straight to the socket, and listeners without the PROXY protocol skip the handshake timer.
  • TLS 1.2 session tickets are off by default. New [listener.tls] key tls12_tickets (default false, env ORBITMQ_TLS_TLS12_TICKETS). TLS 1.2 clients now resume through the session-ID cache; enabling tickets gives them stateless resumption at the cost of forward secrecy within the ticket-key lifetime. TLS 1.3 tickets are unchanged (see TLS session resumption).
  • Post-quantum hybrid key exchange. TLS listeners offer X25519MLKEM768 alongside X25519, P-256 and P-384. New [listener.tls] key key_exchange: "client-preferred" (default; the client's preference decides, so clients that prefer the hybrid get it) or "hybrid-preferred" (the hybrid whenever the client offers it, at some cost in handshake throughput), env ORBITMQ_TLS_KEY_EXCHANGE (see Key exchange).

Removed

  • Clustering. The Community edition is a single-instance broker; clustering is available in OrbitMQ Enterprise. A [cluster] table in orbitmq.toml now stops the broker at start-up with an error.

Security (M4, in progress)

  • Bounded password hashing. Hash parameters are capped when a hash is loaded (Argon2 m 64 MiB, t 10, p 16; bcrypt cost 14; PBKDF2 2 000 000 iterations). Password-file verifications are limited per core by new [auth] keys verify_concurrency (default 0: the CPUs divided by the cores, at least 2) and verify_queue (default 1024), env ORBITMQ_AUTH_VERIFY_CONCURRENCY and ORBITMQ_AUTH_VERIFY_QUEUE; clients beyond the queue are refused with 0x89 Server Busy (see Hashing limits).
  • Credential expiry ends the session. A session authenticated with a JWT ends at exp plus leeway_secs, and one accepted by an HTTP source with expire_at at that time: DISCONNECT 0xA0 Maximum Connect Time for MQTT 5.0, a close for 3.x.
  • Stricter JWT sources. HMAC secrets shorter than 32 bytes are refused (previously a warning); from = "username" requires username_claim; JWKS requests time out after 10 seconds; a warning is logged when issuer or audience is not checked.
  • Admin API guards. New [admin] keys allowed_hosts (Host check against DNS rebinding, 421 host_not_allowed), max_streams (default 32, 429 too_many_streams) and tls (HTTPS with the [listener.tls] keys); env ORBITMQ_ADMIN_ALLOWED_HOSTS and ORBITMQ_ADMIN_MAX_STREAMS. In insecure mode, state-changing requests need a JSON body, an X-OrbitMQ-Request header or Sec-Fetch-Site: same-origin (403 csrf). Repeated invalid tokens from one address are held off with 429 too_many_failures and Retry-After; state-changing requests are audit-logged with a token fingerprint; a warning is logged for a non-loopback admin listener without TLS (see Request guards).
  • Trusted PROXY peers. New [[listener]] trusted_proxies: only these addresses or CIDR blocks may send the PROXY header; other peers are closed. Without it a warning is logged (see Behind a load balancer).
  • Transport checks for authentication sources. PostgreSQL, MySQL, Redis and MongoDB sources refuse plain text or not fully verified TLS to non-loopback hosts unless allow_insecure_tls = true (then a warning is logged); http sources log a warning when allow_insecure_http is used (see Insecure connections).
  • Secret file permissions. A warning is logged when a password file, a secret file, a client key or a TLS private key can be read or written by its group or by other users.

Added (M4, in progress)

  • Authentication and authorization chains. Two ordered source lists, [[authentication]] and [[authorization]], replace the fixed password-file-then-backends order. Each source answers allow, deny or ignore; the first allow or deny wins. Authentication kinds: password_file, x509 (verified client certificate; CN, DN or SHA-256 fingerprint as the user name), jwt (HMAC secret, PEM public key or JWKS endpoint with refresh; algorithm allow-list, leeway, issuer and audience checks, claim templates, superuser claim), http (JSON request and response), postgres, mysql, redis and mongodb. Authorization kinds: file (the ACL file), jwt (acl_claim), http, postgres, mysql, redis and mongodb, independent of the source that authenticated the client. Network authorization sources load each client's rules once, at CONNECT, and evaluate them on the client's core without I/O, so rule changes apply on reconnect or after the cache TTL. Chain ends: a user name nobody accepted is refused with 0x86 as soon as the authentication chain has a source; clients without a user name follow allow_anonymous; a new [auth] no_match (default "deny", env ORBITMQ_AUTH_NO_MATCH) ends the authorization chain; an empty chain is open. Common keys name, enabled, timeout_ms, on_error, on_not_found (authentication), superuser_bypass and no_match (authorization), max_in_flight and a per-source decision cache. Sources fail closed (0x88 Server Unavailable; for ACL loads, deny) by default. Placeholders %u, %c, %C, %a and %l are bound as query parameters, never spliced into query text. Secrets can be inline, { env = … } or { file = … } and are redacted when printed or returned by the API. orbitmq --help lists the compiled kinds (see Authentication and Authorization).
  • Runtime changes of the chains. GET /api/v1/auth/{chain} lists a chain with each source's status, redacted configuration and counters; PUT …/order, PATCH, POST, PUT and DELETE on …/sources reorder, enable, disable, add, replace and remove sources without a restart, with an optional revision that turns concurrent edits into 409 conflict. A CONNECT in progress finishes on the chain it started with. The dashboard's Auth & ACL page reorders sources by drag and drop or move buttons and enables or disables them (see Changing the chains at runtime).
  • Auth state file. Runtime changes are written to [auth] state_file (env ORBITMQ_AUTH_STATE_FILE, default orbitmq.auth-state.toml next to the configuration file), atomically and with mode 0600. While it exists it replaces the chains of orbitmq.toml; an invalid one stops the start-up (see The state file).
  • Per-source metrics. orbitmq_auth_source_decisions_total{result}, orbitmq_auth_source_checks_total, orbitmq_auth_source_errors_total, orbitmq_auth_source_cache_hits_total, and the gauges orbitmq_auth_source_enabled and orbitmq_auth_source_position, labelled chain, source and kind.
  • Authentication timeout. [auth] timeout_ms (default 5000, env ORBITMQ_AUTH_TIMEOUT_MS) bounds the whole authentication of one CONNECT, ACL loads included.
  • SQL rule engine. Rules written as SELECT … FROM "<topic filter>" [WHERE …] run over every client publish and will message after authorization, with payload JSON paths, metadata fields (topic, clientid, username, qos, retain, peerhost, timestamp, node, user_properties), CASE, IN, BETWEEN, IS NULL and string, number, conversion, JSON and topic functions. Invalid rules are refused with the line and column of the error. Evaluation runs off the data-plane cores through bounded per-core queues: overflow is counted and dropped, and publishers are never slowed. Republished messages are not seen by rules again, so rules cannot loop. New [rules] section (enabled, queue_capacity, action_queue_capacity, workers, state_file, env ORBITMQ_RULES_*) and [[rule]] tables (see Rules and integrations).
  • Rule actions and integrations. republish on this broker, HTTP(S) webhook, mqtt bridge to another MQTT 3.1.1 or 5.0 broker and kafka producer, with ${column} templates, bounded queues, retries with exponential backoff, a circuit breaker per action and an optional dead-letter topic. Kafka and MQTT connectors are declared as [[connector]] tables with TLS (rustls; private CAs, mutual TLS) and, for Kafka, SASL PLAIN or SCRAM; SASL PLAIN is refused without TLS unless allow_plaintext = true. Kafka delivery is at least once while the broker runs, with acks = all and key partitioning compatible with the Java client. Action queues are in memory and are lost on restart; Kafka records are not compressed and there is no idempotent producer yet.
  • Rules at runtime. GET/POST /api/v1/rules, GET/PUT/DELETE /api/v1/rules/{id}, GET /api/v1/rules/{id}/metrics, POST /api/v1/rules/test and GET /api/v1/connectors. Rules from orbitmq.toml are read-only; rules created through the API are kept in orbitmq.rules-state.toml next to the configuration file (mode 0600). Webhook header values and connector passwords are redacted. The dashboard gains a Rules page with an SQL editor, a test panel, per-action counters and connector status.
  • Rule metrics. orbitmq_rule_messages_total{rule,result}, orbitmq_rule_action_messages_total{rule,action,type,result}, orbitmq_rule_action_queued and orbitmq_connector_up{connector,kind} (see Observability).
  • Third-party licence notices. orbitmq --licenses prints the licence texts and notices of everything compiled into the binary (Rust crates and the dashboard's packages); the admin listener serves the same text at GET /licenses.txt without a token (see Licence notices).

Changed (M4, in progress)

  • Configuration break for authentication. [auth] password_file, [auth] acl_file and [[auth.backend]] are removed, as are the ACL keys of authenticating sources (acl_query, acl_cmd, acl_collection, acl_claim, HTTP acl = true), acl_no_match, and default / superuser_bypass inside the ACL file; use [[authentication]] and [[authorization]] sources instead. ORBITMQ_AUTH_PASSWORD_FILE and ORBITMQ_AUTH_ACL_FILE remain and each append one file source to its chain (see Configuration changes from earlier builds).
  • Superuser bypass per source. superuser_bypass is now a key of each authorization source (default true), honoured by every source. Previously, as soon as a backend issued ACLs, superusers were allowed before the ACL file was asked, even when the file set superuser_bypass = false.
  • Superusers from any source. [auth] superusers applies to clients accepted by any authentication source and requires at least one [[authentication]] source.
  • One TLS stack for authentication sources. MongoDB, PostgreSQL and MySQL now use rustls with aws-lc-rs like the rest of the broker; MongoDB no longer needs the system OpenSSL. The tls table's native_roots is replaced by roots = "both" | "bundled" | "system" | "none" (default "both": the bundled Mozilla root list plus the operating system's), and MongoDB sources gain a tls table (roots, ca_file).
  • MongoDB in the default build. kind = "mongodb" no longer needs a custom build.
  • Equal cost for unknown users. Database sources verify their most recently read real hash for an unknown user, so an unknown user costs the same as a known one whatever hash scheme the database uses; password_file now honours on_not_found.

Not yet included

  • Published binaries and container images.
  • Persistence of sessions and retained messages across restarts.
  • Benchmark results. Benchmarks are pending and will be published together with their methodology.

On this page