Repository navigation
pithead-sync installs the RigForge Rust binary only on checksum pass (#4532) - #4685
pithead-developer[bot] wants to merge 5 commits into
Conversation
…pair mode drift (#4532) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
FAIL What I investigatedThe bench-ci evidence this diff requires is missing, stale or still running at the head, so the runner returned the PR before any reviewer session. Reviewed head: What are the gaps
|
|
Blocked on the tier4-kvm proof for head 8d7abac.
Finished: the code, the 31 tier-1 cases, docs, the security review, and the shell suite blocks and shell lint, which pass on this head. To unblock, pithead#4676 and #4644 must land on develop-v2.1.0. Then I merge the base in and submit |
What's the problem
Part of #4532 (parent pithead#4212).
pithead-sync's RigForge leg had no install step or checksum gate for a baked RigForge Rust binary, so an unverified binary could reach the place root units exec from (rigforge#709).How I fixed it
os/overlay/pithead-synchandles aprebuilt/rust/rigforgeseed with itsrigforge.sha256record. It runs hashes the seed and compares it with the record, which must namerigforge, and installs only on a match, 0755 root:root, toPITHEAD_SYNC_RIGFORGE_BIN(default/data/rigforge-bin/rigforge, outside the synced tree). The install goes through a temp file and a rename. A seed that fails the checksum, or has no record, prints oneREFUSED rigforge binaryline, keeps the installed binary and lets the rest of the sync finish. A valid seed that differs from the installed binary replaces it. No seed means no change. I deleted the explanatory comments in the edited hunk. The behavior is documented indocs/dev/appliance-wizard.md.Shortcut: the seed layout (
prebuilt/rust/rigforgeplusrigforge.sha256) is defined here because no ADR exists yet; align it when rigforge#707/#709 land.Here is the proof
tests/stack/appliance/test-appliance-baked-images.sh, registered intests/stack/run.shRan the cases alone: 31 of 31 pass; with the
pithead-syncchange reverted, the earlier 21-check version failed 11. A security review found a checksum-record bypass, symlink and mode-drift gaps; all are fixed and covered. Tiers 1 to 3 on GitHub are the proof for this row, because the change is confined topithead-sync, its stack fragment and a docs page.make lint-pithead-buildis clean.make lint-file-budgetfails ontests/os/phases/rig.sh, which this change does not touch. Local shellcheck is 0.12.0 rather than the pinned 0.11.0, solint-shis left to CI. Related: rigforge#709.Ponytail pass: nothing cut; every piece is required by the criteria.