feat: MQTT, Kafka and RabbitMQ checks #102

Merged
Sebi merged 2 commits from feat/messaging-checks into main 2026-11-22 17:52:36 +00:00
Owner

Stacked on #101.

  • MQTT: sign in (user/password, TLS); with a topic, a message must arrive before the timeout (retained messages count), optionally containing a text. Wildcard topics are refused.
  • Kafka: one or more brokers (a:9092, b:9092); fetches cluster metadata; with a topic, it must exist with a leader per partition; optionally produces a message (like Uptime Kuma's Kafka producer). SASL PLAIN, SCRAM-SHA-256/512.
  • RabbitMQ: AMQP sign-in on a vhost, opens a channel; optionally checks a queue exists.

All through the network guard; passwords sealed like the database ones (check.SecretFields) and redacted from errors. TLS modes and redaction are shared with the database checks (secure.go).

The API reference now also documents DBConfig (missing in #100) and BrokerConfig.

Tests: in-process MQTT broker (mochi-mqtt, test-only); Kafka (apache/kafka-native) and RabbitMQ as compose checks profile services and CI services: good/wrong credentials, missing topic/queue/vhost, unmatched message, private networks refused.

Closes #94

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #101. - **MQTT:** sign in (user/password, TLS); with a topic, a message must arrive before the timeout (retained messages count), optionally containing a text. Wildcard topics are refused. - **Kafka:** one or more brokers (`a:9092, b:9092`); fetches cluster metadata; with a topic, it must exist with a leader per partition; optionally produces a message (like Uptime Kuma's Kafka producer). SASL PLAIN, SCRAM-SHA-256/512. - **RabbitMQ:** AMQP sign-in on a vhost, opens a channel; optionally checks a queue exists. All through the network guard; passwords sealed like the database ones (`check.SecretFields`) and redacted from errors. TLS modes and redaction are shared with the database checks (`secure.go`). The API reference now also documents `DBConfig` (missing in #100) and `BrokerConfig`. **Tests:** in-process MQTT broker (mochi-mqtt, test-only); Kafka (`apache/kafka-native`) and RabbitMQ as compose `checks` profile services and CI services: good/wrong credentials, missing topic/queue/vhost, unmatched message, private networks refused. Closes #94 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 15:44:01 +00:00
Sebi changed target branch from feat/check-type-toggle to main 2026-11-22 17:52:09 +00:00
Sebi added 2 commits 2026-11-22 17:52:09 +00:00
MQTT signs in and, with a topic, waits for a message (retained ones
count) that may have to contain a text. Kafka fetches cluster metadata
from one or more brokers, checks that a topic exists with a leader for
every partition and can produce a message, with SASL PLAIN or SCRAM.
RabbitMQ signs in over AMQP, opens a channel and checks that a queue
exists. All connect through the network guard with optional TLS, and
the TLS modes and error redaction are now shared with the database
checks. Tested against an in-process MQTT broker and real Kafka and
RabbitMQ.

Refs #94

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat: message broker monitors in the editor and API docs
ci / image (pull_request) Successful in 4m9s
ci / lint (pull_request) Successful in 5m36s
ci / test (pull_request) Successful in 7m3s
ci / build (pull_request) Successful in 7m52s
302514dc35
Adds editor fields and translations for MQTT, Kafka and RabbitMQ, and
documents DBConfig and BrokerConfig, which the API reference lacked.
Compose's checks profile and CI gain Kafka and RabbitMQ.

Closes #94

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit aac6d2c26b into main 2026-11-22 17:52:36 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#102