Fix CVE vulnerabilities: upgrade Go 1.22→1.26 and dependencies - #50
Merged
Merged
Conversation
Upgrade Go from 1.22/1.23 to 1.26.4, and bump google.golang.org/grpc (v1.65.0 → v1.79.3), github.com/docker/cli (v27.1.1 → v29.2.0), go.opentelemetry.io/otel/sdk (v1.28.0 → v1.43.0), golang.org/x/net (v0.28.0 → v0.48.0), and golang.org/x/oauth2 (v0.21.0 → v0.34.0) to resolve all Trivy-reported CVEs including CRITICAL CVE-2026-33186 and CVE-2025-68121. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
* Fix Go version mismatch in Dockerfiles after CVE upgrade The CVE fix (20fc630) bumped go.mod to Go 1.26.4 and updated the main Dockerfile, but missed Dockerfile.webhook, Dockerfile.worker, and Dockerfile.kmm-operator-build which still referenced Go 1.23. This caused "go.mod requires go >= 1.26.4 (running go 1.23.5)" build failures. Also updates the alpine variant from 3.19 to 3.24 to match Go 1.26 availability, and fixes FROM/AS casing lint warnings. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com> * Add all image build targets to root CI sanity job Replace dummy-sanity-job with sanity-build target that depends on all 4 image builds (operator, webhook, worker, signer). This catches Dockerfile and build issues at PR time instead of nightly build time. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4 <noreply@anthropic.com>
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
go.modand all DockerfilesFROM ... as→FROM ... AScasing lint warningsCherry-picked from pensando/kernel-module-management:
20fc630Fix CVE vulnerabilities by upgrading Go and dependencies8a253a0Fix Go version mismatch in Dockerfiles after CVE upgradeConflicts resolved by substituting internal registry references (
registry.test.pensando.io:5000/golang:1.26) with the equivalent public images (docker.io/golang:1.26). The pensando-internal.job.ymlCI file was excluded as it has no equivalent in this repo.Test plan
docker buildsucceeds forDockerfile,Dockerfile.webhook,Dockerfile.worker,Dockerfile.kmm-operator-build,Dockerfile.signimagego build ./...passes with Go 1.26