tools: isolate the root updater from build output
agent-review agent review: pass

Capture the updater from the verified source archive before unprivileged build handoff. Exclude build-supplied updater files from copied artifacts and atomically install the trusted command in the root-owned release. Cover source and output replacement with an adversarial publishing regression.

Refs #21
This commit is contained in:
Florian Schmidt
2026-11-15 13:00:23 +01:00
parent 7b70c7a0fa
commit b404d75fe8
6 changed files with 44 additions and 5 deletions
+1
View File
@@ -16,5 +16,6 @@
- [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] 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.
## Archive
+1 -1
View File
@@ -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` — 11 entries — CLI login, existing-proxy/in-container updates, publication checks and Avalonia tooltips.
- `gotchas.md` — 12 entries — CLI login, in-container updater trust boundaries, publication checks and Avalonia tooltips.
- `architecture.md` — 7 entries — Fleet analysis, attribution, migration, authentication, durability, Proxmox and publication.