Repository navigation
[PRODENG-3757] Fix CVEs in x/crypto, x/mod, and grpc - #666
Merged
Merged
Conversation
golang.org/x/crypto v0.54.0 -> v0.57.0. Fixes 3 govulncheck-reachable x/crypto/ssh DoS vulnerabilities (GO-2026-6355, GO-2026-6354, GO-2026-6303), all reached via mke.Exec -> rig.Connection.Connect -> ssh.Dial. One remaining govulncheck finding, GO-2026-5932 (x/crypto/openpgp unmaintained, reached via Helm chart signature verification and version.GetLatest), has no upstream fix and is not actionable by a version bump. golang.org/x/mod v0.38.0 -> v0.41.0 (CVE-2026-56864, CVE-2026-56865) and google.golang.org/grpc v1.82.1 -> v1.84.0 (CVE-2026-84303, CVE-2026-84304, CVE-2026-84445), both flagged by Aikido's open_source scan. Neither CVE appears in the govulncheck database for this codebase's call graph, but both are bumped for a clean SCA scan. go mod tidy pulled in matching transitive bumps to golang.org/x/net, x/sync, x/sys, x/term, x/text, and x/tools. Signed-off-by: James Nesbitt <[email protected]>
james-nesbitt
added a commit
that referenced
this pull request
Sep 20, 2026
v3.21.4 migrated pkg/provenance from golang.org/x/crypto/openpgp to the maintained github.com/ProtonMail/go-crypto/openpgp fork (matching helm/helm#32463, backported from dev-v3 per helm/helm#32361). Confirmed via go mod why that this was the only path pulling x/crypto/openpgp into launchpad's build (pkg/helm -> helm.sh/helm/v3/pkg/action -> helm.sh/helm/v3/pkg/provenance -> x/crypto/openpgp), and that launchpad has no direct import of the package itself. govulncheck ./... now reports 0 reachable vulnerabilities (previously 1: GO-2026-5932, "Fixed in: N/A", the one advisory left unresolved after the earlier x/crypto/x/mod/grpc bump in #666). make security-scan exits 0. Kept to the v3.21.x patch line rather than v3.22.0, which would likely force a k8s.io/* dependency bump unrelated to this fix; a version bump to v3.22 can be considered separately once these CI fixes are merged. Signed-off-by: James Nesbitt <[email protected]>
james-nesbitt
added a commit
that referenced
this pull request
Sep 20, 2026
* [PRODENG-3758] Drop paths-ignore from pr.yml to fix zero-job failures
pr.yml set both paths and paths-ignore on the same pull_request trigger,
which GitHub's docs explicitly disallow ("You cannot use both the paths
and paths-ignore filters for the same event in a workflow"). This made
GitHub reject the whole workflow file at parse time before scheduling any
job, producing "likely failed because of a workflow file issue" with zero
jobs and zero check-runs on every run.
Confirmed via full run history (218 runs) that every pr.yml run has failed
this way since paths-ignore was introduced in #615 (2026-03-26). A prior
fix (removing both paths and paths-ignore) was authored the same day but
never merged into main.
This keeps the paths include filter and drops only paths-ignore.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Remove integration-test job from pr.yml
test/integration/integration_test.go's TestMain provisions real AWS
infrastructure (Terraform VPC/subnets/node groups) and does a real
Product.Apply cluster install -- the same category of work as the
label-gated smoke tests, not a lightweight component-level test.
Unlike smoke-tests.yaml, this job had no AWS credentials wired in, no
label gate, and ran on ubuntu-latest (no instance profile). It
unconditionally attempted a real terraform apply with no way to
authenticate, hanging on AWS SDK/Terraform credential-discovery retries
until the 20-minute go test timeout killed it. This was invisible for 6
months because pr.yml never scheduled any jobs until the paths-ignore fix
in this same branch.
Per user direction, the launchpad integration test should not run in GHA
at all. `make integration-test` remains available for local/manual use.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Use golangci-lint-action instead of make lint in pr.yml
The lint job's "make lint" step assumed golangci-lint was already on
PATH, but the arc-runner-set-mirantis-public runner image has no Go
tooling pre-installed beyond what actions/setup-go supplies per workflow.
The job failed unconditionally with "golangci-lint: No such file or
directory" once pr.yml could actually schedule jobs again (see prior
commits in this branch).
golangci-lint's own official action installs and runs the binary in one
step, the same pattern security-scan already uses for govulncheck (go
install golang.org/x/vuln/cmd/govulncheck@latest). Filed and closed
Mirantis/arc#44: baking golangci-lint into the shared runner image isn't
the right fix since nothing else on that image is pre-baked either (Go
itself comes from actions/setup-go); this belongs in the consuming
workflow.
version: v2.13 matches this repo's .golangci.yml schema version ("2").
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Fix gofumpt: remove unnecessary parens in hosts.go returns
pkg/product/mke/config/hosts.go had two gofumpt-flagged 'return (x)'
statements with unnecessary parens (Find, Index). Pre-existing on main,
never caught before because pr.yml's lint job couldn't run at all until
the fixes earlier in this branch. golangci-lint-action's summary output
only surfaced one of the two; confirmed both via 'gofumpt -d' directly.
make lint now reports 0 issues.
Signed-off-by: James Nesbitt <[email protected]>
* [PRODENG-3758] Bump helm.sh/helm/v3 to v3.21.4 to clear GO-2026-5932
v3.21.4 migrated pkg/provenance from golang.org/x/crypto/openpgp to the
maintained github.com/ProtonMail/go-crypto/openpgp fork (matching
helm/helm#32463, backported from dev-v3 per helm/helm#32361). Confirmed
via go mod why that this was the only path pulling x/crypto/openpgp into
launchpad's build (pkg/helm -> helm.sh/helm/v3/pkg/action ->
helm.sh/helm/v3/pkg/provenance -> x/crypto/openpgp), and that launchpad
has no direct import of the package itself.
govulncheck ./... now reports 0 reachable vulnerabilities (previously 1:
GO-2026-5932, "Fixed in: N/A", the one advisory left unresolved after the
earlier x/crypto/x/mod/grpc bump in #666). make security-scan exits 0.
Kept to the v3.21.x patch line rather than v3.22.0, which would likely
force a k8s.io/* dependency bump unrelated to this fix; a version bump to
v3.22 can be considered separately once these CI fixes are merged.
Signed-off-by: James Nesbitt <[email protected]>
---------
Signed-off-by: James Nesbitt <[email protected]>
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
Bump
golang.org/x/crypto,golang.org/x/mod, andgoogle.golang.org/grpcto fix Aikido-flagged and govulncheck-confirmed CVEs.Why
govulncheck ./...onmainconfirms 4 reachable vulnerabilities ingolang.org/x/cryptov0.54.0; Aikido separately flags 8open_sourceissues across these 3 modules.How
golang.org/x/cryptov0.54.0 -> v0.57.0: fixes GO-2026-6355, GO-2026-6354, GO-2026-6303 (ssh DoS on deadlocked channel, reached viamke.Exec->rig.Connection.Connect->ssh.Dial). GO-2026-5932 (x/crypto/openpgpunmaintained, reached via Helm chart signature verification) has no upstream fix and remains open.golang.org/x/modv0.38.0 -> v0.41.0 (CVE-2026-56864, CVE-2026-56865)google.golang.org/grpcv1.82.1 -> v1.84.0 (CVE-2026-84303, CVE-2026-84304, CVE-2026-84445) — supersedes Bump google.golang.org/grpc from 1.82.1 to 1.83.1 #660go mod tidypulled matching transitive bumps tox/net,x/sync,x/sys,x/term,x/text,x/toolsTesting
make unit-testpasses locallygovulncheck ./...before/after confirms 3 of 4 reachable CVEs resolved; the 4th (x/crypto/openpgp) has no available fixLinks
Checklist