You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install, verify and roll back the Rust binary on rigs and the appliance #709
P3-hardeningDefence in depth. Meter-gated: only taken when the 7-day meter is under targetinfraDeployment, packaging, releasessecuritySecurity-sensitive issue or hardeningsize:LSized L against one local session
With no consumption path, a built binary cannot reach a rig. Setup, upgrade and control-upgrade only know how to check out a tree, and rollback restores only that tree. A binary that a non-root or DynamicUser account can write would turn root oneshot units into a privilege escalation.
What it impacts
First install, upgrade, remote upgrade and rollback on rigs; appliance boot-time setup (RIGFORGE_APPLIANCE=1).
How I found it
Reading the upgrade and control-upgrade code, ADR 0002 and docs/how-it-works.md at ea41133; consumption follows the ADR from #707. Blocked on that ADR and on the Pithead pairing.
How important is it
Blocks any default flip. Security-relevant because root units exec the binary.
Acceptance criteria
Setup and upgrade fetch or locate the binary per the ADR, verify it (checksum, version equals VERSION) and refuse to run on mismatch; the check works over the Tor fetch path with no clearnet fallback.
The installed binary is root-owned and not writable by any non-root user, and root units refuse to exec it otherwise; a test covers the refusal.
Rollback restores the previous binary together with the previous tree.
Upgrade from the last Bash-only tag to the first Rust tag and back is exercised in a bench-ci or e2e lane and linked from the PR, or the ledger records not run and why.
An appliance-mode smoke runs setup with the binary present and no compiler; boot-time setup time is recorded.
make check passes.
Possible solutions
Fetch the asset for the checked-out tag at setup and verify against SHA256SUMS before first use.
Install to a root-owned directory outside the checkout so a tree checkout cannot replace it.
P3-hardeningDefence in depth. Meter-gated: only taken when the 7-day meter is under targetinfraDeployment, packaging, releasessecuritySecurity-sensitive issue or hardeningsize:LSized L against one local session
Activity
Hold #729 docs until the Rust binary ships