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 -1
View File
@@ -1,2 +1,2 @@
# Proxmox deployment tools
Host creates only a new explicitly selected CT. Updates run inside the CT with finaltoken-update and require this installer's marker. Use the operator's existing reverse proxy; new installs expose private HTTP :5187 and never install a proxy. Legacy migration may change only the known listener and disable finaltoken-proxy.service; preserve keys/data and unrelated services. Never destroy a CT, alter host package repositories or read provider credentials. Builds run inside the CT as an isolated user. Keep commands as argv lists. Test with `python -B tools/proxmox/test_installer.py` and `python -B tools/proxmox/test_update.py`.
Host creates only a new explicitly selected CT. Updates run inside the CT with finaltoken-update and require this installer's marker. Use the operator's existing reverse proxy; new installs expose private HTTP :5187 and never install a proxy. Legacy migration may change only the known listener and disable finaltoken-proxy.service; preserve keys/data and unrelated services. Never destroy a CT, alter host package repositories or read provider credentials. Builds run inside the CT as an isolated user; root updater code must come directly from the verified archive, never build-writable source/output. Keep commands as argv lists. Test with `python -B tools/proxmox/test_installer.py` and `python -B tools/proxmox/test_update.py`.