Repository navigation
fix(security): update Go and x/net vulnerability floors - #2221
Merged
Merged
Conversation
Require Go 1.27.2 throughout the workspace and source builders, and update affected independent modules to golang.org/x/net v0.60.0. Keep builder-pin fixtures aligned without weakening vulnerability gates. Co-authored-by: Mecatl <[email protected]>
Use the first released linter with x/tools v0.50.0 and its V5 unified export-data decoder. Rebuilding v2.13.1 alone retains the v0.49.0 importer and cannot decode the patched toolchain's export data. Align the mecatequi pins and refresh all four release archive checksums. Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Scope the G703 exception to the registry directory chmod. The production caller derives the root from the operator's XDG configuration directory, not server input. Clarify the adjacent mkdir annotation on the same basis. Co-authored-by: Mecatl <[email protected]>
jhrozek
approved these changes
Oct 9, 2026
This was referenced Oct 13, 2026
Merged
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.
Summary
Fix the vulnerability gate independently of #2220, without modifying its branch or suppressing advisories.
go.work. CI, releases, and the reusable action derive Go from these manifests; CI setsGOTOOLCHAIN=local.golang.org/x/netv0.59.0 → v0.60.0 in the seven independently affected modules and their checksums.Investigation
Failed job: https://github.com/stacklok/mecatl/actions/runs/37891769624/job/113694111073
The job used Go 1.27.0 / govulncheck v1.8.0. Rescanning unchanged base
34f485da08490d538944314966b98a76bb333190with the same versions reproduced all 12 symbol-reachable advisories. The Darwin-only diff in #2220 did not introduce them. The failed root scan prevented subsequent module scans from running.All records were checked against authoritative
https://vuln.go.dev/ID/<ID>.jsonrecords. They were published at 2026-10-08 22:31:09 UTC, before the base's successful scan at 23:08:48 UTC. Database visibility/cache drift is the leading explanation, but the exact historical serving/cache mechanism cannot be proven from the retained logs. The gate's “NEW” means “not allowlisted,” not “introduced by this PR.”Paths above come from the matching-toolchain base rescan: historical CI discards raw traces. Static reachability does not establish exploitability/configuration. In particular, 6604 describes a Windows-only issue despite its Linux symbol finding. GO-2026-6609 was import/module-only and GO-2026-5932 module-only, not failures of the reachable gate.
Scope and existing updates
Current main was the same base when work began. Existing dependency PR #1950 and CI-tool PR #1962 do not update these Go or x/net versions.
Updated x/net in root, adapters, driver contracts, engine, OIDC, microVM environment, and microVM integration. The remaining five independent modules import no x/net packages (including tests); their unused transitive graph selections were deliberately left unchanged. All 12 modules get the patched Go floor.
Official Docker golang indexes were resolved and checked by digest for amd64/arm64: both report
GOLANG_VERSION=1.27.2. No scanner changes, allowlist changes, unrelated upgrades, or application refactors.Validation
Passed before push:
GOWORK=off),task tidyand idempotence.Full validation used CI as explicitly requested. Existing CI does not independently vulnerability-scan every nested module; this preexisting coverage gap is not expanded into a CI redesign here. Final current-head checks are green.
Necessary linter compatibility follow-up
The first CI run exposed golangci-lint v2.13.1's inability to decode Go 1.27.2 export format V5. v2.13.2 still uses the incompatible x/tools v0.49.0 importer; rebuilding it alone does not fix this. Upgrade the installer and both mecatequi pins to v2.14.0, the first released version with x/tools v0.50.0/V5 support, and verify all four installer archive checksums against upstream. This is required by the patched Go toolchain, not an unrelated upgrade.
Final CI: head
a02adbbdec303853a51667eb4036f113ed378034Final CI run: 36 passed, 0 failed, 4 expected skips, 0 pending across PR checks.
.gitancestor discovery. Independent security reviews traced source authority, constructors, and callers. With explicit operator approval, added statement-local rationales in credentialstore, clientauth, jsonlstore, and mecatui state discovery; no behavior changes, global rule exclusions, or vulnerability-advisory allowlist changes.