Skip to content

Port the Tor-routed fetch layer and upgrade --check to Rust #718

Open

Description

@pithead-developer

What's the problem

util/fetch-proxy.sh (152 lines) does SOCKS5 curl and git fetch through Tor with preflight and apt and dnf proxy options, and _upgrade_check (upgrade --check) is the other fetch consumer. Appliance mode also seeds the Tor default. This layer carries the no-clearnet-fallback guarantee of #668 (closed; the shell implementation exists and is ported here, not sequenced around).

What it impacts

Every network fetch RigForge makes, including setup, upgrade and the release check.

How I found it

Reading util/fetch-proxy.sh, _upgrade_check and the tests (tests/test-fetch-proxy.sh, tests/e2e/isolation.sh proxy-only network) at ea41133.

How important is it

Medium to high for care: must not add any clearnet path.

Acceptance criteria

  • With RIGFORGE_IMPL=rust, fetches run natively, make test-suite passes unchanged and the make test-e2e isolation checks pass.
  • Fetches go only through the configured SOCKS endpoint with hostname resolution done by the proxy; a test proves failure, not fallback, when the proxy is down.
  • Preflight, apt and dnf proxy options and the appliance Tor default behave as today, each with a test.
  • PARITY.md updated. make check passes.

Possible solutions

  • Shell out to git and curl initially and port only orchestration.
  • Native SOCKS5 client versus curl --socks5-hostname; options only.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    enhancement
    refactor
    security
    P3-hardening
    size:M
    on Nov 17, 2026
  3. pithead-developer commented on Nov 26, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #706 — the RIGFORGE_IMPL dispatcher this slice needs does not exist yet, and it is the issue whose work order precedes this one.

    Why it prevents progress. Acceptance criteria 1 and 4 are unsatisfiable on current develop:

    What is already finished (this session's read-through).

    What unblocks it. #706 landing (dispatcher, unit persistence, env-hook contract, the RIGFORGE_IMPL=rust suite CI job, and the PARITY.md ledger). The runner resumes this session when #706 closes, and the slice is then implementation-clear: fetch helpers + upgrade --check to Rust with per-helper tests and a fail-closed proxy-down test.

    One operator note. #706 carries operator-hold, which contradicts the owner's 2026-11-24 work order above that puts #706 second and says "build the compiled refresh now". If the hold is stale, removing it lets #706 be picked and this issue follows.

  4. pithead-developer commented on Nov 26, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #706. Blocked on rigforge#706: issue #718's acceptance criteria 1 and 4 require the RIGFORGE_IMPL dispatcher, the binary env-hook contract, the RIGFORGE_IMPL=rust test-suite CI job and docs/dev/rust-port/PARITY.md — all defined by #706, none of which exist on current develop (verified: no RIGFORGE_IMPL anywhere, no PARITY.md, crates/ holds only #705's --version scaffolding; #706 has no PR or draft branch). Implementing a parallel selection switch in this slice would conflict with #706, which explicitly reserves the dispatch point, and an unwired Rust fetch module would pre-empt its binary/argv/env-hook decisions. Finished this session: full scoping read of the slice (the twelve helpers in util/fetch-proxy.sh incl. appliance Tor seeding, the _upgrade_check fetch path, tests/test-fetch-proxy.sh and the isolation e2e proxy-only network as the AC-2 fail-closed oracle), confirmation it is one size:M slice needing no split, and the sequencing check against the owner's 2026-11-24 work order on #669. Unblocks when #706 lands; the runner then resumes this session and the slice is implementation-clear. Operator note: #706 carries operator-hold although the owner's 2026-11-24 ruling ("build the compiled refresh now", order #705, #706, #704, ...) puts it second; if the hold is stale, removing it lets #706 be picked. Blocker comment posted on #718; nothing edited or pushed.

    The runner resumes this issue when that one closes.

  5. added
    blocked
    on Nov 26, 2026
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

    P3-hardeningblockedenhancementrefactorsecuritysize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions