Compare commits

..
3 Commits
Author SHA1 Message Date
Cédric Verstraeten 906aaf39ac Merge pull request #263 from kerberos-io/feat/hub-registration-signal
feat(hub): mqtt.signals for hub-api's registration signal (0.205.0)
2026-11-24 17:17:03 +01:00
cedricveandClaude Opus 5.5 7e1822c707 feat(hub): mqtt.signals.enabled master switch (0.205.0)
hub-api#899 now reads MQTT_SIGNALS_ENABLED (default false) as the
master switch for its MQTT signals; a topic only says where its event
goes. Add mqtt.signals.enabled to set it, so an environment can keep
its topics configured with signals off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:13:46 +00:00
cedricveandClaude Opus 5.5 0d332eaed9 feat(hub): mqtt.signals for hub-api's registration signal (0.205.0)
hub-api (uug-ai/hub-api#899) can publish a content-free MQTT message after
a successful /register, for listeners such as cha-ching that play a
sound. It reads MQTT_URI and MQTT_REGISTRATION_TOPIC, which the chart did
not set. Add mqtt.signals:

- uri sets MQTT_URI: the broker hub-api publishes on, e.g.
  tcp://mqtt.kerberos.io:1883; the login is mqtt.username/password.
- registrationTopic sets MQTT_REGISTRATION_TOPIC: an opaque topic such as
  sound/a31dc38882fd5460.

Both default to empty, which keeps signals off; existing installs render
unchanged apart from the two empty variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:05:40 +00:00
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.204.0
version: 0.205.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
+3
View File
@@ -836,6 +836,9 @@ kerberospipeline:
| `mqtt.password` | MQTT (Vernemq) password, by default `'yourpassword'`. | `"yourpassword"` |
| `mqtt.legacy.host` | Legacy MQTT broker host used for backward-compatible clients. | `""` |
| `mqtt.legacy.port` | Legacy MQTT broker port used for backward-compatible clients. | `""` |
| `mqtt.signals.enabled` | Switches hub-api's MQTT signals on (sets `MQTT_SIGNALS_ENABLED`). Signals are content-free messages (only `{"at": time}`, not retained) on opaque topics, for listeners such as cha-ching that play a sound. A signal is sent only when this is `true`, `uri` is set and its event has a topic, so an environment can keep its topics configured with signals off. Needs hub-api with MQTT signals (uug-ai/hub-api#899). | `false` |
| `mqtt.signals.uri` | Broker hub-api publishes signals on (sets `MQTT_URI`), for example `tcp://mqtt.kerberos.io:1883` or `wss://mqtt.kerberos.io:8443/mqtt`; the login is `mqtt.username` / `mqtt.password`. | `""` |
| `mqtt.signals.registrationTopic` | Topic signalled after a successful `/register` (sets `MQTT_REGISTRATION_TOPIC`). Use an opaque identifier such as `sound/a31dc38882fd5460`: on a public broker the topic is visible to anyone subscribed to it. Without a topic, registrations are not signalled. | `""` |
| `queueProvider` | The queue we are using for the [pipeline](https://doc.kerberos.io/hub/pipeline/): 'SQS', 'KAFKA' or `RABBITMQ`. | `"RABBITMQ"` |
| `queueName` | The event queue which is propagating messages in the [Kerberos Hub pipeline](https://doc.kerberos.io/hub/pipeline/). | `"kcloud-event-queue"` |
| `rabbitmq.host` | RabbitMQ host, by default `'rabbitmq.yourdomain.com:5671'` | `"rabbitmq.rabbitmq:5672"` |
@@ -402,6 +402,16 @@ spec:
value: "{{ .Values.mqtt.username }}"
- name: MQTT_PASSWORD
value: "{{ .Values.mqtt.password }}"
# MQTT signals: a content-free message on an opaque topic after a
# registration (cha-ching plays a sound); off unless enabled, with
# a uri and the event's topic.
{{- $signals := (.Values.mqtt | default dict).signals | default dict }}
- name: MQTT_SIGNALS_ENABLED
value: {{ $signals.enabled | default false | quote }}
- name: MQTT_URI
value: {{ $signals.uri | default "" | quote }}
- name: MQTT_REGISTRATION_TOPIC
value: {{ $signals.registrationTopic | default "" | quote }}
# TURN credentials (served via /runtime/config to authenticated
# frontend clients; no longer exposed in the public env.js).
+10
View File
@@ -198,6 +198,16 @@ mqtt:
legacy:
host: ""
port: ""
# Signals: hub-api publishes a content-free message (only {"at": time}, not
# retained) on an opaque topic when something happens, for listeners such as
# cha-ching that play a sound on a speaker. The broker login is
# mqtt.username / mqtt.password. Off unless enabled is true, uri is set and
# the event has a topic: enabled switches every event at once, each topic
# only says where its event goes.
signals:
enabled: false # Sets MQTT_SIGNALS_ENABLED on hub-api.
uri: "" # Broker for hub-api, e.g. tcp://mqtt.kerberos.io:1883 or wss://mqtt.kerberos.io:8443/mqtt (MQTT_URI).
registrationTopic: "" # Signalled after a successful /register: an opaque identifier, e.g. sound/a31dc38882fd5460 (MQTT_REGISTRATION_TOPIC).
################################################################
# AMQP configuration (asynchronous processing for microservices)
#