M5: auth and deployment to LXC #6

Open
opened 2026-11-15 23:51:28 +01:00 by schmidt.florian · 3 comments
Owner

Single-password login (scrypt), persistent session secret so logins survive restarts; deploy script for a Debian 13 LXC (Node 22, systemd, tmux, Claude Code, workspace repo), Traefik example. Spec §7.
Done when: ShellBook runs in CT 501 behind Traefik and replaces marimo.

Single-password login (scrypt), persistent session secret so logins survive restarts; deploy script for a Debian 13 LXC (Node 22, systemd, tmux, Claude Code, workspace repo), Traefik example. Spec §7. Done when: ShellBook runs in CT 501 behind Traefik and replaces marimo.
Author
Owner

Landed on main (af33117, 1f385b6, integration b7051d2): single-password login (scrypt, 0600 files), HMAC session cookie with a persisted secret (logins survive restarts), rate limit, Origin check, auth hook on all /api routes incl. WebSockets (integration test covers the run/workspace/terminal routes), optional forward-auth header from trusted proxy IPs, esbuild production bundle + set-password CLI, static web serving. deploy/: proxmox/create-ct.sh (arch-filtered template picker with regression test), install.sh (Node 22 tarball with SHA-256 check, service user, Claude Code installer, systemd unit, unattended upgrades, optional Tailscale), update.sh, Traefik v3 example, README. Production bundle smoke-tested locally (login, notebooks, runs, static). Left open: the actual deploy to CT 501 behind Traefik, which needs Proxmox access; see deploy/README.md.

Landed on main (af33117, 1f385b6, integration b7051d2): single-password login (scrypt, 0600 files), HMAC session cookie with a persisted secret (logins survive restarts), rate limit, Origin check, auth hook on all /api routes incl. WebSockets (integration test covers the run/workspace/terminal routes), optional forward-auth header from trusted proxy IPs, esbuild production bundle + set-password CLI, static web serving. deploy/: proxmox/create-ct.sh (arch-filtered template picker with regression test), install.sh (Node 22 tarball with SHA-256 check, service user, Claude Code installer, systemd unit, unattended upgrades, optional Tailscale), update.sh, Traefik v3 example, README. Production bundle smoke-tested locally (login, notebooks, runs, static). Left open: the actual deploy to CT 501 behind Traefik, which needs Proxmox access; see deploy/README.md.
Author
Owner

Deploy fixes from the first CT 501 attempt: df489fa (create-ct.sh detects existing manual /dev/net/tun mounts, so it no longer adds a conflicting dev0 that broke container start) and 4fe7e4e (install.sh/update.sh set PATH for pct exec and extract Node with --no-same-owner; reproduced and verified in Docker). Remaining before close: run the install/update on CT 501, finish first-run setup with the setup token, and check login, a run on a real host and the terminal panel.

Deploy fixes from the first CT 501 attempt: df489fa (create-ct.sh detects existing manual /dev/net/tun mounts, so it no longer adds a conflicting dev0 that broke container start) and 4fe7e4e (install.sh/update.sh set PATH for pct exec and extract Node with --no-same-owner; reproduced and verified in Docker). Remaining before close: run the install/update on CT 501, finish first-run setup with the setup token, and check login, a run on a real host and the terminal panel.
Author
Owner

One-step deploy (399628b): on the Proxmox host run bash -c "$(curl -fsSL https://git.finalfactory.de/FinalFactory/ShellBook/raw/branch/main/deploy/proxmox/bootstrap.sh)" - nothing stays on the host. Later updates: pct exec 501 -- shellbook-update. 5e60973 fixes a startup crash of the production bundle (ssh2 named import) found by the Docker install test. Verified in a Debian 13 container (install + update + tampered-checkout check); still to verify on CT 501.

One-step deploy (399628b): on the Proxmox host run bash -c "$(curl -fsSL https://git.finalfactory.de/FinalFactory/ShellBook/raw/branch/main/deploy/proxmox/bootstrap.sh)" - nothing stays on the host. Later updates: pct exec 501 -- shellbook-update. 5e60973 fixes a startup crash of the production bundle (ssh2 named import) found by the Docker install test. Verified in a Debian 13 container (install + update + tampered-checkout check); still to verify on CT 501.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FinalFactory/ShellBook#6