Repository navigation
appliance: fix #4013 — rig-side updater: signed bundle over Tor, spare-slot install, verdict in rig-update.json - #4103
Conversation
…rig-side-updater-download-the-signed-bun
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Blocked on #4537 (libzstd1 CVE-2026-124851 in the dashboard image).
|
|
Still blocked, now on #4569 (forward merge into develop-v2.0.5).
|
|
PASS What I investigatedRe-review at 9b7376f (3c8dd0f present). The worker's commits 9294b41, 14a1226 and 8b00967 fix both blocking findings: a Tor-helper failure now records a refusal, and the pending record is written before the slot so an unwritable status file aborts with no install and no reboot. Each fix is caught by a selftest when reverted. tier4-kvm job 4678 on the head passed every rig-update row, and GitHub checks are green.
Reviewed head: |
Owner brief for
|
What's the problem
#4013: a shipped appliance rig had no way to take an OS update — the rig branch of pithead-boot only started the miner and committed or failed the boot, and the release fetch lived only on the coordinator's root control runner. Rig owners could only re-flash the stick, which replaces /data and the token. #4011 landed the hardened release channel (its helpers: os_channel_fetch, os_release_tag_valid, os_channel_record) and the contract in docs/dev/rig-os-update.md says the rig fetches its own bundle over Tor through the image's on-demand Tor client; this is that rig-side updater. (The group siblings #4014 and #4016 stay open: their acceptance criteria require the still-open rigforge#680/#681/#684 feed and release-endpoint work, so they need their own proofs once those land.)
How I fixed it
pithead rig-update checkandpithead rig-update install [--tag T] [--max-version V](dispatch, PITHEAD_COMMANDS, help)../pithead rig-update boot-record: pending.to == running → verdict updated; pending.to != running (the fallback boot) →rauc status mark-bad otherand a rolled_back verdict naming the reason; each rig boot also sweeps stale staged bundles.refused); a Tor-helper failure (clock, bootstrap, lock) is recorded as a refusal unless the inner run already wrote its own reason; a refusal never overwritespendingorrolled_back;os_release_tag_validis now a bash regex, so a tag with an embedded newline is refused. selftest-rig-update.sh grows to 64 checks; each new row was shown to fail with its line reverted (no SOCKS/https flags, no rc 28 resume, no pending-first write, no wrapper-failure record).rolled_back,mark-bad other) and the Tor-only download are proven by the selftest only. tests/os/phases/rig.sh keeps its one-line reflow of the marker assertion because the file sits at its budget ceiling. The bundle download remains a second copy of the coordinator's bounded curl loop (finding 10, note only).Here is the proof
tier4-kvm phases=rigpassed on the second run (job 395). The first run (job 394) failed one row: the live GitHub release API answered HTTP 403 to the Tor check. Every rig-update row passed there; the retry on the same head and key-free resubmit passed all 292 rows, so the 403 is read as an external rejection of that Tor exit (inference; the 403 did not recur).First run, failed row kept for the record:
Part of #4013
🤖 Generated with Claude Code
bench-ci job 4678@9b7376fa85772997cbb25d8670d157b20bf296dd · pithead · tier4-kvm
Generated by
bench-ci evidence 4678@9b7376fa85772997cbb25d8670d157b20bf296dd; re-run it to check.