Repository navigation
Patch release with the following security fixes, improvements, and bug fixes.
Behavior changes:
- With SCRAM as the only enabled authentication provider, TBMQ now refuses clients that send no MQTT 5 Authentication Method, with
0x87Not authorized (0x05on MQTT 3.x) (#456). Before, these clients connected without credentials as DEVICE clients with no topic restrictions. Move every client to SCRAM before upgrading. - With Send only message payload enabled, the Kafka integration now sends a payload that is not valid UTF-8 as its raw bytes instead of Base64 (#408). Consumers that decode that Base64 must stop. UTF-8 payloads are sent as before.
- The Kafka integration now always sends record values as bytes, and the JSON body as UTF-8 (#408). A
value.serializerin Other properties is now ignored for every Kafka integration, with a warning in the Integration Executor log, andserializer.encodingorvalue.serializer.encodingno longer changes how the value is encoded.serializer.encodingstill applies to the record key. - After a successful SCRAM authentication, the CONNACK now carries the server-final message in Authentication Data, so the client can verify the broker (#407).
- Pooled connections to the HTTP authentication service and to HTTP integration endpoints are now closed after 30 seconds idle and recycled after 5 minutes (#426, #428), so the first request after a quiet period opens a new connection. Tune the pools with the
TB_HTTP_AUTH_CLIENT_POOL_*andTB_IE_HTTP_CLIENT_POOL_*environment variables.
Improvements:
- Core:
- #409 Replace Kafka's SCRAM SASL server with a TBMQ implementation that accepts usernames containing
,or=by @dmytro-landiak; - #410 Remove Kafka types from the queue interfaces by @dmytro-landiak.
- #409 Replace Kafka's SCRAM SASL server with a TBMQ implementation that accepts usernames containing
- Deployment:
- #437 Add scripts to stop and start only the TBMQ services of the Docker Compose cluster by @dmytro-landiak;
- #446 Bump the EKS cluster for Helm to 1.37 and size the Redis node group for standalone Valkey by @dmytro-landiak;
- #448 Bump the EKS cluster to 1.37, allow TLS 1.3 on the load balancers, and make the two-way TLS blocks uncommentable in the AWS scripts by @dmytro-landiak;
- #449 Connect the GCP manifests to Managed Kafka and make the two-way TLS blocks uncommentable by @dmytro-landiak;
- #453 Connect the Azure manifests to Azure Managed Redis and make the two-way TLS blocks uncommentable by @dmytro-landiak.
Bug fixes:
- Core:
- #407 Return the SCRAM server-final message in the CONNACK by @dmytro-landiak;
- #408 Send the raw MQTT payload as the Kafka record value by @dmytro-landiak;
- #466 Store and deliver messages with a message expiry interval of 0 or of 2^31 and more by @dmytro-landiak;
- #406 Count a client topic alias once when it is resent or remapped by @RaphaelFakhri;
- #414 Stop HTTP authentication when no request slot is acquired by @abdelrahman-osama;
- #415, #426 Evict idle HTTP authentication provider connections and move the pool settings to the YAML by @abdelrahman-osama and @dmytro-landiak;
- #420 Stop the HTTP integration request when no request slot is acquired by @dmytro-landiak;
- #428 Bound the HTTP integration client pool connections and close them on destroy by @dmytro-landiak.
- Deployment:
- #429 Fix the standalone PostgreSQL backup and restore steps by @dmytro-landiak;
- #431 Fix the cluster PostgreSQL backup and restore steps by @dmytro-landiak;
- #442 Restore the Minikube backup into a recreated database by @dmytro-landiak.
Security:
- #456 Refuse clients without SCRAM credentials when SCRAM is the only enabled authentication provider by @dmytro-landiak;
- #473 Bump Guava, lz4-java, snappy-java, org.json and FreeMarker to fix critical, high and medium CVEs in the TBMQ images by @dmytro-landiak.
We welcome our new contributors:
- @RaphaelFakhri made their first contribution in #406;
- @abdelrahman-osama made their first contribution in #414.
Full changelog: v2.4.1...v2.4.2