Commit Graph

2 Commits

Author SHA1 Message Date
349b20a750 fix(luci-app-masterlink): Use HTTPS instead of HTTP for mesh join API
- Change API endpoint from http://IP:7331 to https://IP (port 443)
- Add -k flag for curl to handle self-signed certificates
- Add --no-check-certificate for wget for self-signed certs
- Update usage examples to show HTTPS URLs
- Fix menu path to /admin/secubox/master-link

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 15:03:02 +01:00
c4a2601c11 feat(luci-app-masterlink): Add mesh enrollment client for OpenWRT
New package for joining SecuBox mesh networks from OpenWRT devices.

RPCD handler (/usr/libexec/rpcd/luci.masterlink):
- status: Current mesh membership state
- join: Join mesh with master_ip and token
- leave: Leave current mesh network
- info: Local node info (fingerprint, hostname, IP)
- verify: Verify master before joining

CLI tool (/usr/bin/sbx-mesh-join):
- URL parsing: sbx-mesh-join 'http://ip:7331/master-link/?token=xxx'
- Direct args: sbx-mesh-join 192.168.1.1 token123
- Auto-generates node fingerprint from MAC address
- Saves to UCI on success

LuCI interface (Services > Master-Link):
- Status display (connected/pending/disconnected)
- Invite URL/token input with Verify and Join buttons
- Leave mesh button when connected
- CLI usage help section

Also adds screenshot-capture.js for automated LuCI screenshots.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 14:21:48 +01:00