Medlar/Plans/Later/S032-web-remote.md
2026-11-25 13:26:40 -06:00

1.4 KiB

S032 — Web remote

Category 07 Library and tools · Model: Opus (login and web security) · Effort: medium · Depends on: S031 · Phase: build · Human: no Files touched: crates/core/src/remote*, crates/core/remote/**, crates/core/tests/remote*

Goal

FEATURES 8.2: control Medlar from a phone on the LAN.

Read

  • app-taste skill
  • crates/core/src/rest*
  • crates/app/src/theme*

Steps

  • Off by default; turning it on sets a password, chooses the interface and port, shows address and QR code
  • Single embedded page, no framework or external requests: list, add, pause, limits, modes, details; live events
  • Look from the same roles: wavy SVG bars, light and dark, reduced motion, phone first
  • Security: rate-limited login, hashed password, HttpOnly SameSite cookie, CSRF token, CSP, Host check, sessions list and revoke; optional own TLS certificate
  • Settings page for it
  • Test file docs/tests/S032-web-remote.md, with the checks below
  • docs/PROGRESS.md entry, tick Plans/INDEX.md, commit S032: …, push

End criteria

nice cargo check -q -j 2 -p medlar clean

Checks for the test file (do not run now)

  • automatic tests in medlar-core (remote) green, with auth, CSRF and rebinding tests
  • page checked in the built-in browser at phone and desktop width

Pitfalls

LAN plain HTTP is readable by others: say so where it is turned on. Tests bind loopback.

Handoff (→ PROGRESS.md)

—