Skip to content

chore: update dependencies flagged by security audits - #1490

Merged
willkill07 merged 1 commit into
NVIDIA:mainfrom
bbednarski9:bbednarski/dependency-audit-updates
Oct 24, 2026
Merged

willkill07 merged 1 commit into
NVIDIA:mainfrom
bbednarski9:bbednarski/dependency-audit-updates

Conversation

@bbednarski9

@bbednarski9 bbednarski9 commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

Update dependencies flagged by the repository-wide security audits. This isolates dependency maintenance from the automatic OpenTelemetry diagnostics work in #1489 so it can be reviewed and merged first.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

Dependency Previous Updated
virtualenv 21.14.12 21.14.13
filelock 3.25.2 4.2.4
zod 4.4.3 4.6.6
body-parser 2.3.0 2.4.0
fast-uri 3.1.8 3.1.9
undici 8.10.2 8.12.2
qs 6.16.0 6.16.1
  • Carry the virtualenv/Zod audit remediation previously included in fix: record skipped automatic exporters in typed diagnostics #1489.
  • Address the subsequent filelock and body-parser CI findings, plus fast-uri and undici findings reported by the current npm audit. The qs patch update is required by body-parser 2.4.0.
  • Add OpenClaw-scoped overrides for Zod and Undici because OpenClaw pins their vulnerable versions. Keep the existing OpenClaw version.
  • Add a documented uv override filelock>=4.2.1,<5. LiteLLM 1.106.2, the latest published release checked, requires filelock<4, while GHSA-v4x8-3wr5-3wq8 is fixed in 4.2.1. This deliberately overrides that upstream cap; review this major-version compatibility choice. Remove the override when LiteLLM permits patched releases.
  • Regenerate both lockfiles and their attribution documents. The diff is limited to six manifest, lockfile, and attribution files.

Validation

  • uv audit --locked: no known vulnerabilities or adverse project statuses in 159 packages.
  • npm audit: zero vulnerabilities.
  • Repository pre-commit hooks passed, including lockfile consistency, license checks, generated attributions, and dependency audits.
  • With filelock 4.2.4: checked FileLock and SoftFileLock exclusion, timeout, and release; Hugging Face WeakFileLock; and LiteLLM/Google ADK LiteLlm construction. These targeted checks passed; they do not establish compatibility with every downstream filelock API.
  • OpenClaw typechecking passed; unit tests: 83 passed, 3 skipped, using cached generated Node binding artifacts.
  • Full language suites were not rerun for this dependency-only change.

Where should the reviewer start?

Review the security overrides in pyproject.toml and package.json, especially the LiteLLM/filelock version constraint, then the narrow package version changes in uv.lock and package-lock.json.

After this PR merges, rebase #1489 onto main and drop its overlapping dependency commit.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Summary by CodeRabbit

  • Chores
    • Updated recorded third-party component versions for the Node.js and Python environments.
    • Refreshed package version constraints, including Node.js package pins and Python compatibility bounds.
    • The changes are limited to package metadata and attribution records; no application behavior or public interfaces changed.

@bbednarski9
bbednarski9 requested review from a team as code owners October 24, 2026 00:25
@github-actions github-actions Bot added size:S PR is small Maintenance CI or Build or general repository maintenance labels Oct 24, 2026
@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 71cd5d8 and cfff916.

⛔ Files ignored due to path filters: 2
  • package-lock.json is excluded by !**/package-lock.json
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing: 4
  • ATTRIBUTIONS-Node.md
  • ATTRIBUTIONS-Python.md
  • package.json
  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout: 27
  • GitHub Check: Python / Package (windows-amd64)
  • GitHub Check: Node.js / Package (macos-arm64)
  • GitHub Check: Node.js / Test (macos-arm64)
  • GitHub Check: Node.js / Package (linux-arm64)
  • GitHub Check: Node.js / Test (windows-arm64)
  • GitHub Check: Python / Package (linux-musl-amd64)
  • GitHub Check: Node.js / Test (linux-arm64)
  • GitHub Check: Node.js / Package (linux-musl-arm64)
  • GitHub Check: Node.js / Package (linux-musl-amd64)
  • GitHub Check: Node.js / Package (windows-arm64)
  • GitHub Check: Python / Package (linux-musl-arm64)
  • GitHub Check: Node.js / Package (windows-amd64)
  • GitHub Check: Python / Package (windows-arm64)
  • GitHub Check: Python / Package (macos-arm64)
  • GitHub Check: Python / Package (linux-arm64)
  • GitHub Check: Node.js / Package (linux-amd64)
  • GitHub Check: Python / Test (macos-arm64)
  • GitHub Check: Python / Test (windows-amd64)
  • GitHub Check: Python / Test (windows-arm64)
  • GitHub Check: Node.js / Test (windows-amd64)
  • GitHub Check: Python / Package (linux-amd64)
  • GitHub Check: Node.js / Test (linux-amd64)
  • GitHub Check: Python / Test (linux-arm64)
  • GitHub Check: Node.js / Package OpenClaw plugin
  • GitHub Check: Python / Test (linux-amd64)
  • GitHub Check: Check / Run
  • GitHub Check: License Diff / Run
🧰 Additional context used
📚 Code guidelines: 3
RELEASING.md — auto-discovered
.agents/skills/maintain-packaging/SKILL.md — configured
.agents/skills/update-project-version/SKILL.md — configured
📓 Path-based instructions: 4
Applicability reference: AGENTS.md: # NeMo Relay Repository Guidance Keep release-process policy in maintainer sources such as `RELEASING.md` and Source excerpt: The Python package version is derived at packaging time.

📄 CodeRabbit inference engine (RELEASING.md)

Files:

  • pyproject.toml
Source excerpt: Node workspace metadata in root `package.json` and `package-lock.json`

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Files:

  • package.json
Source excerpt: Python packaging in `pyproject.toml`

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Files:

  • pyproject.toml
Source excerpt: Python surfaces use PEP 440 translations where required; Cargo, npm, and plugin manifests use the repository SemVer form.

📄 CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • pyproject.toml
  • package.json
🪛 markdownlint-cli2 (0.23.3)
ATTRIBUTIONS-Node.md

[warning] 5328-5328: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

[warning] 15784-15784: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

[warning] 16473-16473: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

🔇 Additional comments: 4
package.json: 1

22-24: LGTM!

ATTRIBUTIONS-Node.md: 1

7402-7402: LGTM!

Also applies to: 13159-13159

ATTRIBUTIONS-Python.md: 1

2689-2689: LGTM!

Also applies to: 11994-11994

pyproject.toml: 1

146-146: 🗄️ Data Integrity & Integration

Verify downstream compatibility with filelock 4.x.

This override forces filelock>=4.2.1,<5 while LiteLLM declares <4. Keep the override only if the supported LiteLLM and integration workflows are compatible with filelock 4.x.

Walkthrough

The dependency overrides pin updated Node.js package versions and add a constrained filelock version for Python. The generated attribution files record updated versions for five Node.js packages and two Python packages.

Changes

Dependency Version Updates

Layer / File(s) Summary
Node.js dependency versions
package.json, ATTRIBUTIONS-Node.md
The openclaw overrides pin zod to 4.6.6 and undici to 8.12.2. The Node.js attributions record updated versions for body-parser, fast-uri, qs, undici, and zod.
Python dependency versions
pyproject.toml, ATTRIBUTIONS-Python.md
The uv overrides add filelock>=4.2.1,<5. The Python attributions record filelock version 4.2.4 and virtualenv version 21.14.13.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • NVIDIA/NeMo-Relay#1476: Adds litellm>=1.106.2 to the Google ADK test group. This PR addresses the related filelock version constraint.
Merge Risk: ⚪ Minimal · up to cfff9

No confirmed issue remains that should block merging. Filelock compatibility beyond the reported targeted checks remains unverified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title uses the allowed lowercase chore type, follows Conventional Commits syntax, stays under 72 characters, has no trailing period, and accurately summarizes the dependency security updates.
Description check Passed The description includes all required template sections, completed contribution and duplication checks, detailed dependency changes, validation results, reviewer guidance, and a valid `Relates to #148…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description includes all required template sections, completed contribution and duplication checks, detailed dependency changes, validation results, reviewer guidance, and a valid Relates to #1489 reference.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

License Diff

Compared against origin/main.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • None

Removed

  • None

Updated/Changed

  • None

Node

Added

  • None

Removed

  • None

Updated/Changed

body-parser

Before:

  • body-parser 2.3.0 (MIT)

After:

  • body-parser 2.4.0 (MIT)

fast-uri

Before:

  • fast-uri 3.1.8 (BSD-3-Clause)

After:

  • fast-uri 3.1.9 (BSD-3-Clause)

qs

Before:

  • qs 6.16.0 (BSD-3-Clause)

After:

  • qs 6.16.1 (BSD-3-Clause)

undici

Before:

  • undici 8.10.2 (MIT)

After:

  • undici 8.12.2 (MIT)

zod

Before:

  • zod 4.4.3 (MIT)

After:

  • zod 4.6.6 (MIT)

Python

Added

  • None

Removed

  • None

Updated/Changed

filelock

Before:

  • filelock 3.25.2 (MIT)

After:

  • filelock 4.2.4 (MIT)

virtualenv

Before:

  • virtualenv 21.14.12 (MIT)

After:

  • virtualenv 21.14.13 (MIT)
Status output
[license-diff] selected languages: rust, node, python
[license-diff] generating current inventory
[license-diff] current: generating Rust inventory
[license-diff] current: Rust inventory complete (487 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (424 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (158 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/main into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (487 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (424 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (158 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@willkill07 willkill07 added this to the 0.11 milestone Oct 24, 2026
@willkill07
willkill07 merged commit 5def88c into NVIDIA:main Oct 24, 2026
45 checks passed
bbednarski9 added a commit to bbednarski9/NeMo-Relay that referenced this pull request Oct 24, 2026
Revert the dependency updates in aacd1ff. Dependency audit remediation is reviewed separately in PR NVIDIA#1490.

Signed-off-by: Bryan Bednarski <[email protected]>
willkill07 added a commit that referenced this pull request Oct 24, 2026
#### Overview

Close the gap between successful plugin activation and skipped automatic
OpenTelemetry exporters. A rejected trace, log, or metric exporter now
contributes structured initialization evidence to the layered runtime
diagnostics surface, while healthy exporters continue operating.

This follows merged #1487 and makes partial observability setup failures
discoverable through the same diagnostics model used for plugin
ownership, failure classification, and retained history.

Dependency audit remediation is reviewed separately in #1490 and has
been removed from this PR's net diff. After #1490 merges, rebase this PR
onto main, omitting both the original dependency commit (`aacd1ff7`) and
its removal commit (`4f82320d`) so the dependency fixes remain on main.

- [x] I confirm this contribution is my own work, or I have the right to
submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does
not duplicate existing work.

#### Details

**1. Preserve the cause from exporter construction through diagnostics**

- Retain typed endpoint, transport-policy, TLS-validation, and
TLS-file-read causes internally.
- Record `plugin.exporter_initialization_failed` with activation phase
and warning severity. Classify proven input failures as `invalid_input`,
plaintext-policy rejection as `policy_rejected`, and TLS file-read
failures as `io`. Causes available only as backend strings remain
`unknown`.
- Share a safe explanation with the activation report, including both
HTTP allowlist configuration options. New diagnostic evidence excludes
credentials, sensitive URL components, TLS file paths, and PEM content.

See [cause classification and automatic subscriber
activation](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/src/observability/plugin_component.rs#L2173).

**2. Integrate with layered ownership, admission, and retention**

- Use bounded identities for `opentelemetry.automatic.traces`,
`opentelemetry.automatic.logs`, and `opentelemetry.automatic.metrics`,
retaining the originating plugin's ownership.
- Close each scoped recorder after the failed initialization attempt.
Retained counters remain selectable when recent-event capacity is zero.
- Preserve nonfatal activation, healthy signals, and existing warnings
when diagnostics are disabled or admission fails. State-only recording
avoids duplicate log projections.
- Document collection and retention limits: the evidence describes
initialization history, with availability governed by enabled/admitted
collection and bounded retention.

See [nonfatal activation
recording](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/src/plugin.rs#L1144).

**3. Preserve the existing exporter API contract**

- Keep the public `OpenTelemetryError` variant set,
`ExporterBuild(String)` behavior, and TLS file-read display text
unchanged. Typed causes remain crate-private until converted at public
API boundaries.
- Preserve diagnostic snapshot wire shape and binding reader APIs.
- Add one `CommonPluginFailureCode` catalogue variant for exporter
initialization; exhaustive Rust matches on that enum must account for
it. The addition does not require a catalogue-version bump.

See [public and internal error
types](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/src/observability/otel.rs#L141)
and [public-constructor compatibility
coverage](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/tests/unit/observability/otel_tls_tests.rs#L1193).

**4. Cover production activation**

- Exercise rejected HTTP traces alongside healthy metrics through the
production plugin host, plus endpoint/TLS classifications, signal
isolation, ownership, admission, and retention without recent events.

**Validation**

- The five dependency manifest, lockfile, and attribution files match
main exactly after removal. Diagnostics source, tests, and documentation
are unchanged; the diagnostics results below are from earlier
validation.
- Focused diagnostics and public API regressions: **10 passed**. Earlier
catalogue/wire-model checks: **32 passed**.
- Full `just test-rust`: **6,511 passed, 1 failed, 4 skipped**. The
previously observed [CLI
assertion](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/cli/tests/cli_tests.rs#L4573)
still expects `error_kind=io` while the command emits JSON
`"error_kind":"io"`.
- Repository hooks were rerun for dependency removal. Both `uv audit`
and `npm audit` fail on dependencies inherited from main; remediation is
isolated in #1490. Other applicable hooks passed.
- Standalone Python, Node binding, and Go suites were not run; their
exposed contracts are unchanged.

#### Where should the reviewer start?

Start with [`automatic_exporter_failure` and
`automatic_subscriber`](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/src/observability/plugin_component.rs#L2173),
then follow
[`record_nonfatal_activation_failure`](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/src/plugin.rs#L1144)
into the layered diagnostics model.

The [production host
tests](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/tests/unit/observability/plugin_component_tests.rs#L8887)
demonstrate the original partial-activation gap and retained evidence.
The [public error compatibility
test](https://github.com/NVIDIA/NeMo-Relay/blob/4f82320d075fc202e5055ae0f2c6de5d2f9d7178/crates/core/tests/unit/observability/otel_tls_tests.rs#L1193)
guards the API boundary.

#### Related Issues: (use one of the action keywords Closes / Fixes /
Resolves / Relates to)

- Relates to #1487.
- Relates to #1448.
- Relates to #1490 (dependency audit prerequisite).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Failed automatic OpenTelemetry exporters now appear as nonfatal,
per-signal activation warnings and, when diagnostics are enabled and
recording is available, as diagnostic observations. Other signals can
continue operating.
* Diagnostics classify failures such as invalid configuration, rejected
plaintext destinations, and file-read errors. Sensitive endpoint,
header, and certificate details are redacted.

* **Bug Fixes**
* Invalid endpoints and malformed header values now receive more
specific error classifications.

* **Documentation**
* Updated observability and diagnostics references to explain exporter
failure reporting and its limits.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Signed-off-by: Bryan Bednarski <[email protected]>
Co-authored-by: Will Killian <[email protected]>
willkill07 added a commit that referenced this pull request Oct 24, 2026
#### Overview

Resolve the Python, npm, and Rust dependency audit failures on
`release/0.10` using the same package versions as #1490 and the Tokio
fix already present in its base from #1481.

- [x] I confirm this contribution is my own work, or I have the right to
submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does
not duplicate existing work.

#### Details

- Update filelock to 4.2.4 and virtualenv to 21.14.13. This release
branch has no LiteLLM dependency, so the filelock override from #1490 is
unnecessary.
- Update body-parser to 2.4.0, fast-uri to 3.1.9, qs to 6.16.1, undici
to 8.12.2, and zod to 4.6.6; preserve the OpenClaw version with the same
overrides as #1490.
- Require Tokio 1.53.3 across all workspace consumers, preserving
existing features and default-feature settings, to resolve
RUSTSEC-2026-0386 for workspace builds and downstream consumers.
- Regenerate the Python, Node.js, and Rust attributions with the
repository workflows, using CI-pinned cargo-about 0.9.1 for Rust.

Validation:

- `uv audit --locked`, `npm audit --audit-level=low`, and `cargo deny
--locked --all-features check` passed.
- `NEMO_RELAY_LOG_STDERR_FORMAT=human just test-rust`: 5,942 passed, one
skipped.
- Repository pre-commit hooks passed, including targeted rechecks after
attribution generation. Checks covered lockfile freshness, FFI header
synchronization, benchmark fmt/clippy, license policy, documentation
links, and generated attributions.
- Verified the seven updated Python/npm package records match #1490
exactly, and all 20 Tokio dependency entries require `^1.53.3` with
unchanged feature settings.
- Separate Python, Node.js, and Go suites were not run; binding APIs and
implementations are unchanged.

#### Where should the reviewer start?

Start with `package.json` and the Python/npm lockfile changes for #1490
parity, then `Cargo.toml` and Tokio dependency inheritance for the #1481
backport.

#### Related Issues: (use one of the action keywords Closes / Fixes /
Resolves / Relates to)

- Relates to: none
- Backports dependency updates from #1490 and the Tokio security fix
from #1481 to `release/0.10`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Chores**
* Updated third-party dependency versions, including Tokio and several
JavaScript and Python packages.
* Standardized Tokio version management across the project while
preserving existing feature selections.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Will Killian <[email protected]>

This branch was previously deployed

1 inactive deployment
fern — cfff9161 Deployed Oct 24, 2026 by willkill07 via Clean up docs preview #6508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI or Build or general repository maintenance size:S PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants