Skip to content

Live tier4 proof: dashboard purposes exit different Tor circuits #4324

Closed

Description

@pithead-architect

What's the problem

Part of pithead#4209. The AC needs an automated live-Tor row: "two purposes get different exit circuits". The tier4-e2e check battery already dials the Tor SOCKS proxy from a container (tests/integration/lib/run-state.sh assert_egress_dial_pair, egress-probe.sh), and tests/integration/lib/xvb-egress-probe.py establishes the in-image Python probe idiom (base64 payload + docker exec via live-xvb-support.sh:172), but nothing today reads an exit identity per purpose and compares them. Tor isolates by SOCKS auth (IsolateSOCKSAuth default), so credentialed purposes must land on distinct circuits.

What it impacts

Releases: this is the acceptance evidence for pithead#4209's Tor-circuit isolation on the v2.0.5 release milestone.

How I found it

Split of pithead#4209 after reading the dial-pair battery on origin/develop-v2.0.5 (ad76587).

How important is it

The AC's live-proof half; without it the per-purpose children are unproved against real Tor.

Acceptance criteria

  • New tests/integration/lib/purpose-circuit-probe.py: inside the dashboard image it imports mining_dashboard config/helper, and for each of the labels health and notify (helper-built, purpose_proxy(TOR_SOCKS_PROXY, label) through proxy_map) GETs https://1.1.1.1/cdn-cgi/trace and parses ip=; exit 0 only when every label answered and the IPs pairwise differ; stderr stays free of proxy credentials (labels + ip= classes only).
  • Wired as an it_pass/it_fail row in tests/integration/lib/run-state.sh beside assert_egress_dial_pair (local mode), following the live-xvb-support.sh base64+docker-exec idiom; on identical-IP collision retry once with an attempt-suffixed label (fresh identity forces a fresh circuit) before failing.
  • The row runs as part of tier4-e2e targeted on the head; register the new lib file in the selftest inventories that pin module/function lists (tests/integration/selftest/selftest-run-modules.sh and any run-state.sh pinner) and keep the integration selftests green.
  • Update the docs that enumerate e2e legs/circuit claims (docs/dev/integration-testing.md, docs/dev/manual-qa/diy/09-privacy-tor.md) to state purposes now exit distinct circuits and name this row.

Possible solutions

The pinned Cloudflare cdn-cgi/trace echo (pithead already probes 1.1.1.1) read through helper-built purpose proxies from the dashboard container; exit-fingerprint equality is the observable, with one bounded re-attempt because distinct circuits can still coincidentally share an exit relay.

Parent: #4209

Worker brief: Test tier: tier4-e2e targeted (the new live row) plus GitHub tiers 1-3 for harness/selftest changes. Add tests/integration/lib/purpose-circuit-probe.py per the pinned contract (health vs notify purpose proxies, cdn-cgi/trace ip= compare, one bounded retry with attempt-suffixed label), wire the row next to assert_egress_dial_pair in run-state.sh local mode via the live-xvb-support.sh base64+docker-exec idiom, update selftest inventories, and correct the egress/circuit docs. Submit tier4-e2e targeted through bin/bench-submit with --base develop-v2.0.5 and quote the bench-ci evidence block. Lands after the helper child (needs purpose_proxy); ideally after the notify child so labels match product callers. ruff check + format on the new .py; shell gates (shellcheck, selftests) for the .sh edits; no comments/docstrings.

Activity

  1. added this to the v2.0.5 milestone on Nov 20, 2026
  2. added
    dashboard
    security
    appliance
    needs-triage
    size:M
    on Nov 20, 2026
  3. pithead-developer commented on Nov 22, 2026

    @pithead-developer
    Contributor

    Blocked on #4320. The probe this issue asks for needs purpose_proxy(), and that helper isn't on develop-v2.0.5 yet. I searched the branch tip (b1b4ce8) and found no purpose_proxy and no per-purpose credentialed proxy code. Only proxy_map and TOR_SOCKS_PROXY exist. The probe is specified to build its URLs through purpose_proxy(TOR_SOCKS_PROXY, label), so I can't write it against real code, and the tier4-e2e proof would test nothing. The brief also says this issue lands after the helper child, #4320, which is still open. The notify child, #4323, is open too, and the brief wants it in first so the labels match the product callers. Nothing is edited, branched or pushed. No PR exists, and no bench job was submitted. When #4320 merges into develop-v2.0.5, resume this issue. The work is then: write tests/integration/lib/purpose-circuit-probe.py, wire the row beside assert_egress_dial_pair in run-state.sh, update the selftest inventories and the two docs, then run tier4-e2e targeted with --base develop-v2.0.5. Resuming after #4323 as well is better, so the labels match.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 22, 2026
  5. removed
    blocked
    on Nov 22, 2026
  6. pithead-developer commented on Nov 23, 2026

    @pithead-developer
    Contributor

    Merged in #4362.

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

    appliancedashboardneeds-triagesecuritysize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions