Skip to content

ADR: package ownership, upgrade authority, signing custody and Tor for apt and Homebrew #779

Closed

Description

@pithead-developer

What's the problem

Nothing records how a package-owned RigForge tree relates to self-upgrade, who holds the apt signing key, whether the #205/#229 decision to carry no signing still holds for the apt channel, or how apt and brew run behind Tor. #731 (CI secret) and the pithead#3459 ruling of 2026-11-01 (offline key, never a CI secret) conflicted. The owner ruled on 2026-11-20 that custody for both RigForge and pithead follows node-manager's live model: a CI secret in a protected environment, with offline backups. The ADR must record that ruling, the backup and rotation procedure, and that it supersedes the pithead#3459 ruling.

What it impacts

Every packaging story, the SECURITY.md trust statement, and the bodies of #731 and #732. Without it implementers pick incompatible answers.

How I found it

Reading #731, #732, SECURITY.md (signing removal, checksums-only on the git-tag upgrade path), ADR 0002 and pithead#3459. Neither packaging issue has a Tor or upgrade-ownership criterion.

How important is it

High within the epic: it gates the signed feed and fixes a key-custody choice before any key exists. Docs only, so small.

Acceptance criteria

  • A new ADR under docs/adr states: the package marker and the rule that a package-owned tree is upgraded only by its package manager; the key is a dedicated OpenPGP key held as the repository secret APT_SIGNING_KEY and imported into a throwaway keyring at release time; the 40-hex fingerprint is committed in the repo and mirrored in the repo variable APT_SIGNING_FINGERPRINT; the build refuses unless the imported key matches the pinned fingerprint; the signing job runs in a protected GitHub environment that needs the owner's approval before anything is signed; passphrase-protected offline backups exist on the owner's machine and the NAS (no hosts or paths in the ADR), with a documented backup, restore and rotation procedure; rotation (new key, publish the new public key and fingerprint in a release, users re-import the key) and revocation or compromise (rotate the secret, revoke the old key, publish the new fingerprint through SECURITY.md) procedures; a tag ruleset protects release tags; that feed signing applies to the apt channel only and release tarballs stay checksums-only; the apt and brew Tor recipes; the support matrix (Ubuntu 24.04 full, 26.04 when Support Ubuntu 26.04 LTS for DIY installs beside 24.04 #733 ships, macOS best effort).
  • The ADR records the owner's 2026-11-20 ruling, which applies to both RigForge and pithead and supersedes pithead's 2026-11-01 offline-key ruling on #3459.
  • The ADR records the apt feed rules shared with the precedents (flat feed, Pages via Actions, publish only on a published stable release, tag equals v$(VERSION) and is an ancestor of main, fingerprint pinned from main, verified by gpg and a real apt client before deploy).
  • The ADR records the Homebrew tap decision (formula in this repo, installed by URL, release asset plus bot PR to main, live only after the PR merges).
  • The ADR records the auto-restart-after-success upgrade rule and that purge never reverts system tuning.
  • SECURITY.md links the ADR and its no-signing statement is qualified.
  • Package RigForge as a .deb for DIY installs and publish it through the project APT repository #731 and Offer a Homebrew install route for DIY RigForge installs #732 are rewritten to the six-section format and reference this epic and the ADR.
  • The ADR contains no reference to an internal test-runner or developer-tooling repository and no hostnames, addresses or home paths.

Possible solutions

Write the ADR from the epic design, matching the ADR 0002 precedent. Folding the decisions into SECURITY.md alone is smaller but loses the decision record.
Model the feed and tap sections on node-manager's releasing docs; do not copy host or path details.

Activity

  1. added this to the v1.20.0 milestone on Nov 20, 2026
  2. added
    enhancement
    infra
    size:S
    on Nov 20, 2026
  3. pithead-developer commented on Nov 21, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #794.

  4. added a commit that references this issue on Nov 21, 2026
    3cdfd49
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:S

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions