Repository navigation
build: move the operator build to Go 1.24 (CVE-2025-68121) - #803
Open
davidcurrie wants to merge 1 commit into
Open
davidcurrie wants to merge 1 commit into
davidcurrie wants to merge 1 commit into
Conversation
The published operator image is built with Go 1.22, which carries CVE-2025-68121 (crypto/tls, incorrect certificate validation during TLS session resumption). The fix was backported to Go 1.24.13 and 1.25.7 only, so 1.22 will not receive it and rebuilding the current line cannot clear it. v1.11.7 is affected identically to v1.11.6 — both compile with go1.22.12 — so upgrading between releases does not help either. The lint workflow already runs on Go 1.24; this brings the Dockerfile, go.mod and the test workflow to match. Verified by building the image and scanning the binary: CVE-2025-68121 is gone and the binary reports stdlib v1.24.13. No source changes were needed. Signed-off-by: David Currie <david.currie@spartacommodities.com>
|
|
This branch has not been deployed
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.
What
Moves the operator build from Go 1.22 to Go 1.24, clearing CVE-2025-68121 from the published image.
Why
starrocks/operatoris built with Go 1.22, which carries CVE-2025-68121 — incorrect certificate validation during TLS session resumption incrypto/tls.The fix was backported to Go 1.24.13 and 1.25.7 only. Go 1.22 is several majors past end of support and did not receive it, so the current line cannot pick it up by rebuilding — moving the toolchain is the fix.
Upgrading between releases does not help either.
v1.11.7compiles with the same Go asv1.11.6:Changes
Dockerfile:FROM golang:1.22 as build→golang:1.24go.mod:go 1.22→go 1.24.0.github/workflows/action-make-test.yml:go-version: 1.22→1.24.github/workflows/action-golangci-lint.ymlis already ongo-version: 1.24and is unchanged — this brings the build and test paths in line with the linter rather than introducing a new Go version to the project.The runtime base,
starrocks/static-debian11:nonroot, is untouched. The change is confined to the compiled binary.Verification
Built the image from this branch for
linux/amd64and scanned it:The build succeeds with no source changes.
Context
We run the operator on EKS, where it is scanned at runtime by the Trivy Operator. It currently shows as an unfixable critical because no released version resolves it. Since the operator is a long-lived in-cluster process with broad RBAC over StarRocks resources, we would rather not suppress the finding or maintain a private build.
Happy to target Go 1.25 instead if that suits your support window better.