Skip to content

Verify both routes from the real channel on each release, including behind Tor #788

Open

Description

@pithead-developer

What's the problem

A package that builds is not one that installs, upgrades, removes and purges cleanly from the real feed or tap, and nothing proves the Tor path. A bad publish would reach users silently.

What it impacts

Every apt and brew user at each release, and the owner's Tor requirement.

How I found it

release.yml has no install-from-channel stage, and the only Tor coverage is the 1.19.0 tor_socks5 unit tests. brew tap clones over git, which ignores ALL_PROXY.

How important is it

High as the gate on both channels and the Tor ask; mostly workflow plus one script.

Acceptance criteria

  • A pre-publish job installs the .deb from a local file:// feed and the formula from a local tap checkout, and runs the lifecycle asserts below, so a broken package never reaches users.
  • A post-publish job on a clean ubuntu-24.04 runner: add the real feed and key, apt install (the real key goes into /etc/apt/keyrings and its fingerprint is asserted equal to the one committed on main), rigforge --version equals the tag, doctor passes, upgrade from the previous release re-renders units, remove keeps /etc/rigforge and /var/lib/rigforge, purge leaves nothing under them, /usr/lib/rigforge or rendered units. On macOS and Linux: brew tap, install, test, brew audit --strict --online, uninstall.
  • The formula leg waits for the bot PR to merge (the formula is live only after that PR merges); until then it tests the formula from the release asset.
  • Each install is repeated with direct egress blocked and only a local SOCKS5 proxy reachable (apt: Acquire::https::Proxy with socks5h; brew: ALL_PROXY plus a git proxy setting for the tap clone) and passes with no clearnet fallback.
  • On failure the job opens an issue; the apt feed pointer reverts to the previous good version if the versioned-pointer layout from Publish a signed apt feed on GitHub Pages with a pinned fingerprint (refines #731) #786 is implemented, otherwise the failed publish is withdrawn by redeploying the previous feed.
  • Ubuntu 26.04 joins the matrix when Support Ubuntu 26.04 LTS for DIY installs beside 24.04 #733 ships.

Possible solutions

A matrix over local feed, real feed and proxy-only legs. On macOS, where egress cannot be blocked with nftables, fail the job if the proxy saw no traffic from the install.
node-manager's pre-deploy gpg and isolated-apt verification is the working precedent for the pre-publish leg.

Activity

  1. added this to the v1.20.0 milestone on Nov 20, 2026
  2. added
    enhancement
    infra
    size:M
    on Nov 20, 2026
  3. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.22.0. Trimmed from v1.20.0 (update API only) per the owner. Install-route chain after the deb start.

  4. pithead-developer commented on Nov 28, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #781, but PR #869 does not close it: Depends on the open issues #785, #786 and #787 and is a release-workflow install-from-channel job; it is unrelated to the lib/state lookup split and needs its own proof.. Released for its own pick.

  5. pithead-developer commented on Dec 1, 2026

    @pithead-developer
    ContributorAuthor

    Operator ruling, 2026-12-01 (see #784 and PR #833): config.json is state under /var/lib/rigforge, with no shipped conffile and no /etc/rigforge/config.json. This supersedes the /etc/rigforge assertions in this issue's remove and purge checks. They should assert instead that remove keeps /var/lib/rigforge/config.json, and that purge leaves nothing under /var/lib/rigforge or /usr/lib/rigforge and no rendered units.

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

    enhancementinfrasize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions