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
+2
View File
@@ -54,6 +54,8 @@ and activates the update **inside this container**. It does not call `pct`, cont
host or require the original host checkout. It preserves the CT role, service keys, settings,
CLI profiles and history. Official provider CLIs keep their own update/login lifecycle.
The updater is included in each binary release, so switching/rolling back releases updates it too.
Its root-executed code comes directly from the verified source archive; build-user modifications
to extracted source or build output cannot replace the installed updater.
```bash
finaltoken-update --dry-run