Skip to content

Backport the on-demand Tor client and the hardened update channel to develop for the 2.0.5 rig update #4139

Closed

Description

@pithead-developer

What's the problem

The 2.0.5 rig update (RigForge control API, p2pool-starter-stack/rigforge#684) has the rig download its own signed bundle over its own on-demand Tor client. Two pieces of that already exist, but only on develop-v2.1.0, not on develop, which is the 2.0.x line:

On develop, pithead-tor, 47a-os-update-channel.sh and docs/dev/rig-os-update.md do not exist. Without them 2.0.5 cannot ship a rig update that works over Tor, and a rig with no Pithead cannot update itself.

These changes are not rig-only. #4056 edits the shared helpers behind the coordinator's own OS update, which exist on develop today. The Tor client also adds a package and a daemon to the rig image.

Rig egress rule: outbound is Tor only, except stratum to an external pool the owner configured. The update path must not use clearnet. A separate egress audit will add the time-sync and DNS items; this issue does not cover them.

Decision: do not forward-merge develop-v2.1.0. Cherry-pick (or retarget) #4040 and #4056 here, and #4103 in the sibling item, onto develop.

What it impacts

  • Every RigForge-only appliance: this is the base of the per-rig update that lets a rig update with or without a Pithead.
  • Every Pithead box on 2.0.5: the coordinator's live os-check, download, verify and install run through the code appliance: harden the update channel — untrusted listing, host allowlist, size cap, tag validation, stale-channel reporting #4056 changes. A regression here can break coordinator OS updates, which is the path boxes use to leave a bad release.
  • The rig image slot: the Tor client adds a package and a daemon, so rootfs and slot headroom shrink.
  • The later forward merge of develop into develop-v2.1.0: it stays clean only if the cherry-picked commits are identical to the originals.
  • 2.0.5 scope: if the RigForge release carrying the update API is not ready, 2.0.5 ships for Pithead boxes only and rig owners stay on 2.0.3. The coordinator-side effect of this backport still has to be safe on its own.

How I found it

From the 2026-11-15/16 owner rulings and a read of the repository state:

How important is it

High for 2.0.5. The rig update cannot ship without it, and it changes the coordinator's live update path, so it needs full re-proof. Medium risk. No user-visible feature ships from this issue alone, and it blocks the rig-side updater (#4103) and the RigForge API (p2pool-starter-stack/rigforge#684).

Acceptance criteria

Possible solutions

Activity

  1. added this to the v2.0.5 milestone on Nov 16, 2026
  2. added
    enhancement
    security
    appliance
    operator-action
    on Nov 16, 2026
  3. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Released to the runner. The approved plan is in the body.

    Ordering note: #4146 (fail-closed clients) gates the os_update_test_base seam in lib/pithead/47-os-update-helpers.sh, and the backported lib/pithead/47a-os-update-channel.sh calls the same seam. Whichever of the two lands second must cover both files. #4013 and #4151 wait on this issue.

  4. removed
    operator-action
    on Nov 16, 2026
  5. pithead-developer commented on Nov 18, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #4210.

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

    applianceenhancementsecurity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions