Repository navigation
Upgrade Go to 1.27.4 to fix GO-2026-6859 - #854
Merged
Merged
Conversation
- The nightly govulncheck fails on master: Go 1.27.3 is affected by GO-2026-6859 in net/http, which the agent reaches through several HTTP client and server paths. - make upgrade-klone picks up Go 1.27.4 from cert-manager/makefile-modules#802, plus new base-static and base-static-csi digests, the kyverno ValidatingPolicy change from cert-manager/makefile-modules#812 and tool bumps. - golangci-lint v2.15.0 reports a loop variable named delete as shadowing the builtin, so rename it to name in two tests. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Richard Wall <richard.wall@cyberark.com>
wallrj-cyberark
commented
Nov 25, 2026
wallrj-cyberark
left a comment
Contributor
Author
There was a problem hiding this comment.
Everything under make/_shared/ and klone.yaml is generated by make upgrade-klone. The only hand-written change is the variable rename in dynamic_test.go.
| # https://go.dev/dl/ | ||
| # renovate: datasource=golang-version packageName=go | ||
| VENDORED_GO_VERSION := 1.27.3 | ||
| VENDORED_GO_VERSION := 1.27.4 |
Contributor
Author
There was a problem hiding this comment.
This is the fix for GO-2026-6859. The workflow reads this value through make print-go-version, so setup-go installs 1.27.4 too.
| // a delete event in the informers. Add 1 to wg making "sure" (https://github.com/kubernetes/kubernetes/issues/95372) | ||
| // the informers cache are sync | ||
| for ns, delete := range tc.deleteObjects { | ||
| for ns, name := range tc.deleteObjects { |
Contributor
Author
There was a problem hiding this comment.
golangci-lint v2.15.0 now flags delete here as shadowing the builtin (predeclared). The value is an object name, so name describes it better anyway. Same change at line 1364.
wallrj-cyberark
requested review from
SgtCoDFish and
mladen-rusev-cyberark
and removed request for
SgtCoDFish
November 26, 2026 14:12
mladen-rusev-cyberark
approved these changes
Nov 26, 2026
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.
The nightly govulncheck workflow has failed on master every night since at least 21 November (latest run 45518220710). This PR fixes it by upgrading Go to 1.27.4.
Go 1.27.3 is affected by GO-2026-6859 in
net/http. govulncheck finds that the agent reaches it from several places, includingclient.NGTSClient.updateAccessTokenandservicediscovery.Client.DiscoverServices. Go 1.27.4 fixes it.make upgrade-klonepicks up Go 1.27.4 from cert-manager/makefile-modules#802. It also brings in:base-staticandbase-static-csidigests for the release images;make/_shared/helm);golangci-lint v2.15.0 reports two loop variables named
deleteinpkg/datagatherer/k8sdynamic/dynamic_test.goas shadowing the builtin. I renamed them toname.How I tested it
make verify-govulncheckpasses: "Your code is affected by 0 vulnerabilities".make verifypasses, including golangci-lint and the kyverno policy checks.make test-unitpasses: 467 tests, 4 skipped.Prior art: #851, the upgrade to Go 1.27.3.
[with Claude]