Skip to content

fix(deps): patch OpenTelemetry vulnerability GO-2026-6974 - #530

Merged
hossain-rayhan merged 1 commit into
documentdb:mainfrom
hossain-rayhan:rhossain/update-go-vulnerability-dependencies
Dec 1, 2026
Merged

hossain-rayhan merged 1 commit into
documentdb:mainfrom
hossain-rayhan:rhossain/update-go-vulnerability-dependencies

Conversation

@hossain-rayhan

Copy link
Copy Markdown
Collaborator

Summary

Fix GO-2026-6974 in the operator's existing OpenTelemetry dependencies.
This is a dependency-only maintenance PR based directly on main, separate
from the declarative shared-runtime changes in #528.

The advisory concerns bypass of AttributeValueLengthLimit through U+FFFD
runes and excessive attribute-memory retention. It does not establish an
operator authentication bypass or data breach.

Minimal dependency changes

  • Upgrade go.opentelemetry.io/otel/sdk and otel/trace from v1.45.0 to
    v1.47.0
    , the first fixed version.
  • Align otel and otel/metric to v1.47.0 as required by those modules.
  • Let go mod tidy select the required log/test/YAML dependencies and refresh
    checksums in the four modules that replace the operator with the local source.
  • Leave OTLP exporters at v1.45.0; this advisory does not require upgrading them.

Only ten go.mod/go.sum files change. No operator/controller/API code,
Go-toolchain versions, chart, runtime images or workflows change.

Validation

  • All six govulncheck jobs pass locally, using the same v1.10.0 scanner:
    operator, sidecar injector, kubectl plugin, shared tests, e2e and longhaul.
  • No reachable symbol vulnerabilities remain. Govulncheck still lists some
    non-reachable dependency advisories; this is not a claim that every required
    module is advisory-free.
  • Operator: full unit/race suite, vet, build and pinned lint with no new findings.
  • Kubectl plugin, shared helper and longhaul unit tests pass; e2e helper tests
    pass and all e2e test packages compile without invoking a live cluster.
  • Production operator Dockerfile builds successfully with the new graph.
  • go mod tidy -diff and go mod verify pass for all five changed modules.

Merge order

Merge this independent maintenance fix before #528, then update #528 from main
and rerun its checks. No vulnerability checks are disabled or suppressed here.

Upgrade the operator OTel SDK, trace, metric and root modules to v1.47.0 for GO-2026-6974. Refresh required transitive dependencies and local-consumer checksums; leave OTLP exporters, Go toolchains and application code unchanged. All six govulncheck module scans pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 33b3cb3c-1b25-4ffb-bff1-ebf0f3d04058
Signed-off-by: Rayhan Hossain <hossain.rayhan@outlook.com>

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.

🟢 Approval recommended

No active review issues block the dependency-only OpenTelemetry security update.

No open issues 🎉

What changed in this PR

This dependency-only maintenance PR addresses OpenTelemetry vulnerability GO-2026-6974 in the DocumentDB operator, separately from the shared-runtime work in #528. No application code, toolchain versions, charts, images, or workflows change.

Changes:

  • Upgrade OpenTelemetry SDK and trace dependencies to v1.47.0 and align required modules, while retaining OTLP exporters at v1.45.0.
  • Update supporting log, test, and YAML dependencies.
  • Refresh dependency checksums across the operator and four modules that use its local source.
File Description
test/​shared/​go.sum Refresh shared-test dependency checksums.
test/​shared/​go.mod Update the indirect YAML dependency.
test/​longhaul/​go.sum Refresh longhaul dependency checksums.
test/​longhaul/​go.mod Update the indirect YAML dependency.
test/​e2e/​go.sum Refresh end-to-end test dependency checksums.
test/​e2e/​go.mod Update the indirect YAML dependency.
operator/​src/​go.sum Record upgraded telemetry and supporting dependency checksums.
operator/​src/​go.mod Upgrade OpenTelemetry and supporting dependencies.
documentdb-kubectl-plugin/​go.sum Refresh plugin checksums and remove unused entries.
documentdb-kubectl-plugin/​go.mod Update the indirect YAML dependency.

Review effort: Balanced

@documentdb-triage-tool documentdb-triage-tool Bot added dependencies Pull requests that update a dependency file ecosystem go Pull requests that update go code labels Nov 30, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

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

Reasoning

component from path globs (dependencies, kubectl-plugin); P0 keyword "vulnerability" in title; effort from diff stats (86+95 LOC, 10 files)

If a label is wrong, ping @patty-chow so the rules can be tuned. Issues with component labels are left alone; PR component labels are reconciled from changed paths on every run.

@hossain-rayhan
hossain-rayhan merged commit 5762f5d into documentdb:main Dec 1, 2026
123 of 159 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants