Skip to content

fix(deps): upgrade Go to 1.27.4, go-jose/v4 to v4.1.6, x/net and x/crypto for CVE remediation - #5252

Merged
saisagar1998 merged 3 commits into
v3.5.12_releasefrom
cve-fixes-v3.5.12
Nov 16, 2026
Merged

saisagar1998 merged 3 commits into
v3.5.12_releasefrom
cve-fixes-v3.5.12

Conversation

@saisagar1998

@saisagar1998 saisagar1998 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Description

CVE fixes for the v3.5.12 patch release:

  • github.com/go-jose/go-jose/v4 v4.1.4 -> v4.1.6 (CVE-2026-116587, CVE-2026-116586, CVE-2026-116585).
  • Go 1.27.2 -> 1.27.4 (GO-2026-6859 net/http, GO-2026-6809 crypto/x509).
  • golang.org/x/net v0.60.0 -> v0.62.0 (GO-2026-6866, GO-2026-6860).
  • golang.org/x/crypto v0.57.0 -> v0.59.0 (GO-2026-5932). This also pulls x/sys v0.50.0, x/text v0.44.0 and x/sync v0.25.0 (minimum versions required by the new x/crypto).
  • go.opentelemetry.io/otel (otel, otel/sdk, otel/trace, otel/metric, otel/sdk/metric, otel/exporters/stdout/stdouttrace) v1.45.0 -> v1.47.0 (GHSA-q7gw-24fr-5p69).
  • Cherry-picks refactor(cmd): replace global initializers with lazy PersistentPreRunE #3994 (refactor(cmd): replace global initializers with lazy PersistentPreRunE) so ./cmd unit tests do not accumulate global Cobra OnInitialize callbacks and time out in CI.

On this branch the Go version is pinned in .go-version, go.mod, the Dockerfiles, and scripts under tools/ and perfmetrics/; all are updated.

Link to the issue in case of a bug fix.

b/585033791

Testing details

  1. Manual - go build ./... (amd64 and arm64), go vet ./... and go mod tidy (no diff). govulncheck -mode=binary on a go1.27.4 build: no vulnerabilities found. osv-scanner: no issues.
  2. Unit tests - go test -p 1 ./cmd/... ./internal/... passed, except the internal/fs tests StressTest.CreateInParallel_NoTruncate and StressTest.CreateInParallel_Truncate, which fail the same way on v3.5.11.
  3. Integration tests - Perf test via label. E2E tests run in the release pipeline.

Perf Test Results

File Size Branch Read BW Write BW RandRead BW RandWrite BW
0.25 MiB Master 488.46 MiB/s 1.18 MiB/s 75.93 MiB/s 1.11 MiB/s
PR 509.51 MiB/s (+4.3%) 1.27 MiB/s (+7.6%) 78.25 MiB/s (+3.1%) 1.24 MiB/s (+11.7%)
48.828 MiB Master 4457.93 MiB/s 70.13 MiB/s 1483.59 MiB/s 70.13 MiB/s
PR 4474.58 MiB/s (+0.4%) 71.04 MiB/s (+1.3%) 1461.41 MiB/s (-1.5%) 70.40 MiB/s (+0.4%)
976.562 MiB Master 4390.86 MiB/s 33.77 MiB/s 1143.94 MiB/s 39.14 MiB/s
PR 4396.32 MiB/s (+0.1%) 32.43 MiB/s (-4.0%) 1106.04 MiB/s (-3.3%) 38.83 MiB/s (-0.8%)

Any backward incompatible change? If so, please explain.

N/A

@saisagar1998
saisagar1998 requested a review from a team as a code owner November 16, 2026 07:38
@saisagar1998
saisagar1998 requested review from meet2mky and removed request for a team November 16, 2026 07:38
@saisagar1998 saisagar1998 added execute-perf-test Execute performance test in PR execute-integration-tests Run only integration tests labels Nov 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades the Go version from 1.27.2 to 1.27.4 across the repository, including Dockerfiles, Go module files, and various testing and installation shell scripts. It also updates several Go dependencies. Feedback is provided on run-gke-tests.sh to refactor a complex shell command chain into an explicit if block to improve readability and avoid unexpected behavior with environment variables.

#3994)

* remove global initializers from cobra

* review fixes: wrap error based on failures

(cherry picked from commit e557052)
@saisagar1998 saisagar1998 removed the execute-integration-tests Run only integration tests label Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.30435% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (v3.5.12_release@28979e8). Learn more about missing BASE report.

Files with missing lines Patch % Lines
cmd/root.go 91.30% 2 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             v3.5.12_release    #5252   +/-   ##
==================================================
  Coverage                   ?   85.97%           
==================================================
  Files                      ?      148           
  Lines                      ?    15838           
  Branches                   ?        0           
==================================================
  Hits                       ?    13617           
  Misses                     ?     2220           
  Partials                   ?        1           
Flag Coverage Δ
unittests 85.97% <91.30%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kislaykishore kislaykishore left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Minor nit: consider updating the PR title to also reflect the OpenTelemetry v1.47.0 upgrade and the #3994 cherry-pick before squash-merging.

@saisagar1998
saisagar1998 merged commit ed6fdc0 into v3.5.12_release Nov 16, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

execute-perf-test Execute performance test in PR

3 participants