Repository navigation
Description
What's the problem
Part of #3557. Network exposure is controlled by about a dozen keys across five blocks, each with its own default; a non-technical user cannot reason about the combination. Ruling 2 (2026-10-21) replaces them with one choice. There is no such key today. Onion-only P2Pool peering has no knob (docs/privacy.md:300 says so) and tor.auto_heal does nothing without dashboard.control.enabled (#3166).
Proposed contract: a profile key with values performance, balance, privacy; absent means balance.
| Key | Performance | Balance (default) | Privacy |
|---|---|---|---|
monero.clearnet_initial_sync |
true | false | false |
tari.clearnet_initial_sync |
true | false | false |
p2pool.clearnet |
true | false | false |
P2Pool onion-only peering (renders --no-clearnet-p2p; no key of its own) |
no | no | yes |
network.tor_egress_firewall |
false | true | true |
xvb.tor |
false | true | true |
notifications.tor |
false | true | true |
tor.auto_heal |
false | true | true |
p2pool.stratum_password |
empty | empty | auto |
p2pool.stratum_tls |
false | false | true |
workers.api_auth |
none | none | token (with workers.api_token generated) |
Rules: a key explicitly set in config.json overrides the profile (Advanced override); an absent key takes the profile value. The wizard and dashboard set profile and remove the governed overrides, naming each in the preview. Sync flags apply only to a local node and stay false for a remote one (as 24-config-wizard.sh:345-347). --no-upnp is passed in every profile (#2488). Onion-only peering follows privacy, is dropped when p2pool.clearnet is explicitly true, and has no key: any other P2Pool flag goes through #2482 (ruling 3), so this issue adds no P2Pool key. Not governed, identical in every profile: dashboard.onion.enabled, monero.rpc_lan_access, monero.zmq_lan_access, tari.grpc_lan_access, dashboard.secure, dashboard.expose_public_ip.
Ruling 2 defines Performance as no Tor on anything. The table keys alone do not deliver that (see How I found it), so this issue also closes the gap rather than shipping a weaker Performance under the same name.
what it impacts
Every new install and every later profile change. Performance exposes the user's IP to Monero, Tari, P2Pool and XvB peers and drops the egress firewall. Privacy turns on a stratum password and worker API tokens, which break every rig not updated to match (the worker probe reads api_ok=false until then), and offers stratum TLS: TLS is per connection, so cleartext rigs keep connecting and the password is what locks them out (docs/configuration.md, p2pool.stratum_tls). For new DIY installs tor.auto_heal goes from off to on under Balance; upgraders are pinned by the migration issue.
How I found it
Read-only scan of develop at 9249b0b on 2026-10-21, from the lean roadmap's profile table and these paths: lib/pithead/19-small-utilities.sh:92 (p2pool_outbound_flags), 02b-tor-egress-apply.sh:113-121, 33-render-env.sh:69-70, 127, 135, 191, 259, 28-parse-and-validate-config.sh:150-157, 230-250, 42-control-policy-and-host-checks.sh:118 (p2pool.clearnet is approval-gated). Nothing was executed. Two gaps between ruling 2 and the table keys, found by reading:
- Nodes return to Tor-only after the clearnet sync marker even with the flag on (
build/monero/entrypoint.sh:98-99, same inbuild/tari/entrypoint.sh), so the flags give clearnet sync, not clearnet running. - Telegram sends and Healthchecks pings always use the Tor proxy, and
notifications.torgates only webhook and ntfy (service/notify/telegram_notifier.py,healthchecks.py:71,notify_sinks.py:100). The release check and the price feed are documented as Tor-only; I did not trace their code.
how important is it
High: this is what setup question 3 sets, and a wrong mapping means unintended IP exposure or broken rigs. Blocks the key-diet, automatic-defaults and setup issues.
acceptance criteria
- Tier-1 (new fragment
tests/stack/config/profile.sh): for each of the three positions,render_envyields the table above inP2POOL_FLAGS,TOR_EGRESS_FIREWALL,XVB_TOR_ENABLED,TOR_AUTO_HEAL,STRATUM_TLS,XMRIG_API_AUTH,MONERO_CLEARNET_SYNC,TARI_CLEARNET_SYNCand the notification route; every cell is asserted. - Tier-1: an explicit
p2pool.clearnet = falseunder Performance wins;./pithead statusprints the profile name, or Custom when an override diverges. - Tier-1:
PITHEAD_PROFILEis rendered to.env;describe_changehas a row per target position in plain words naming what is exposed (Performance) and what rigs must change (Privacy), flagged CONFIRM so a dashboard commit needs the typed APPLY. Pinned intests/stack/test-confirm-approval.sh;profileis not on the direct-commit list (tests/stack/control/test-control-editable-allowlist.sh). - Tier-1: Performance does not print the 'misconfigured app could reach clearnet' warning on every apply (
02b-tor-egress-apply.sh:121); it prints one informational line. Theclearnet_exposededge stays silent when the firewall is opted out (egress_firewall_edges.py), asserted under Performance indashboard/tests/service. - Tier-1:
profile = privacyrenders--no-clearnet-p2p; Balance and Performance do not; an explicitp2pool.clearnet = trueunder Privacy drops it.--no-upnpis present in all three profiles.workers.api_token = autois generated once and persisted likePROXY_STRATUM_PASSWORD(28:231-234). - Tier-1 (tor.auto_heal is inert without dashboard.control.enabled (no-login appliances) #3166): no profile leaves
tor.auto_healtrue while its recovery path is inert; with no dashboard login the effective config orstatussays auto-heal is inactive. Test a no-login Balance config. - Tier-1 (ruling 2, literally): with
profile = performance, the nodes stay on their clearnet configuration after the first sync (no return to Tor-only), and Telegram, Healthchecks pings, the release check and the price feed run with no Tor proxy; with Balance and Privacy each of them still uses the proxy. The Performance preview names what leaves without Tor. If the owner narrows ruling 2 to the listed keys instead, this bullet is replaced by a preview sentence that names what still uses Tor, and the Performance wording in the lean UI spec (v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566) changes with it. - The wizard writes
profileexplicitly even whenbalance(explicit_wizard_config,wizard/defaults.py;dashboard/tests/web/test_wizard_new_machine.py).profileis registered as an enum inconfiglogic.mjsFIELD_OPTIONSonly so the existing leaf-claim test stays green (dashboard/tests/frontend/config/configlogic.test.mjs); no new current-UI behaviour, since the current UI is deleted at the cutover (ruling 4, v2.1.0 lean UI spec: four pages, one profile control, an Advanced drawer #3566). docs/privacy.mdhas one section per position;docs/configuration.mddocumentsprofile. No new explanatory code comments.- Onion-only P2Pool peering: wire --no-clearnet-p2p to a config knob (privacy.md names the gap) and always pass --no-upnp #2488, Inbound clearnet peering as a deliberate option: --p2p-external-port, an inbound-reachable doctor row, and docs #2493 and tor.auto_heal is inert without dashboard.control.enabled (no-login appliances) #3166 are closed by this issue. The inbound external-port flag and doctor row from Inbound clearnet peering as a deliberate option: --p2p-external-port, an inbound-reachable doctor row, and docs #2493 are not built; expert flags go through p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482.
possible solutions
- Resolve the profile in one new slice next to
27-defaults-and-config-validation.shthat writes an effective-config file every reader uses. Cleanest, touches the most readers. - Make
config_bool(19-small-utilities.sh:73) and the rawjqreads for stratum password, worker API auth andnotifications.torconsult the profile table when the key is absent. Smaller diff, easy to miss a reader; the render test above catches that. - Onion-only peering: render
--no-clearnet-p2pstraight fromprofile(chosen, because ruling 3 leaves p2pool.extra_flags: an allowlisted passthrough so any upstream P2Pool option can be set from config.json, wizard and dashboard #2482 as the only per-flag escape hatch). A separatep2pool.onion_onlykey was rejected for that reason. - Closing the Tor gap: under Performance skip writing the sync marker so the entrypoints keep their clearnet config (they already do while the flag is on and the marker is absent), and add one env switch read wherever the Tor proxy is set for Telegram, Healthchecks, the release check and the price feed.
- For Privacy tokens, rig-side rollout lives in the rig repository (Tier 4: stratum password accept/reject and a TLS-pinned client against the real proxy #3078, Automate: worker API auth modes against a fake rig that answers like the real one (401 missing, 403 wrong) #3427); here only the preview warning and the generated token are in scope.
Part of #3557.
Activity
40 remaining items
pithead-architect commentedon Nov 6, 2026
Ruling: Not a question, just a branch-name mismatch. Your PR is #3632 on
codex/3574-privacy-profiles, and its body carriesCloses #3574. The runner looked upagent/3574-…, found nothing, and posted this question. Resume and returndonewith"pr": 3632in the result so the runner reviews that PR. Create no new branch or PR. Leave the evidence as it is: privacy 3270, setup-defaults 3292, and paired tari-observe 3396 superseding errored 3311, all on 3bda994. The one red check, "Build + scan the appliance rootfs" on the Cosign go-jose CVE, is inherited from the base. Its fix (#3761) is on develop-v2.0.3 only, and the forward merge is owned by #3664. Keep it listed under that owner in the PR body, with no inline backport, suppression or version clamp. The reviewer and the owner's formal approval on the current head remain the gate, and a red required check still blocks the merge until #3664 lands.pithead-developer commentedon Nov 6, 2026
Waiting on a transient chain_sync condition, not on another issue. tier4-e2e submit for profile-privacy refused 503 baseline_unhealthy: live-stack baseline unhealthy or fenced by an unproved wallet fixture or Tari snapshot restore; no job was created. The runner re-checks it (first at 2026-11-06T08:01Z, at most 5 times).
pithead-developer commentedon Nov 6, 2026
Blocked on #3923. Blocked on #3923. The five red required checks on head ae82563 (the rootfs scan and the dashboard, monero, p2pool and xmrig-proxy image builds) all fail on apt CVE-2026-109518, HIGH, fixed in 3.0.4, in the Debian base. This PR touches none of those images, and the go-jose finding from the earlier red is gone since the base forward-port. The fix is PR #3926 (open, base develop-v2.1.0);
develop-v2.1.0does not contain it yet, and I would add no suppression or version clamp here. Already finished on this head: Privacy e2e 3425 and KVM setup-defaults 3420 passed, and their evidence is in the PR body. Once #3926 merges and #3923 closes, mergedevelop-v2.1.0into this branch and the checks re-run. I posted this explanation on PR #3632.The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 8, 2026
Blocked on #3940. Blocked on #3940. On head 0a976ba, Privacy e2e 3580 (148 pass, 0 fail, 6 by-design skips) and KVM setup-defaults 3581 (141 pass) both passed, and their evidence is in PR #3632. Six required checks are still red: the rootfs scan, and the dashboard, monero, p2pool, xmrig-proxy and tor image builds. They fail on apt CVE-2026-109518 and musl-utils CVE-2026-107891. The fix for these (#3926) landed only on develop-v2.0.3, and #3940 owns bringing it into develop-v2.1.0. This PR touches none of those images, and I would add no suppression or clamp. #3929 and #3931 own the musl and Go x/net findings. When #3940 lands, merge develop-v2.1.0 into the branch and re-run the checks. I posted this on the PR; no paired Tari proof exists on this head.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 9, 2026
Merged in #3632.