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
mqttandmqttv3.1subprotocols 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%cand%uplaceholders. - 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.tomlwith environment-variable overrides (now also for[auth],pin_threads,ring_capacity,connect_timeout_secsandadmin.request_timeout_ms) and strict validation of unknown keys. - CLI.
orbitmqctl passwdprints 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 atmax_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 fixedmax_queued_memory), with matchingORBITMQ_*variables. Each core enforces an equal share of the budget; above it, the oldest messages of the longest queues are dropped and counted asorbitmq_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}andorbitmq_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]keyssession_resumption(defaulttrue) andsession_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]keytls12_tickets(defaultfalse, envORBITMQ_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]keykey_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), envORBITMQ_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 inorbitmq.tomlnow 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
m64 MiB,t10,p16; bcrypt cost 14; PBKDF2 2 000 000 iterations). Password-file verifications are limited per core by new[auth]keysverify_concurrency(default0: the CPUs divided by the cores, at least 2) andverify_queue(default 1024), envORBITMQ_AUTH_VERIFY_CONCURRENCYandORBITMQ_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
expplusleeway_secs, and one accepted by an HTTP source withexpire_atat 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"requiresusername_claim; JWKS requests time out after 10 seconds; a warning is logged whenissueroraudienceis not checked. - Admin API guards. New
[admin]keysallowed_hosts(Host check against DNS rebinding,421 host_not_allowed),max_streams(default 32,429 too_many_streams) andtls(HTTPS with the[listener.tls]keys); envORBITMQ_ADMIN_ALLOWED_HOSTSandORBITMQ_ADMIN_MAX_STREAMS. In insecure mode, state-changing requests need a JSON body, anX-OrbitMQ-Requestheader orSec-Fetch-Site: same-origin(403 csrf). Repeated invalid tokens from one address are held off with429 too_many_failuresandRetry-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);httpsources log a warning whenallow_insecure_httpis 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,redisandmongodb. Authorization kinds:file(the ACL file),jwt(acl_claim),http,postgres,mysql,redisandmongodb, 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 followallow_anonymous; a new[auth] no_match(default"deny", envORBITMQ_AUTH_NO_MATCH) ends the authorization chain; an empty chain is open. Common keysname,enabled,timeout_ms,on_error,on_not_found(authentication),superuser_bypassandno_match(authorization),max_in_flightand a per-source decision cache. Sources fail closed (0x88 Server Unavailable; for ACL loads, deny) by default. Placeholders%u,%c,%C,%aand%lare 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 --helplists 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,PUTandDELETEon…/sourcesreorder, enable, disable, add, replace and remove sources without a restart, with an optionalrevisionthat turns concurrent edits into409 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(envORBITMQ_AUTH_STATE_FILE, defaultorbitmq.auth-state.tomlnext to the configuration file), atomically and with mode 0600. While it exists it replaces the chains oforbitmq.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 gaugesorbitmq_auth_source_enabledandorbitmq_auth_source_position, labelledchain,sourceandkind. - Authentication timeout.
[auth] timeout_ms(default 5000, envORBITMQ_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 NULLand 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, envORBITMQ_RULES_*) and[[rule]]tables (see Rules and integrations). - Rule actions and integrations.
republishon this broker, HTTP(S)webhook,mqttbridge to another MQTT 3.1.1 or 5.0 broker andkafkaproducer, 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 unlessallow_plaintext = true. Kafka delivery is at least once while the broker runs, withacks = alland 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/testandGET /api/v1/connectors. Rules fromorbitmq.tomlare read-only; rules created through the API are kept inorbitmq.rules-state.tomlnext 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_queuedandorbitmq_connector_up{connector,kind}(see Observability). - Third-party licence notices.
orbitmq --licensesprints 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 atGET /licenses.txtwithout a token (see Licence notices).
Changed (M4, in progress)
- Configuration break for authentication.
[auth] password_file,[auth] acl_fileand[[auth.backend]]are removed, as are the ACL keys of authenticating sources (acl_query,acl_cmd,acl_collection,acl_claim, HTTPacl = true),acl_no_match, anddefault/superuser_bypassinside the ACL file; use[[authentication]]and[[authorization]]sources instead.ORBITMQ_AUTH_PASSWORD_FILEandORBITMQ_AUTH_ACL_FILEremain and each append one file source to its chain (see Configuration changes from earlier builds). - Superuser bypass per source.
superuser_bypassis now a key of each authorization source (defaulttrue), 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 setsuperuser_bypass = false. - Superusers from any source.
[auth] superusersapplies 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
tlstable'snative_rootsis replaced byroots = "both" | "bundled" | "system" | "none"(default"both": the bundled Mozilla root list plus the operating system's), and MongoDB sources gain atlstable (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_filenow honourson_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.