Repository navigation
fix(deps): build with Go 1.27.4 for its security fixes - #254
Merged
Merged
Conversation
Go 1.27.3's net/http has GO-2026-6859, and govulncheck fails on it. Go 1.27.4 fixes it (https://pkg.go.dev/vuln/GO-2026-6859). Move every 1.27.3 pin to 1.27.4: go.mod's go line, the Makefile GO_VERSION, the CI and nightly-compliance go-version inputs, both development Dockerfiles, mise.lock (official go.dev checksums) and the docs that name the pin. Go 1.27.4 rejects the soname form -l:libpam.so.0 in #cgo LDFLAGS (https://go.dev/s/invalidflag), so internal/auth/pam now links with -lpam. Every build workflow and both development images already install libpam0g-dev, and the binary still records NEEDED libpam.so.0.
ubuntu-latest runners now run Ubuntu 26.04 (resolute), but the arm64 source from ports.ubuntu.com was pinned to noble. apt then mixed amd64 resolute and arm64 noble packages and failed with "libpam0g:amd64 Breaks libpam0g:arm64", which broke the arm64 build in ci.yml, packaging.yml, release.yml and snapshot.yml. Read the suite from /etc/os-release instead. TestArm64PortsSuiteFollowsRunnerRelease fails on a hard-coded suite or a quoted heredoc.
On the ubuntu-latest image (Ubuntu 26.04), the cross-arch install from the resolute ports archive wants to downgrade the runner's installed toolchain (E: Packages were downgraded and -y was used without --allow-downgrades), and a cgo binary built there links against a newer glibc than on 24.04, where these jobs passed. Pin the build jobs of ci.yml, packaging.yml, release.yml and snapshot.yml to ubuntu-24.04. The guard now decodes each workflow, checks only the run text of the one step that writes the ports source (an executable codename line before the heredoc, an unquoted heredoc, no literal suite) and the pinned runner of its job, with negative cases for a commented-out, missing or late assignment (docs/design/engineering-lessons.md#scope-guard-assertions-to-the-exact-region-under-test).
On the ubuntu-latest image (Ubuntu 26.04), the 4 INT subtests of TestUCoreOrchestratorForwardsSignalsAndWaits time out, while the TERM subtests pass; the test passes on 24.04 and locally with Go 1.27.4. Pin both jobs to ubuntu-24.04 until #255 finds the cause.
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Go 1.27.3's
net/httphas GO-2026-6859. Go 1.27.4 fixes it, andgovulncheckfails on 1.27.3.What
1.27.3pin to1.27.4:go.mod(go line; no toolchain line, no sub-modules),MakefileGO_VERSIONand a comment, the 6go-versioninputs in.github/workflows/ci.yml,.github/workflows/nightly-compliance.yml,.devcontainer/Dockerfile,.docker/Dockerfile,mise.lock(version, URLs and the official checksums fromhttps://go.dev/dl/?mode=json), anddocs/design/agent-workflows.md.git grep 1.27.3is now empty. Thestableinputs in the release, snapshot, packaging and image-tier workflows are unchanged.internal/auth/pam/pam.go: Go 1.27.4 rejects the soname form-l:libpam.so.0in#cgo LDFLAGS(invalid flag in #cgo LDFLAGS: -l:libpam.so.0, see https://go.dev/s/invalidflag; a minimal probe builds on 1.27.3 and fails on 1.27.4). It now links with-lpam. This needs thelibpam.sodevelopment link fromlibpam0g-dev; every build workflow (ci.yml,packaging.yml,release.yml,snapshot.yml,image-tier.yml,nightly-compliance.yml, including the arm64 cross builds) and both development images already install it.readelf -don a builtpilothousedstill showsNEEDED libpam.so.0, which the packages declare throughlibpam0g. Without this change, thestablerelease and snapshot workflows also fail oncestableresolves to 1.27.4.docs/design/overview.md: the native build dependency note names the-lpamlink.ubuntu-latestrunners now run Ubuntu 26.04 (resolute), but the arm64 source fromports.ubuntu.comwas pinned tonoble. apt mixed amd64resoluteand arm64noblepackages and failed (libpam0g:amd64=1.7.0-5ubuntu3.2 Breaks libpam0g:arm64 (!= 1.7.0-5ubuntu3.2),E: Unable to satisfy dependencies) in "Build (linux, arm64)" and "Build and verify packages".ci.yml,packaging.yml,release.ymlandsnapshot.ymlnow read the suite from/etc/os-release(VERSION_CODENAME) with an unquoted heredoc. The same break would fail the next release and snapshot.resolutesuite, apt on the 26.04 image then wanted to downgrade the runner's installed toolchain (E: Packages were downgraded and -y was used without --allow-downgrades; the installed amd64 packages are newer than theresolutearchive). A cgo binary built there would also link against a newer glibc than on 24.04, where these jobs passed until 2026-11-09. So the 4 cross-build jobs (ci.ymlbuild,packaging.ymlpackages,release.ymlgoreleaser,snapshot.ymlsnapshot) now pinruns-on: ubuntu-24.04; on it the codename resolves tonoble, as before. Other jobs keepubuntu-latest.INT/...subtests ofTestUCoreOrchestratorForwardsSignalsAndWaitstime out in Unit Tests and Race Detection (theTERM/...subtests pass). The test passes on 24.04 and locally with Go 1.27.4, so the cause is the image, not this bump; test: TestUCoreOrchestratorForwardsSignalsAndWaits INT cases time out on the Ubuntu 26.04 runner #255 tracks it.ci.ymlunit-testandrace-testpinruns-on: ubuntu-24.04until test: TestUCoreOrchestratorForwardsSignalsAndWaits INT cases time out on the Ubuntu 26.04 runner #255 is resolved.internal/workflowcheck/arm64_ports_test.go.TestArm64PortsSuiteFollowsRunnerReleasedecodes the 4 workflows, finds the 1 step that writes the ports source, and checks itsruntext only (an executablecodenameline before the heredoc, an unquoted heredoc, no literal suite) and that its job runs onubuntu-24.04.TestCheckArm64PortsRuncovers the checker with negative cases: a commented-out, missing or late assignment, a quoted heredoc, a literalnoblesuite, no source file..memory/corrections.jsonlgets 1 line for the review finding that the first guard matched text anywhere in the file.Risk paths
Matched against the base's
.github/risk-paths.jsonfromgit diff --name-only origin/main...HEAD:.github/workflows/ci.yml,.github/workflows/nightly-compliance.yml(L2): thego-versioninput changes from1.27.3to1.27.4..github/workflows/ci.yml,.github/workflows/packaging.yml,.github/workflows/release.yml,.github/workflows/snapshot.yml(L2): the arm64 ports source takes its suite from the runner's/etc/os-releaseinstead of the literalnoble, and the cross-build job pinsruns-on: ubuntu-24.04instead ofubuntu-latest. Inci.yml,unit-testandrace-testalso pinubuntu-24.04(test: TestUCoreOrchestratorForwardsSignalsAndWaits INT cases time out on the Ubuntu 26.04 runner #255); their steps and permissions are unchanged. The URI, components, architecture and keyring are unchanged. No permission, secret, trigger or job changes.Makefile(L2): onlyGO_VERSIONand a comment change. No gate changes.mise.lock(L1): only the Go entry changes, to the official go.dev SHA-256 values for 1.27.4.internal/auth/pam/pam.go(L1): only the#cgolink flag and its comment change. The PAM code, the conversation function and the authentication flow are unchanged; the linked library and its runtime soname are the same.Checks
origin/maincopies of the 4 workflows,go test ./internal/workflowcheck/ -run TestArm64PortsSuiteFollowsRunnerReleasefails (ci.yml: no executable line assigns codename from VERSION_CODENAME,job "build" runs on "ubuntu-latest", want the pinned "ubuntu-24.04", literal suitenoble); a commented-out assignment inci.ymlalone also fails it; with this PR it passes. The Go bump and the-lpamflag are exempt (a toolchain bump; the build itself fails without the flag change).No vulnerabilities found) pass. This host has nolibpam0g-devorlibsystemd-dev, so the PAM link used a temporary-Lshim directory with alibpam.solink, and the-tags sdjournaljournal tests and thepilothousedsdjournal build run only in CI.