web: allow direct IP dashboard and worker access (#26)

Support direct HTTP IP access on port 5187 without hostname registration or a required proxy. Preserve dashboard/machine authentication and CSRF checks. Update Proxmox setup, D14, tests and documentation for 1.2.3.

Closes #25
This commit was merged in pull request #26.
This commit is contained in:
2026-11-15 16:42:12 +01:00
parent f45e065994
commit 284e692993
19 changed files with 218 additions and 69 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
- [2026-11-14] LoginCoordinator is memory-only and binds browser session/machine/profile/worker boot/deadline. CLI identity verification is separate from process success; never serialize login URLs, codes or authorization responses into fleet state.
- [2026-11-14] Persist worker export metadata before cursor advancement. Server merges acknowledged source records so an empty restart heartbeat cannot erase history. Current login health and historical data attribution are separate fields.
- [2026-11-15] Proxmox host creates the CT only. Existing HTTPS proxy targets private HTTP :5187; no bundled proxy is installed. `finaltoken-update` fetches a fresh public source tree and builds/activates inside the CT, preserving state. Legacy migration changes only the known listener and disables the owned proxy; binaries and listener have separate rollback.
- [2026-11-15] Proxmox host creates the CT only. HTTP :5187 works directly by IP; HTTPS/proxy is optional, with no fixed host allowlist (D14). `finaltoken-update` fetches/builds/activates inside the CT, preserving state. Legacy migration changes only the known listener and disables the owned proxy; binaries and listener have separate rollback.
- [2026-11-15] Public source uses MIT; notices travel with ZIP/plugin and Proxmox outputs. `tools/source_policy.py` excludes recognized live config/keys/runtime data from both publication checks and source archives. Audit disk and index separately; inspect all historical trees, not just one filename hint per blob. Visibility/history changes need explicit authorization.
+3 -1
View File
@@ -15,8 +15,10 @@
- [2026-11-15] npm's local `--prefix` install writes `node_modules/.bin`; the Linux worker's `.local/bin/codex` requires a user-owned global prefix. The regression installs an offline synthetic package with real npm.
- [2026-11-15] Compare copied/archived license bytes with source bytes. `read_text()` normalizes Windows CRLF while ZIP reads retain it; explicit LF/CRLF fixtures cover both checkouts.
- [2026-11-15] Do not assume a bundled proxy or host-driven updates for LXC deployments. Use the operator's existing proxy and an in-container updater; preserve the public Host/Origin when the private backend uses HTTP.
- [2026-11-15] Do not assume a proxy or host-driven updates for LXC deployments. Direct IP HTTP is supported; use the in-container updater. An optional TLS proxy preserves the browser's Host/Origin.
- [2026-11-15] A build-owned source/output cannot supply code later executed as root. Capture updater bytes from the verified archive before build handoff and atomically install them in the root-owned release, excluding build-supplied updater files.
- [2026-11-15] Container shells can omit `/usr/local/sbin`. Register the updater in `/usr/local/bin`, print an absolute-path fallback, and test real shell lookup with sbin excluded.
- [2026-11-15] A legacy `FINALTOKEN_PUBLIC_ORIGIN=https://usage.example.com` caused HTTP 400 for IP access. Ignore this old setting; compare browser mutation Origin to actual request Host and derive Secure cookies from TLS or its validated HTTPS Origin. Health checks must not hide regressions with a forged Host.
## Archive
+2 -2
View File
@@ -2,7 +2,7 @@
> Always-loaded. Everything else is on-demand. Update TOC when files change.
## Current Focus
- [2026-11-15] User report confirms Debian 13 NativeAOT server publish and legacy proxy disable. 1.2.2 fixes updater discovery; external proxy and official provider flows still need live verification.
- [2026-11-15] 1.2.3 removes fixed hostname/HTTPS requirements for direct IP access. Debian 13 native build/update was user-exercised; this IP correction and official provider flows still need live verification.
## Invariants
- Provider access/refresh tokens, API keys and cookies stay with the CLIs; only a pending login's authorization response may be relayed transiently (D2, D14).
@@ -11,5 +11,5 @@
- Desktop/Stream Deck retain `snapshot.json` (D9); the optional authenticated server/worker transport is separate (D14).
## Table of Contents
- `gotchas.md` — 13 entries — CLI login, updater trust/PATH boundaries, publication checks and Avalonia tooltips.
- `gotchas.md` — 14 entries — CLI login, IP/Origin and updater boundaries, publication checks and Avalonia tooltips.
- `architecture.md` — 7 entries — Fleet analysis, attribution, migration, authentication, durability, Proxmox and publication.