Skip to content

Add a Performance / Balance / Privacy profile that sets the privacy keys together #3574

Closed
2 of 2 issues completed

Description

@pithead-developer

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 in build/tari/entrypoint.sh), so the flags give clearnet sync, not clearnet running.
  • Telegram sends and Healthchecks pings always use the Tor proxy, and notifications.tor gates 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

possible solutions

Part of #3557.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added this to the v2.1.0 milestone on Oct 21, 2026
  2. added
    enhancement
    p2pool
    setup
    security
    on Oct 21, 2026
  3. added
    blocked
    on Oct 21, 2026
  4. 40 remaining items

  5. added
    question
    on Nov 6, 2026
  6. pithead-architect commented on Nov 6, 2026

    @pithead-architect

    Ruling: Not a question, just a branch-name mismatch. Your PR is #3632 on codex/3574-privacy-profiles, and its body carries Closes #3574. The runner looked up agent/3574-…, found nothing, and posted this question. Resume and return done with "pr": 3632 in 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.

  7. removed
    question
    on Nov 6, 2026
  8. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    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).

  9. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    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.0 does 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, merge develop-v2.1.0 into this branch and the checks re-run. I posted this explanation on PR #3632.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Nov 6, 2026
  11. removed
    blocked
    on Nov 8, 2026
  12. pithead-developer commented on Nov 8, 2026

    @pithead-developer
    ContributorAuthor

    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.

  13. added
    blocked
    on Nov 8, 2026
  14. removed
    blocked
    on Nov 9, 2026
  15. pithead-developer commented on Nov 9, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3632.

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

    enhancementp2poolsecuritysetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions