Skip to content

fix: address govulncheck dependency vulnerabilities - #468

Merged
xgerman merged 1 commit into
documentdb:mainfrom
alaye-ms:alaye/fix-govulncheck-2026-10-08
Oct 9, 2026
Merged

xgerman merged 1 commit into
documentdb:mainfrom
alaye-ms:alaye/fix-govulncheck-2026-10-08

Conversation

@alaye-ms

@alaye-ms alaye-ms commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Update vulnerable dependencies to their reported fixed versions and synchronize go.mod/go.sum across all six Go modules. No application code, workflow, or Go version changes.

Dependency Updated version Advisories addressed
OpenTelemetry SDK and OTLP trace exporters v1.45.0 GO-2026-6505
github.com/google/cel-go v0.30.0 GO-2026-6094
github.com/klauspost/compress v1.18.7 GO-2026-5841
golang.org/x/crypto v0.56.0 GO-2026-6354, GO-2026-6355
golang.org/x/mod v0.40.0 GO-2026-6179, GO-2026-6180

Necessary transitive updates are resolved with go mod tidy, including modules that replace the operator/shared helpers with local paths.

Verification

Scanned on 2026-10-08 with govulncheck v1.6.0 and the module-selected Go 1.26.6 toolchain.

  • govulncheck ./... passes in all six modules with zero reachable vulnerabilities and zero vulnerable imported packages.
  • go build ./... passes in all six modules.
  • go test ./... passes in operator/src, sidecar-injector, documentdb-kubectl-plugin, test/shared, and test/longhaul.
  • go test -run "^$" ./... passes in test/e2e: all suites compile; live-cluster integration tests were not executed.
  • git diff --check passes.

Remaining Advisory

GO-2026-5932 flags the unmaintained golang.org/x/crypto/openpgp package at every version and has no fixed release. It remains a module-only warning in test/e2e, test/longhaul, and test/shared. None of those modules import the affected OpenPGP packages, and govulncheck does not report reachable or imported-package exposure. The advisory is not suppressed.

The new branch was created from alaye/main, then fast-forwarded to current upstream main before applying the fix. Commit carries the required DCO sign-off.

Update OpenTelemetry, CEL, compression, SSH, and sumdb dependencies to fixed versions and synchronize all six Go modules.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Alexander Laye <[email protected]>
@alaye-ms
alaye-ms marked this pull request as ready for review October 8, 2026 20:59
Copilot AI balanced review requested due to automatic review settings October 8, 2026 20:59

Copilot AI 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.

🟡 Changes recommended

The stated x/mod remediation remains incomplete in the operator, shared, and long-haul modules.

1 open finding
What changed in this PR

Updates Go dependencies to remediate reported vulnerabilities across the repository’s six modules.

Changes:

  • Upgrades OpenTelemetry, CEL, compression, cryptography, and related transitive dependencies.
  • Refreshes module checksums.
  • Leaves golang.org/x/mod v0.38.0 in three modules despite declaring v0.40.0 as the remediation.
File Description
test/​shared/​go.mod Updates shared-test dependencies.
test/​shared/​go.sum Refreshes shared-test checksums.
test/​longhaul/​go.mod Updates long-haul dependencies.
test/​longhaul/​go.sum Refreshes long-haul checksums.
test/​e2e/​go.mod Updates E2E dependencies, including x/mod.
test/​e2e/​go.sum Refreshes E2E checksums.
operator/​src/​go.mod Updates operator dependencies.
operator/​src/​go.sum Refreshes operator checksums.
operator/​cnpg-plugins/​sidecar-injector/​go.mod Updates the compression dependency.
operator/​cnpg-plugins/​sidecar-injector/​go.sum Refreshes sidecar checksums.
documentdb-kubectl-plugin/​go.mod Updates plugin transitive dependencies.
documentdb-kubectl-plugin/​go.sum Refreshes plugin checksums.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/e2e/go.mod
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/mod v0.38.0 // indirect
golang.org/x/crypto v0.56.0 // indirect
golang.org/x/mod v0.40.0 // indirect
@documentdb-triage-tool documentdb-triage-tool Bot added bug Something isn't working dependencies Pull requests that update a dependency file ecosystem go Pull requests that update go code labels Oct 8, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: dependencies, ecosystem, go, bug
Project fields suggested: Component dependencies · Priority P0 · Effort L · Status Ready
Confidence: 0.95 (deterministic)

Reasoning

component from path globs (dependencies, kubectl-plugin); P0 keyword "vulnerabilities" in title; effort from diff stats (121+130 LOC, 12 files)

If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

@xgerman
xgerman merged commit 2dc690b into documentdb:main Oct 9, 2026
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file ecosystem go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants