WEFT_OS/crates
Marco Allegretti db712e056e
fix(appd): authorize WebSocket clients by role and session
The browser-facing WebSocket accepted requests from any local page, so a
page could launch or terminate apps and inject messages into any session.

Every connection now completes the upgrade and sends HELLO within five
seconds. The system role authenticates with a token appd writes to
$XDG_RUNTIME_DIR/weft/appd.systoken (mode 0600) and may manage sessions,
but never sees or sends application messages. The app role authenticates
with a per-session bridge token passed to weft-app-shell in
WEFT_BRIDGE_TOKEN and exchanges APP_MESSAGE envelopes with its own
session only; it is disconnected when that session stops.

weft-servo-shell hands the system endpoint only to the system UI
document and denies navigation away from it. weft-app-shell installs the
bridge only in top-level documents inside the application's UI
directory and denies navigation outside it. The launcher renders package
names as text.

tests/frame/check_counter.py drives the Counter demo end to end through
the compositor, appd, the Wasm runtime and the app shell.
2026-10-09 07:45:49 +00:00
..
weft-app-shell fix(appd): authorize WebSocket clients by role and session 2026-10-09 07:45:49 +00:00
weft-appd fix(appd): authorize WebSocket clients by role and session 2026-10-09 07:45:49 +00:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor fix(compositor): replace panic-prone unwraps with explicit error handling in winit and DRM backends 2026-03-13 13:56:57 +01:00
weft-file-portal fix(ci): restore cross-platform and linux checks 2026-03-13 13:44:44 +01:00
weft-ipc-types feat: weft-mount-helper -- setuid helper for EROFS+dm-verity mounts 2026-03-11 15:43:59 +01:00
weft-mount-helper feat: weft-mount-helper -- setuid helper for EROFS+dm-verity mounts 2026-03-11 15:43:59 +01:00
weft-pack feat: appd IPC relay, WIT interfaces, UI kit, gesture routing, and CI hardening 2026-03-12 12:49:45 +01:00
weft-runtime fix(appd): report sessions running only after the UI host is ready 2026-10-09 01:41:09 +00:00
weft-servo-shell fix(appd): authorize WebSocket clients by role and session 2026-10-09 07:45:49 +00:00