Skip to content

Tracker: Tor-only egress for Pithead and RigForge (v2.0.5) #4144

Open
1 of 12 issues completed
Open

Description

@pithead-developer

What's the problem

Both roles send traffic outside Tor today: NTP and an htpdate fallback, plaintext DNS through the LAN or ISP resolver, container image pulls and the boot-time cosign check on registries, several app-level clearnet switches, a fail-open proxy setting in several clients, a direct RigForge fetch path, and a container-only firewall that leaves host-network services and IPv6 outside the fence. The owner's rule is that outbound is Tor only, except XMRig stratum to a pool the owner configured. Rigs are independent of Pithead and get their own time over Tor. There is no NTP. First boot runs on the saved clock until Tor is up. The Tor image is baked and other images are pulled through Tor.

What it impacts

Every appliance owner, DIY owner and RigForge rig owner. This tracker sequences the work so a leak shows up as an error before the outbound firewall enforces, and so the firewall is the last step. Everything lands in v2.0.5, and the RigForge parts land in RigForge v1.19.0.

How I found it

Two research passes on 2026-11-15 and 2026-11-16: a full egress inventory of both roles (49 paths) and a comparison of Tor mechanisms, each checked by a second reader. The owner ruled on 2026-11-16 ("all as recommended") on the 13 decisions: remove clearnet initial sync and the first-boot prompt; time from onion-service pools in the sdwdate style, with HTTPS through exits as a fallback only; IPv6 off on the uplink of both roles; remote nodes only as private IP literals; remove p2pool.clearnet, xvb.tor=false and notifications.tor=false (with a private-IP carve-out), and tor_egress_firewall=false only on DIY, XvB stays on Tor; rig stratum suggests per-pool socks5 to local Tor, direct allowed with TLS and a fingerprint pin; rig Tor on demand with persistent state running as debian-tor; offline cosign on the appliance and an online check through Tor on DIY; a far-ahead clock fails safe with manual time entry; the firewall ships log-only first, then enforces, both in 2.0.5; DIY claims only the container fence plus Tor-routed commands; an egress watchdog fails a KVM or e2e job on the first unexpected flow; bridges deferred with the config key reserved. The healthcheck ping already goes over Tor today (#4135 covers the rest), so it is not a leak to fix here. The owner then asked for a test and benchmark of the effect on stability and mining, inside the no multi-day rule.

How important is it

High for 2.0.5. It is the release's privacy claim, and the order matters: the firewall enforces last and only after the benchmark gate passes.

Acceptance criteria

Possible solutions

  • Keep this as the single parent and let each step issue carry its own acceptance criteria. Unknown: whether any step must slip out of 2.0.5, which the owner would decide.

Sub-issues

Sub-issues

1 of 12 Issues completed
Loading 12 sub-issues

Activity

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

    @pithead-developer
    ContributorAuthor

    Child issues, in rollout order (the firewall is enforced last, after the benchmark gate run):

  4. pithead-developer commented on Nov 16, 2026

    @pithead-developer
    ContributorAuthor

    Release order (operator): steps 1 and 2 (#4145, #4146), p2pool-starter-stack/rigforge#696 and p2pool-starter-stack/bench-ci#2542 are released to the runner now. The rest keep operator-action and are released in rollout order: step 3 once step 2 lands; steps 4 and 5 together with the rig Tor client (#4151) after step 3; step 6 and step 7 next; the benchmark (#4155) Run 0 as soon as step 1 and the bench-ci job exist; step 8 after steps 2-7; step 9 (enforce) only after benchmark Run 1 passes. Step 5 must land in the same change that removes timesyncd and the htpdate fallbacks.

  5. removed
    operator-action
    on Nov 16, 2026
  6. pithead-developer commented on Nov 17, 2026

    @pithead-developer
    ContributorAuthor

    RigForge's update API (p2pool-starter-stack/rigforge#684) moved from v1.19.0 to v1.20.0 on 2026-11-17 so RigForge 1.19.0 can be released now. 1.19.0 carries rigforge#668 and #696 (the tor_socks5 default and the DONATION refusal on Tor rigs); the update API lands in v1.20.0.

  7. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    ContributorAuthor

    The owner asked on 2026-11-23 for "everything behind Tor where possible, and a watchdog on the appliance itself to make sure, or just block anything that is non-Tor". Two children were added for the parts this tracker did not cover:

    The block itself stays #4154.

    Milestone note for whoever grooms 2.0.5: #4154 is v2.0.5, but its gate #4155 (the benchmark) is v2.0.6. One of them needs to move.

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

    appliancesecuritytracker

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions