Skip to content

chore: bump vulnerable x/net and x/text in test module - #918

Open
polylane[bot] wants to merge 1 commit into
mainfrom
polylane/autofix/dhukgp230l2s
Open

polylane[bot] wants to merge 1 commit into
mainfrom
polylane/autofix/dhukgp230l2s

Conversation

@polylane

@polylane polylane Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The test module that runs the federation interpreters pinned two indirect Go dependencies below versions with published security fixes. The same dependencies are already fixed in the root module. After this merges, that test module builds and tests with the fixed versions, clearing the reported high-severity advisories. The OSV database lists fixed versions above the pinned ones, and the root module already uses them. The test module builds, vets, and passes its tests on the new versions.

Production impact at 232a0da: Test-module dependency bump touches no deployed resource

Repository lint: make lint (declared in CLAUDE.md) did not finish within its time budget, so its verdict is not known; run it before merging.

Fix walkthrough

Watch the fix walkthrough

Watch the fix explained (1:12). Recorded for commit 232a0da7cd28f3d764d587c64b5cd558ef50db82.

Full analysis
flowchart TD
  A["commit 1f96b6d6f8 adds test/federation-interpreters/go.mod"] --> B["pins x/net v0.56.0 and x/text v0.39.0"]
  B --> C["OSV advisories: fixed in x/net 0.60.0/0.62.0, x/text 0.41.0"]
  C --> D["Trivy reports high severity"]
  D --> E["Fix: go get x/net v0.62.0; MVS raises x/text to v0.43.0"]
  E --> F["go build, vet, test pass; advisories cleared"]
Loading
Detection evidence

Affected: int_17ad4b457001o98datdn4tkm

Out of scope
  • The separate medium finding for go.opentelemetry.io/otel/trace v1.44.0 is tracked on its own.
  • The test module's go1.27.3 toolchain and its standard-library advisory are noted on the issue timeline as a follow-up.

Production impact

I checked the change: it edits only test/federation-interpreters/go.mod and go.sum, which belong to a separate Go test module that builds and runs the federation-interpreter tests. It changes no root-module dependency, no Go source, and no deploy manifest. The module builds, vets, and passes its tests on the new versions.

Checked and not affected (1)
  • network-services-operator

Observability

  • govulncheck -scan=module in test/federation-interpreters shows no x/net or x/text advisories after the change.
  • CI workflow validate-federation-interpreters runs task test-federation-interpreters and will exercise the built module.

Polylane assessed this pull request at 232a0da.

Causal chain
  • Signal (alert): Trivy high-severity advisories with a fixed version in test/federation-interpreters/go.mod
  • Surfacing site: datum-cloud/network-services-operator at test/federation-interpreters/go.mod
  • Mechanism: Test module go.mod pins golang.org/x/net v0.56.0 and golang.org/x/text v0.39.0, both below the OSV fixed versions 0.60.0/0.62.0 and 0.41.0.
  • Producer: datum-cloud/network-services-operator, at test/federation-interpreters/go.mod
  • Last observed: 2026-11-18T06:01:02.000Z
  • Blast radius: unknown other resource(s), unknown other tenant(s); data at risk: none named
  • Producer evidence:
    • OSV records: GO-2026-6860 fixes x/net in 0.62.0; GO-2026-6611/6610/6603/6612/6617 fix x/net in 0.60.0; GO-2026-6629 fixes x/text in 0.41.0.
    • test/federation-interpreters/go.mod pins golang.org/x/net v0.56.0 and golang.org/x/text v0.39.0 (both // indirect).
    • Root go.mod already pins golang.org/x/net v0.62.0 and golang.org/x/text v0.44.0, establishing intent.
    • commit 1f96b6d added test/federation-interpreters/go.mod on 2026-11-17 and no later commit changed the pinned versions.
2 files changed (+19/-19)
  • test/federation-interpreters/go.mod: modified, +5/-5
  • test/federation-interpreters/go.sum: modified, +14/-14

View autofix


Generated by Polylane. You can ask follow-ups by mentioning @polylane in a comment. If you close this pull request without merging, add a comment that says why. Polylane reads it to make its next fixes better.

Raise golang.org/x/net to v0.62.0 and golang.org/x/text to v0.43.0 in
the federation-interpreters test module to clear reported high-severity
advisories. Minimum version selection raises x/text from the advisory's
0.41.0 because x/net v0.62.0 requires v0.43.0.

Key changes:
- Bump golang.org/x/net to v0.62.0 in test/federation-interpreters
- Bump golang.org/x/text to v0.43.0 (and x/sync, x/sys, x/term) via MVS
- Regenerate test/federation-interpreters/go.sum with go mod tidy

Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
@polylane
polylane Bot requested a review from a team as a code owner November 18, 2026 06:08
@polylane polylane Bot added the polylane label Nov 18, 2026
@polylane
polylane Bot requested a review from a team November 18, 2026 06:08
@polylane polylane Bot added the severity:medium Polylane autofix severity: medium label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

polylane severity:medium Polylane autofix severity: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant