Skip to content

Decide in an ADR how the Rust binary reaches rigs and the appliance (owner and Pithead decision) #707

Done

Description

@pithead-developer

What's the problem

Rigs do not run from the release bundle. The documented install is git clone --branch vX.Y.Z (enforced by tests/test-docs-clone-pin.sh), and remote upgrade is a git checkout of a tag gated on it being reachable from origin/main (_control_upgrade_do, control_upgrade, docs/adr/0002-remote-worker-upgrade.md). SECURITY.md says checksums play no role on that path. release.yml builds only a source bundle plus SHA256SUMS. A binary attached only to the GitHub Release is absent from a clone, and rigs and the appliance must not need a Rust toolchain. The appliance re-runs setup every boot on a read-only root and cannot build.

What it impacts

First install, upgrade, remote upgrade and rollback on rigs; the Pithead image; the latest release rule that upgrade --check follows. #711, #712, #713 and #718-c depend on the outcome.

How I found it

Reading .github/workflows/release.yml, RELEASING.md, SECURITY.md (release integrity section), ADR 0002, the upgrade code and docs/how-it-works.md (appliance mode). The repo shows x86_64 only (arch gate in rigforge.sh, README.md, CI amd64); aarch64 appears only as a platform name in docs/dev/worker-proof.md.

How important is it

Blocks any default flip and every unit change. Needs an owner and Pithead decision, so it starts as a docs-only ADR. Blocked until the owner answers the aarch64 and delivery questions.

Acceptance criteria

  • docs/adr/0003-* states the chosen delivery with options weighed and the trust path: (a) committed to the release tag, (b) fetched at setup or upgrade from the release and verified against SHA256SUMS, (c) built on the rig (excluded by the owner constraint, listed for completeness).
  • It states how the check works over the Tor path of util/fetch-proxy.sh with no clearnet fallback, how rollback restores the old binary with the old tree, and how the transition from the last Bash-only tag to the first Rust tag and back works.
  • It states the privilege rule: the binary is root-owned and not writable by any non-root user, and root units refuse to exec it otherwise.
  • It records the owner's aarch64 ruling (supported or unsupported); this is unknown until the owner answers.
  • The paired Pithead issue (Paired Pithead issue: carry the prebuilt RigForge binary in the image #710) is linked. make check passes. — Linked in blocking relationship. See also p2pool-starter-stack/pithead#4212 (appliance updater delivery).

Possible solutions

  • Stage the binary into the release tree and add it to SHA256SUMS; at setup, fetch the asset for the checked-out tag and verify before first use.
  • Commit per-tag binaries via a release-only commit (bloats git; weakens source review).
  • Unknown: whether the appliance image takes the binary at build time or at boot; Pithead decides.

Owner decision (2026-11-17): DIY installs get the binary through apt (#731), Homebrew (#732), or the release zip (#708); RigForge-only and Pithead+RigForge appliances get it through the appliance's own updater (p2pool-starter-stack/pithead#4212). x86_64 is required; aarch64 is best effort. This issue no longer waits on a decision; it records this one.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    documentation
    infra
    security
    blocked
    P4-code-health
    size:S
    on Nov 17, 2026
  3. removed
    blocked
    on Nov 17, 2026
  4. pithead-developer commented on Nov 17, 2026

    @pithead-developer
    ContributorAuthor

    Owner decision 2026-11-17, for the ADR: DIY installs get the binary through apt (#731) or the release zip (#708); RigForge-only and Pithead+RigForge appliances get it through the appliance's own updater (p2pool-starter-stack/pithead#4212). x86_64 is required and aarch64 is best effort. This issue no longer waits on a decision; it records this one.

  5. pithead-developer commented on Nov 17, 2026

    @pithead-developer
    ContributorAuthor

    Owner, 2026-11-17: DIY installs also get a Homebrew route beside apt: #732. DIY routes are apt (#731), Homebrew (#732) and the release zip (#708).

  6. pithead-developer commented on Nov 29, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #898.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4-code-healthdocumentationinfrasecuritysize:S

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions