Skip to content

fix(deps): build with Go 1.26.10 and upgrade modules with reachable vulnerabilities - #71

Merged
bketelsen merged 3 commits into
mainfrom
build/go-1.26.10
Oct 21, 2026
Merged

bketelsen merged 3 commits into
mainfrom
build/go-1.26.10

Conversation

@bketelsen

@bketelsen bketelsen commented Oct 21, 2026 •

Copy link
Copy Markdown

Summary

repogen built with Go 1.23.5, which is end of life. With go1.23.5, [email protected] reported 57 reachable vulnerabilities. This PR moves the build toolchain to go1.26.10, upgrades the four modules with reachable vulnerabilities, and moves the module go line from 1.23.5 to 1.24, which the fixed AWS SDK modules require.

Standard library advisories fixed

Module advisories fixed

  • GO-2026-5764 — aws-sdk-go-v2 eventstream (eventstream v1.6.10, service/s3 v1.78.2).
  • GO-2026-4550 — cloudflare/circl v1.3.3, fixed in v1.6.3.
  • GO-2025-3754 — cloudflare/circl v1.3.3, fixed in v1.6.1.
  • GO-2025-3922 — ulikunitz/xz v0.5.11, fixed in v0.5.15.

Versions

Module Before After
github.com/cloudflare/circl v1.3.3 v1.6.3
github.com/ulikunitz/xz v0.5.11 v0.5.17
github.com/aws/aws-sdk-go-v2/service/s3 v1.78.2 v1.97.3
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 v1.7.8
github.com/aws/aws-sdk-go-v2 v1.36.3 v1.41.5
github.com/aws/smithy-go v1.22.2 v1.24.2
golang.org/x/crypto v0.18.0 v0.41.0
golang.org/x/sys v0.16.0 v0.35.0
github.com/ProtonMail/go-crypto v1.0.0 v1.0.0 (kept)
go line 1.23.5 1.24
build toolchain none (1.23.5) go1.26.10

The other aws-sdk-go-v2 internal modules moved as go get required; no module went past its first fixed version.

The go line and the toolchain

service/s3 v1.97.3 and eventstream v1.7.8 declare go 1.24, so the go line must move to 1.24 to take the fix. Repogen is a CLI binary and no frostyard module imports it, so this line affects only repogen's own builds. The build toolchain stays go1.26.10.

What stays

  • GO-2026-5932 (golang.org/x/crypto/openpgp, no fix). The traces go through github.com/sassoftware/go-rpmutils (verify.go, signatures.go) from internal/generator/rpm/parser.go. x/crypto v0.41.0 is the newest version that fits; v0.53.0 and later declare go 1.25/1.26.
  • ProtonMail/go-crypto v1.0.0, not v1.5.2. From v1.2.0, clearsign.Decode drops the trailing newline from Plaintext, so the byte-identical InRelease check at internal/generator/deb/production_restore.go:222 fails and 35 signing and production tests fail. That is a production-signing code change and is out of scope here.

actions/setup-go

actions/setup-go at the pinned release SHA (40f1582…, v5.6.0) parses only the go line of a go.mod version file (parseGoVersionFile: contents.match(/^go (\d+(\.\d+)*)/m)); it ignores toolchain. Both workflows install Go 1.24 from the go line, and the toolchain go1.26.10 directive makes the go command build with 1.26.10 under the default GOTOOLCHAIN=auto. release.yml is unchanged.

The golangci-lint install step sets GOTOOLCHAIN: go1.26.10, because go install pkg@version builds outside this module and otherwise used the setup-go Go; the linter would then refuse its 1.26.10 target.

Files changed

  • go.mod — go 1.24, toolchain go1.26.10, upgraded requirements.
  • go.sum — checksums for the upgraded modules.
  • .github/workflows/test.yml — go-version-file: go.mod, and GOTOOLCHAIN for the linter install.
  • README.md, docs/design/overview.md, docs/design/ci-cd.md, test/README.md — module minimum Go 1.24, build toolchain go1.26.10.

Checks

  • make build — compiles on go1.26.10
  • make fmt — no diff
  • make lint — golangci-lint v2.3.1 (the CI version): 0 issues.
  • make test-unit — go test -v -short -race ./... passes; all signing tests pass, none skipped
  • go test ./... — full suite passes, including the integration/e2e suite (test/ 50s)
  • go vet ./... clean

Docs housekeeping

  • Existing docs updated in place; no new docs
  • No new docs to index
  • Cross-links unchanged
  • No new decision: follows the org toolchain practice (updex#441) and dependency upgrades
  • Conformance aliases (ADR-0012) untouched

Verification

  • node scripts/check-docs.mjs green (23 docs, 239 links, 9 symlinks)
  • go mod tidy leaves go.mod/go.sum unchanged
  • GOTOOLCHAIN=go1.26.10 go run golang.org/x/vuln/cmd/[email protected] ./...: Your code is affected by 1 vulnerability from 1 module — GO-2026-5932 only. No standard library or AWS/circl/xz findings remain.
  • Output-format changes: none

Risk

Tier 2 (moderate): a patch-level toolchain move plus dependency upgrades that require a go line move. No source, API, workflow-behavior, or release-config change, and the signing tests pass unchanged. Rollback: revert this PR.

Add toolchain go1.26.10 to go.mod and keep the go 1.23.5 module
minimum. test.yml now takes the Go version from go.mod, the same file
release.yml reads, so test and release builds use the same Go.

Go 1.26.10 fixes GO-2026-6809 (crypto/x509) and the go1.26.9 net/http
set GO-2026-6617, GO-2026-6613, GO-2026-6612, GO-2026-6611, GO-2026-6603.
Five reachable module findings remain; a follow-up PR handles them.
`go install pkg@version` builds outside the module, so it used the
setup-go Go (1.23.5) and golangci-lint refused the 1.26.10 target.
Set GOTOOLCHAIN for that step only.
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Upgrade the modules that govulncheck reports as reachable:
cloudflare/circl v1.6.3, ulikunitz/xz v0.5.17, and aws-sdk-go-v2
service/s3 v1.97.3 (with eventstream v1.7.8).

s3 v1.97.3 and eventstream v1.7.8 declare go 1.24, so the go line
moves from 1.23.5 to 1.24. ProtonMail/go-crypto stays at v1.0.0:
from v1.2.0, clearsign.Decode drops the trailing newline and breaks
the byte-identical InRelease check in production_restore.go.

GO-2026-5932 remains: x/crypto/openpgp has no fix, and go-rpmutils
reaches it.
@bketelsen bketelsen changed the title build(go): upgrade toolchain to Go 1.26.10 fix(deps): build with Go 1.26.10 and upgrade modules with reachable vulnerabilities Oct 21, 2026
@bketelsen
bketelsen merged commit 50fef53 into main Oct 21, 2026
3 checks passed
@frostyard-machines
frostyard-machines deleted the build/go-1.26.10 branch October 30, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant