Skip to content

fix: bump Go dependencies to address CVEs#183

Merged
kezhenxu94 merged 6 commits intoapache:masterfrom
kezhenxu94:fix/cve-2026-03-20
Mar 20, 2026
Merged

fix: bump Go dependencies to address CVEs#183
kezhenxu94 merged 6 commits intoapache:masterfrom
kezhenxu94:fix/cve-2026-03-20

Conversation

@kezhenxu94
Copy link
Copy Markdown
Member

Summary

Bump vulnerable Go dependencies in the adapter module to address multiple CVEs:

Changes

  • Updated adapter/go.mod and adapter/go.sum with bumped dependencies
  • Updated Go version directive from 1.25.5 to 1.25.8
  • Verified build passes with CGO_ENABLED=0 go build ./...

- google.golang.org/grpc v1.61.0 → v1.79.3 (CVE-2026-33186)
- go.opentelemetry.io/otel/sdk v1.22.0 → v1.40.0 (CVE-2026-24051)
- Go 1.25.5 → 1.25.8 (CVE-2026-25679, CVE-2026-27142)
Copilot AI review requested due to automatic review settings March 20, 2026 04:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the adapter module’s Go toolchain version directive and dependency graph to remediate reported CVEs (notably in google.golang.org/grpc and go.opentelemetry.io/otel/sdk).

Changes:

  • Bumped adapter module’s Go version directive to 1.25.8.
  • Updated key vulnerable Go dependencies (e.g., google.golang.org/grpc, go.opentelemetry.io/otel/sdk) and related transitive modules.
  • Refreshed go.sum to match the updated module resolution.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
adapter/go.mod Updates Go version directive and bumps vulnerable dependencies to newer versions.
adapter/go.sum Updates checksum entries to reflect the new resolved dependency versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adapter/go.mod
@@ -1,6 +1,6 @@
module github.com/apache/skywalking-swck/adapter

Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This PR updates the Go version directive in adapter/go.mod to 1.25.8 to address stdlib CVEs, but the repo still has another module pinned to 1.25.5 (operator/go.mod). If the patch-level Go bump is required for the CVE remediation, please bump the Go version consistently across all Go modules (or document why only the adapter module needs it).

Suggested change
// This module explicitly targets Go 1.25.8 to pick up stdlib CVE fixes.
// Other modules in this repo (e.g., operator) may remain on 1.25.5 if they
// do not build binaries or exercise the affected stdlib code paths.

Copilot uses AI. Check for mistakes.
- Fix adapter/go.mod: use 'go 1.25' + 'toolchain go1.25.8' (patch version not valid in go directive)
- Fix E2E: upgrade Elasticsearch 7.5.1 → 8.18.8 and add xpack.security.enabled=false
  since ES 8 enables security by default
cert-manager v1.8.0 (EOL since 2023) was causing e2e test failures
where the skywalking-swck-system operator pod never became Ready.
The root cause is that cert-manager v1.8.0's admission webhook
appears to fail silently in newer GitHub Actions runner environments
(ubuntu-latest updated since March 2026), preventing the Certificate
resource from being processed and the TLS secret from being issued.

cert-manager v1.11.5 is the latest version compatible with
Kubernetes v1.21.10 (used by kind in the e2e tests).
kustomize edit set image with a tagless image name leaves the existing
newTag (v0.8.0) in config/manager/kustomization.yaml intact, causing
the operator deployment to request controller:v0.8.0 while kind only
has controller:latest loaded — resulting in ImagePullBackOff and the
pod never becoming Ready.

Using controller:latest explicitly forces kustomize to set newTag:latest,
ensuring the locally loaded image is used.
Add actions/upload-artifact@v4 on failure to all e2e jobs so logs are
preserved for debugging. Only the internal-storage job had this before.
gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0 is no longer accessible
(gcr.io Container Registry was deprecated). The project moved to
quay.io/brancz/kube-rbac-proxy. Updating to v0.18.1 from the
correct registry fixes ErrImagePull for the operator sidecar.
@kezhenxu94 kezhenxu94 merged commit 81eae97 into apache:master Mar 20, 2026
15 checks passed
@kezhenxu94 kezhenxu94 deleted the fix/cve-2026-03-20 branch March 20, 2026 08:54
@kezhenxu94 kezhenxu94 restored the fix/cve-2026-03-20 branch March 21, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants