Skip to content

refactor!: remove RPM generation; add govulncheck to CI (ADR-0016) - #78

Merged
bketelsen merged 1 commit into
mainfrom
lucilla/remove-rpm
Oct 24, 2026
Merged

bketelsen merged 1 commit into
mainfrom
lucilla/remove-rpm

Conversation

@frostyard-machines

Copy link
Copy Markdown

Summary

Removes RPM generation from repogen, to end GO-2026-5932 (golang.org/x/crypto/openpgp, unmaintained and unsafe by design, no fixed version). It was reachable at init: rpm.init → rpmutils.init (github.com/sassoftware/go-rpmutils v0.3.0). Brian chose option C (T156b, 2026-10-24).

  • ADR to accept: ADR-0016 — Remove RPM generation (Proposed). ADR-0004, ADR-0005 and ADR-0010 become superseded; the RPM parts of ADR-0007, 0008, 0009 and 0011 are superseded (Status lines only).
  • ⚠️ Breaking change. Proposed release: v0.7.0 (repogen is at v0.6.0).
    • The rpm type is gone: .rpm files are no longer detected. The scanner skips them and logs a warning that names ADR-0016. A directory with only .rpm files gives "No packages found" (exit 0).
    • generate flags --distro, --version, --gpg-key-url are removed (unknown flag).
    • publish-to-r2: package-type: rpm fails validation; inputs distro-variant and version are removed.
  • CI: pinned go run golang.org/x/vuln/cmd/[email protected] ./... in the test job (same form as intuneme and nsl).
  • Dependencies: go-rpmutils, DataDog/zstd, xi2/xz removed. golang.org/x/crypto v0.41.0 → v0.58.0 (latest; highest listed fix is v0.56.0), klauspost/compress v1.17.11 → v1.18.7 (GO-2026-5841), x/sys → v0.49.0. x/crypto v0.58.0 requires go 1.26.0, so the go directive moves from 1.24 to 1.26.0 (toolchain go1.26.10 unchanged).
  • govulncheck locally: 0 reachable, 0 in imported packages; 1 module-level note (GO-2026-5932 itself, because x/crypto stays required through ProtonMail/go-crypto; no imported package uses openpgp).
  • Kept coverage: the incremental skip-duplicates integration test moved from RPM to APK fixtures; new internal/scanner/detector_test.go pins that RPM input is unknown.

Evidence: no frostyard consumer uses RPM generation

Scan on 2026-10-24: shallow clones of the default branches of all 72 frostyard repositories (66 public, 6 private; archived included), grep for repogen and RPM terms, plus gh search code and the repogen forks.

  • Only live caller: snosi. .github/workflows/build.yml:244 uses publish-to-r2@ea8cd1f… (v0.4.1, repogen-version: v0.4.1) with package-type: sysext. Unaffected (SHA-pinned, sysext).
  • Archived callers, all deb: snowcat-cockpit, gchlog, nbc, igloo-old.
  • apt-publisher (private): mentions repogen only as the legacy dists/stable import source and REPOGEN_GPG_KEY history. No RPM.
  • omarchy-apps, homebrew-tap, incus, bootc-debian, flatpak-index, caddyscope: no repogen and no RPM reference.
  • .rpm files that exist (updex, intuneme, archived snowcat-cockpit) come from GoReleaser nfpm and go to GitHub release assets; none is fed to repogen.
  • Published tree: https://repository.frostyard.org/ lists only ext/; /rpm/, /rpm/repodata/repomd.xml, /repodata/repomd.xml return 404.
  • Outside the org: code search finds only bketelsen/* notes and a dataset list; the only fork is bketelsen/repogen.
  • Limits: default branches only; code search does not index everything; private users outside the org cannot be seen.

Checks (local)

make build, make fmt (no diff), golangci-lint v2.3.1 with GOTOOLCHAIN=go1.26.10 (0 issues), go test -short -race ./..., make test-integration, node scripts/check-docs.mjs (24 docs, 230 links, 9 symlinks), govulncheck v1.9.0 (exit 0).

Notes for Brian

  • Superseded status lines on the old ADRs land with this PR because the code they describe goes with it; ADR-0016 itself stays Proposed until you accept it (follow-up like docs(adr): accept ADR-0015 #77).
  • Org ADRs in core (0009, 0010, 0011) still mention rpm as a general package format; this PR does not change core.
  • No merge, no tag from me.

Remove the rpm package type, internal/generator/rpm/, the RPM-only
generate flags (--distro, --version, --gpg-key-url) and config fields,
the RPM fixtures and tests, and rpm from the publish-to-r2 action.
go-rpmutils (and DataDog/zstd, xi2/xz) leave the module graph, which
ends GO-2026-5932: x/crypto/openpgp was reachable at init through
go-rpmutils, and the advisory has no fix.

The scanner now logs a warning for a skipped .rpm file.

Add a pinned govulncheck (v1.9.0) step to the test job. Bump
golang.org/x/crypto to v0.58.0, klauspost/compress to v1.18.7 and
x/sys to v0.49.0; the go directive becomes 1.26.0.

New ADR-0016 (Proposed); ADR-0004, ADR-0005 and ADR-0010 are
superseded, and the RPM parts of ADR-0007, 0008, 0009 and 0011.

BREAKING CHANGE: repogen no longer detects or generates RPM
repositories; the --distro, --version and --gpg-key-url flags and the
publish-to-r2 inputs distro-variant and version are removed.
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@frostyard-machines

Copy link
Copy Markdown
Author

Cross-review: passed

  • Reviewer: openai/gpt-6.1-sol · coder: github-copilot/claude-sonnet-5.5 (scanner warning by the parent, Claude).
  • Reviewed base 43e69a7e752f7b0760a0a6769996acfdc0c668eb, head 4e8cf0ed96293f1be095c1e9fe0a43c9d3f48cf6 (= current PR head).
  • Scope: all 36 substantive added/modified paths in 2 batches (code/CI/tests 19 files; docs/ADRs 17 files). Excluded from line review: go.sum, the 2 deleted .rpm fixtures, the old content of the 3 deleted internal/generator/rpm/ files (reference check done instead).
  • Result: Ready, Blocking: none. ADR status choices confirmed: 0004, 0005, 0010 fully superseded; 0007, 0008, 0009, 0011 RPM parts superseded.
  • 1 low, non-blocking finding, not fixed here: README.md (release section, near line 1066) still describes native packages, 4 platforms and a repository archive; .goreleaser.yml and RELEASING.md say Linux amd64/arm64 binaries + SHA256SUMS. This drift is older than this PR; left for a follow-up so the reviewed head stays unchanged.
  • CI at this head: Run Tests (incl. govulncheck v1.9.0: 0 reachable, 0 in imported packages), Docs integrity, codecov/patch: all pass.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 24, 2026
@bketelsen
bketelsen merged commit 96d93c0 into main Oct 24, 2026
3 checks passed
@bketelsen
bketelsen deleted the lucilla/remove-rpm branch October 24, 2026 18:18
bketelsen pushed a commit that referenced this pull request Oct 24, 2026
…ction (#79)

Set ADR-0016 to Accepted and update its index entry. Replace the README
release summary (4 platforms, native packages, repository archive) with
the current GoReleaser contract from RELEASING.md: two Linux binaries
and SHA256SUMS. Found by the cross-review of #78.

Co-authored-by: frostyard-machines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants