No description
Find a file
jtricerolph 86f03aac0b settings: serve MQTT credentials to stack apps via service clients
MQTT Broker Clients gained a 'service consumer' flag. Device clients stay
show-once (a human copies the password into hardware). Service clients (a
stack app like hvac-backend that must re-read its own broker login on every
restart) get a STABLE username (= name slug, no random suffix) and their
password stored AES-256-GCM encrypted (crypto.js, same as integration
secrets), served at runtime via:

  GET /settings/api/internal/mqtt-client/:username   (bearer SETTINGS_SECRET)

This is the credential path the hvac plan always intended — show-once
genuinely can't feed a machine consumer. Revoke/delete drop the stored
secret; the internal endpoint refuses revoked clients; secret_enc is never
returned to the admin UI. Reject duplicate usernames up front with 409.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-13 13:42:50 +00:00
src settings: serve MQTT credentials to stack apps via service clients 2026-08-13 13:42:50 +00:00
.env.example Initial settings service 2026-07-01 18:56:19 +00:00
.gitignore Add MQTT Broker integration (config UI + connection test) 2026-07-28 14:58:53 +00:00
docker-compose.yml Add self-service MQTT Broker Clients management 2026-07-28 17:11:35 +00:00
Dockerfile Add self-service MQTT Broker Clients management 2026-07-28 17:11:35 +00:00
package-lock.json Add MQTT Broker integration (config UI + connection test) 2026-07-28 14:58:53 +00:00
package.json Add MQTT Broker integration (config UI + connection test) 2026-07-28 14:58:53 +00:00