Assigning a Shelly now issues a real broker credential so the physical device can connect (onboarding was incomplete before): - MqttCredentialProvisioner writes a mosquitto-compatible PBKDF2-SHA512 ($7$) password line (in PHP) for username = the device's topic prefix, and touches a reload trigger. A small wrapper in the mosquitto container (docker/mosquitto/ config/entrypoint.sh) SIGHUPs mosquitto so it re-reads the passwd live — no restart. Verified: a provisioned device authenticates and publishes to its own prefix (bound by the pattern %u ACL). - The credential is shown once on the device page after assignment (enter it into the Shelly). passwd is app-owned + world-readable so the web request can write it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Index.php | ||
| Show.php | ||