Skip to content

fix: bump go to 1.26.10 and runtime base to distroless static-debian13 for CVE-2026-111943 - #114

Merged
phisco merged 2 commits into
crossplane-contrib:mainfrom
jakubramut:fix/bump-go-1.26.10-main
Nov 9, 2026
Merged

phisco merged 2 commits into
crossplane-contrib:mainfrom
jakubramut:fix/bump-go-1.26.10-main

Conversation

@jakubramut

Copy link
Copy Markdown
Contributor

Description of your changes

Bumps Go to 1.26.10 on main to pick up the crypto/x509 fix for CVE-2026-111943 (GO-2026-6809) and moves the runtime base gcr.io/distroless/static-debian12:nonroot -> static-debian13:nonroot, since distroless no longer updates -debian12 tags. This is the main counterpart of #113 and mirrors
crossplane-contrib/function-patch-and-transform#379. CI currently builds /function with go1.25.4, and govulncheck reports go1.26.10 as the first fixed version, with no 1.25.x patch.

GOLANGCI_VERSION moves v2.6.2 → v2.11.4 as in #113, because v2.6.2 refuses the module: can't load config: the Go language version (go1.25) used to build golangci-lint is lower than the targeted Go version (1.26.10). main's .golangci.yml uses default: all, so modernize, which is not enabled on release-0.3, then reports 8 newexpr
findings in fn_test.go. Those ptr.To("...") calls become Go 1.26 new("..."). The change is test-only.

go.mod moves go 1.25.0 → go 1.26.10 as in #113 and #379, so every build of the module needs a 1.26.10+ toolchain. That flips four default GODEBUG settings from their 1.25 values: cryptocustomrand, httpservecontentmaxranges, tlssecpmlkem, urlstrictcolons.

Tests

Local, Go 1.26.10:

  • go mod tidy: no diff
  • golangci-lint v2.11.4 config verify and run: 0 issues
  • go test -v -cover ./...: 21 --- PASS, 0 --- FAIL
  • govulncheck ./...: 25 reachable findings on main with go1.25.4 → 6. GO-2026-6809 no longer appears. The remaining 6 are not addressed here: 4 in golang.org/x/net (fixed in v0.60.0) and 2 in google.golang.org/grpc (fixed in v1.82.1 and v1.83.1).
  • docker build --platform linux/amd64 --build-arg GO_VERSION=1.26.10 --target image: the image's /function is built with go1.26.10 on Debian 13, runs as nonroot:nonroot, and --help exits 0

I have:

…to distroless static-debian13

Signed-off-by: Jakub Ramut <jakub@upbound.io>
…expr

Signed-off-by: Jakub Ramut <jakub@upbound.io>
@phisco
phisco merged commit 60a80cc into crossplane-contrib:main Nov 9, 2026
6 checks passed
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.

2 participants