Repository navigation
Description
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
- Each step below is closed with its own proof, in this order:
- Truth first: log-only egress firewall, netwatch in a KVM leg, honest dashboard labels, egress map as data #4145 (step 1: log-only firewall and netwatch)
- Fail-closed outbound clients: refuse to connect without Tor, in the dashboard and in the OS update verbs #4146 (step 2: fail-closed clients) and Make tor_socks5 the default and fail-closed on appliance rigs, and refuse DONATION above 0 on a Tor-only rig rigforge#696 (rigforge defaults) in p2pool-starter-stack/rigforge
- Remove the clearnet switches, accept only private IP literals for remote nodes, and turn IPv6 off on the uplink #4147 (step 3: remove clearnet switches)
- Resolve all names through Tor DNSPort and stop using LAN or ISP DNS #4148 (step 4: DNS through Tor)
- Get the clock through Tor onion services and remove NTP and the clearnet htpdate fallback #4149 (step 5: time through Tor), in the same change that removes timesyncd and the htpdate fallbacks
- Pull images and check signatures through Tor, with the Tor image baked and the boot-time cosign check offline #4150 (step 6: images and cosign) and Rig Tor client: persistent state, runs as debian-tor, control socket, shared by updates, time and probes #4151 (step 6: rig Tor client)
- Harden the Tor container: SOCKS policy, SafeSocks, dedicated ports, no bridge control listener #4152 (step 7: Tor hardening), proven on the canary bench
- Proof gate: netwatch relay-set test, required five-window KVM leg and new-egress grep gate for Tor-only egress #4153 (step 8: proof gate)
- Enforce the host egress firewall: one inet output table, policy drop, both roles #4154 (step 9: enforce the firewall), only after steps 1 to 8 and [benchmark] Stability and mining impact of Tor-only egress #4155 (benchmark) Run 1 pass
- [benchmark] Stability and mining impact of Tor-only egress #4155 (benchmark) has Run 0 after step 1, Run 1 before step 9 and Run 2 on the release candidate, each at most 24 h wall clock. The runner side is p2pool-starter-stack/bench-ci#2542 (bench-ci benchmark job) in p2pool-starter-stack/bench-ci, which depends on the egress watchdog p2pool-starter-stack/bench-ci#2458 and its recorders p2pool-starter-stack/bench-ci#2459, p2pool-starter-stack/bench-ci#2460 and p2pool-starter-stack/bench-ci#2461.
- docs: host egress table, DIY host checklist, pithead doctor --host-egress and new-egress checklist #4156 (docs) lands before release.
- The rig update tracker Remote OS update for RigForge-only appliances, started through the rig's own API (2.0.5 slice of #1837) #4143 and its children (Backport the on-demand Tor client and the hardened update channel to develop for the 2.0.5 rig update #4139, Rig-side updater: download the signed bundle over Tor, verify, install into the spare slot, self-commit or fall back #4013, Dashboard: per-rig Update OS for an adopted RigForge-only appliance, through the rig's update API #4140, KVM proof for the 2.0.5 rig update: update over Tor, refusals, fallback with status kept, and the 2.0.3 to 2.0.5 USB hop #4141, Docs: updating a RigForge-only appliance in 2.0.5 #4142) are not duplicated here; the rig Tor client issue records only the delta. Healthchecks dead-man's switch alerts on Tor and dashboard trouble, not only when the host is down #4135 (healthcheck over Tor) and build/tor: the apk-installed tor version is unpinned, so Alpine's 0.4.9 bump silently changed state-write semantics and broke the #3118 live proof #4125 (Tor version pin) are linked, not redone. RigForge tor_socks5 (Route RigForge's own upgrade and install fetches through a configured Tor SOCKS endpoint, with no clearnet fallback rigforge#668, closed, merged on develop and untagged) is consumed by Make tor_socks5 the default and fail-closed on appliance rigs, and refuse DONATION above 0 on a Tor-only rig rigforge#696 (rigforge defaults).
- Step 9 does not merge unless the benchmark gate has passed and the log-only drops are reviewed.
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.
Activity
pithead-developer commentedon Nov 16, 2026
Child issues, in rollout order (the firewall is enforced last, after the benchmark gate run):
pithead-developer commentedon Nov 16, 2026
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-actionand 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.pithead-developer commentedon Nov 17, 2026
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_socks5default and the DONATION refusal on Tor rigs); the update API lands in v1.20.0.pithead-developer commentedon Nov 23, 2026
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:
would_dropcounters and alerts throughclearnet_exposedon traffic outside the allowlist. It comes after Log-only host inet output table from the egress map; counters in egress-status and doctor #4195 (done) and before Enforce the host egress firewall: one inet output table, policy drop, both roles #4154, so the allowlist has live evidence before packets are dropped.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.