tools: update inside LXC and use the existing proxy (#22)

Use the operator's HTTPS proxy with a private backend on port 5187. Limit the Proxmox host script to container creation and install a self-updating command inside the LXC. Preserve keys/history during legacy proxy migration and keep root updater code isolated from unprivileged build output.

Closes #21
This commit was merged in pull request #22.
This commit is contained in:
2026-11-15 13:06:04 +01:00
parent c75446008c
commit 43caf1e412
20 changed files with 657 additions and 608 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 setup creates an unprivileged Debian 13 CT and builds NativeAOT inside it as a separate user. `proxmox-update.sh CTID` fast-forwards a clean tracking clone and enters the fetched installer; the local-source entry point stays offline. Updates preserve role/config/keys/profiles/history with binary-health rollback; no automatic CT or old-release deletion.
- [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] 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.