Skip to content

chore(deps): update golang to 1.26.6 and x/net, x/text [security] - #47

Merged
nanjingfm merged 1 commit into
alauda-v1.33.7from
fix/go-1.26.6-x-net-x-text-cve
Aug 21, 2026
Merged

chore(deps): update golang to 1.26.6 and x/net, x/text [security]#47
nanjingfm merged 1 commit into
alauda-v1.33.7from
fix/go-1.26.6-x-net-x-text-cve

Conversation

@nanjingfm

Copy link
Copy Markdown

Why

Trivy flags 10 vulnerabilities on the alauda-kubectl binary shipped in
v1.33.8-alauda-18 (built with Go 1.26.5). Downstream images that bundle it —
e.g. devops/sre-agent — now fail their CI image-scan gate, and there is no
newer release to bump to.

Component From To CVEs
Go toolchain 1.26.5 1.26.6 CVE-2026-33818, CVE-2026-39821, CVE-2026-46600, CVE-2026-56853, CVE-2026-56858, CVE-2026-56859, CVE-2026-56860, CVE-2026-56862
golang.org/x/net v0.55.0 v0.56.0 CVE-2026-46600
golang.org/x/text v0.37.0 v0.39.0 CVE-2026-56852

What changed

  • .go-version, go.mod, go.work: Go 1.26.5 → 1.26.6. The release workflow
    reads go-version-file: go.mod, so this is what re-builds the binary.
  • golang.org/x/net and golang.org/x/text pinned via hack/pin-dependency.sh,
    vendor tree regenerated with hack/update-vendor.sh.
  • x/sys, x/sync, x/term, x/tools move with them as transitive
    requirements of the pinned versions.
  • No source changes — deps and vendor only.

Verification

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o alauda-kubectl ./cmd/kubectl
go version -m alauda-kubectl   # go1.26.6, x/net v0.56.0, x/text v0.39.0
trivy rootfs --severity MEDIUM,HIGH,CRITICAL --scanners vuln alauda-kubectl
# 83 packages scanned, 0 vulnerabilities

Only the linux/amd64 build was verified locally; linux/arm64 is deps-identical
and left to CI.

Please cut a v1.33.8-alauda-19 release once merged so downstream consumers can bump.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MTqNN7RSb7Jh9VjNx3VP7C

Rebuild kubectl with Go 1.26.6 and bump golang.org/x/net to v0.56.0 and
golang.org/x/text to v0.39.0 to clear the vulnerabilities Trivy flags on
the alauda-kubectl binary shipped in v1.33.8-alauda-18.

Go stdlib (fixed in 1.26.6):
  CVE-2026-33818, CVE-2026-39821, CVE-2026-46600, CVE-2026-56853,
  CVE-2026-56858, CVE-2026-56859, CVE-2026-56860, CVE-2026-56862
golang.org/x/net v0.55.0 -> v0.56.0: CVE-2026-46600
golang.org/x/text v0.37.0 -> v0.39.0: CVE-2026-56852

x/sys, x/sync, x/term and x/tools move with them as transitive
requirements of the pinned versions. Vendor tree regenerated with
hack/update-vendor.sh; no source changes.

Verified: `go build ./cmd/kubectl` with GOOS=linux GOARCH=amd64 produces a
go1.26.6 binary that `trivy rootfs --severity MEDIUM,HIGH,CRITICAL` reports
as clean (83 packages, 0 vulnerabilities).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MTqNN7RSb7Jh9VjNx3VP7C
@nanjingfm
nanjingfm merged commit cc4500f into alauda-v1.33.7 Aug 21, 2026
1 check passed
@nanjingfm
nanjingfm deleted the fix/go-1.26.6-x-net-x-text-cve branch August 21, 2026 02:29
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