Commit Graph
4 Commits
Author SHA1 Message Date
gadgethd d4b843c15c fix(newuser): resolve data-plane container names at runtime
The compose split (2026-08-09) renamed the data plane to meshcore-infra-*
containers; the hardcoded meshcore-analytics-mosquitto-1/-timescaledb-1
references broke user creation. Resolve both container names from docker
ps at script start (infra names preferred, generic suffix fallback).
2026-08-09 03:29:45 +00:00
gadgethd 395baa2581 fix(newuser): reload mosquitto after credential create/delete and release flock during discovery watch
Two live-E2E bugs:
1. mosquitto only re-reads password_file on SIGHUP; the reconciler reloads
   every ~60s but a device may connect before then and gets CONNACK 135.
   The script now sends kill -HUP 1 after mosquitto_passwd -b and -D so
   credentials are valid/revoked immediately.
2. The flock was held through the entire discovery watch (up to hours),
   blocking every other newuser run. Release before the passive log-poll
   and re-acquire before the mutation phase.
2026-08-09 02:09:08 +00:00
gadgethd f03f57f886 Add first-contact node key discovery 2026-08-09 01:33:37 +00:00
gadgethd ee64ad81cb Add VPS MQTT user provisioning script 2026-08-09 01:01:53 +00:00