Skip to content

[PRODENG-3757] Fix CVEs in x/crypto, x/mod, and grpc - #666

Merged
james-nesbitt merged 1 commit into
mainfrom
PRODENG-3757-security
Sep 18, 2026
Merged

james-nesbitt merged 1 commit into
mainfrom
PRODENG-3757-security

Conversation

@james-nesbitt

@james-nesbitt james-nesbitt commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

What

Bump golang.org/x/crypto, golang.org/x/mod, and google.golang.org/grpc to fix Aikido-flagged and govulncheck-confirmed CVEs.

Why

govulncheck ./... on main confirms 4 reachable vulnerabilities in golang.org/x/crypto v0.54.0; Aikido separately flags 8 open_source issues across these 3 modules.

How

  • golang.org/x/crypto v0.54.0 -> v0.57.0: fixes GO-2026-6355, GO-2026-6354, GO-2026-6303 (ssh DoS on deadlocked channel, reached via mke.Exec -> rig.Connection.Connect -> ssh.Dial). GO-2026-5932 (x/crypto/openpgp unmaintained, reached via Helm chart signature verification) has no upstream fix and remains open.
  • golang.org/x/mod v0.38.0 -> v0.41.0 (CVE-2026-56864, CVE-2026-56865)
  • google.golang.org/grpc v1.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 #660
  • go mod tidy pulled matching transitive bumps to x/net, x/sync, x/sys, x/term, x/text, x/tools

Testing

  • make unit-test passes locally
  • govulncheck ./... before/after confirms 3 of 4 reachable CVEs resolved; the 4th (x/crypto/openpgp) has no available fix

Links

Checklist

  • Tests added or updated
  • Docs updated if user-visible behaviour changed
  • No debug output or dead code left in

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 james-nesbitt added the smoke-modern Run modern smoke test label Sep 18, 2026
@james-nesbitt
james-nesbitt merged commit e750cec into main Sep 18, 2026
18 checks passed
@james-nesbitt
james-nesbitt deleted the PRODENG-3757-security branch September 18, 2026 19:18
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

smoke-modern Run modern smoke test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant