Skip to content

Wire dashboard XvB/price purpose onto its own credentialed circuit #4322

Closed

Description

@pithead-architect

What's the problem

Part of pithead#4209. The dashboard's XvB/price egress still shares the raw proxy: client/xvb_client.py:201,226,264,318 (four proxy_map(self.tor_proxy)), service/xvb/price_feed.py:65, service/xvb/xvb_standby.py:89-90 (inline dict). Once the purpose_proxy helper lands (sibling child), these are the dashboard-purpose call sites holding the AC's third purpose back.

What it impacts

Appliance/DIY owners: XvB donor stats/registration and price lookups become a distinct circuit family at Tor, separate from updates, probes and notifications.

How I found it

Split of pithead#4209; sites verified on origin/develop-v2.0.5 (ad76587) after #4207 merged.

How important is it

One of three wiring children; carries the dashboard purpose.

Acceptance criteria

  • All six sites build proxies via proxy_map(purpose_proxy(<base>, PROXY_PURPOSE_DASHBOARD)); xvb_standby's inline dict becomes that call; XVB_TOR_SOCKS5 (xmrig pool socks5, bare host:port) is NOT changed — no credential support there and it is out of scope.
  • Existing tests dashboard/tests/client/test_xvb_client.py, dashboard/tests/service/xvb/test_price_feed.py, test_xvb_standby.py updated so expected proxies carry dashboard:isolate@; the Remove every dashboard proxy branch; per-caller zero-socket tests #4207 zero-socket cases still pass; at least one assert per module shows the credential in the constructed proxy.
  • Failure logging stays secret-free (request_failure_class only); one driven failure asserts no isolate@ in the logged text.

Possible solutions

Mechanical swap onto the sibling helper at the six pinned lines.

Parent: #4209

Worker brief: Test tier: GitHub tiers 1-3 (dashboard-logic row). Wire xvb_client.py (4 sites), price_feed.py and xvb_standby.py to proxy_map(purpose_proxy(base, PROXY_PURPOSE_DASHBOARD)) after the helper child lands; do not touch XVB_TOR_SOCKS5. Update the named pytest modules for the credentialed expected proxies plus a logged-text secret-free assert. ruff check + format; 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. Blocked on pithead#4320. This issue wires the XvB/price call sites onto purpose_proxy(<base>, PROXY_PURPOSE_DASHBOARD). Neither symbol exists on origin/develop-v2.0.5 (b1b4ce8). git grep for purpose_proxy and PROXY_PURPOSE under dashboard/ finds nothing, and #4320 has no open PR. The issue and its worker brief both say to wire after the helper child lands, and writing the helper here would duplicate #4320. Nothing is edited, branched or pushed, and no PR is open. Once #4320 merges, resume. The work is the six mechanical swaps (four in xvb_client.py, one each in price_feed.py and xvb_standby.py). It also covers the three pytest modules with dashboard:isolate@ expected proxies, plus one secret-free logged-text assert. The proof row is GitHub tiers 1-3 with make lint-py. XVB_TOR_SOCKS5 stays untouched.

    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 22, 2026

    @pithead-developer
    Contributor

    Merged in #4363.

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