Repository navigation
✨ What's New
🔌 Lightweight REST API
- Added
GET /api/commandsandPOST /api/run/{command}for external integrations (Home Assistant, webhooks, scripts, and the smartwatch companion). - Supports
Authorization: Bearer <token>andX-Lucius-Token: <token>using an optional dedicatedLUCIUS_API_TOKENin.env(falls back toLUCIUS_PIN).
⌚ Zepp OS 4.x Smartwatch Companion (zepp-app/)
- Added an optional, fully isolated Zepp OS 4.x companion mini-app for Square (e.g. Amazfit Bip 6, Active) and Round (e.g. Amazfit Balance, T-Rex 3, Active 2) smartwatches.
- Dynamic command list sync + local cache, native confirmation modal for dangerous commands, compact output view with haptic feedback, LAN HTTP/HTTPS support, and English/Italian (
en-US/it-IT) localization.
🔒 Security Hardening
- Session & CSRF/WebSocket protection: Per-device random
HttpOnly,SameSite=Laxcookies (automaticSecureflag over HTTPS), server-side session revocation viaPOST /logout,Originvalidation on state-changing requests and WebSocket handshakes, and constant-time comparisons (hmac.compare_digest). - Command execution safety: Blocked disabled commands on
/runand/ws/run/{command}(matching/api/run/{command}), addedshlexsyntax validation on/addand/edit, and logged/runexecutions tohistory.json(chmod 600). - Frontend & PWA hardening: Fixed HTML-attribute JS injection in
manage.html, scoped Service Worker (lucius-cache-v3) to static assets only, disabled/docs//redoc//openapi.jsonby default, and added HTTP security headers (X-Frame-Options: DENY,X-Content-Type-Options: nosniff,Referrer-Policy: no-referrer). - Installer & updater: Enforced non-empty PIN and
chmod 600 .envviapython-dotenvininstall.sh, fixed ownership ordering inupdate.sh, pinned compatible ranges inrequirements.txt, and cleaned up legacy files.
🔄 Upgrading
sudo /opt/lucius/update.shFull Changelog: v1.0.0...v1.1.0