Repository navigation
chore: update dependencies flagged by security audits - #1490
Conversation
Signed-off-by: Bryan Bednarski <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
WalkthroughThe dependency overrides pin updated Node.js package versions and add a constrained ChangesDependency Version Updates
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Possibly related PRs
Merge Risk: ⚪ Minimal · up to
|
License DiffCompared against Lockfile license changesLockfile License ChangesRustAdded
Removed
Updated/Changed
NodeAdded
Removed
Updated/Changed
|
Revert the dependency updates in aacd1ff. Dependency audit remediation is reviewed separately in PR NVIDIA#1490. Signed-off-by: Bryan Bednarski <[email protected]>
#### 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]>
#### 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]>
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.
Details
filelock>=4.2.1,<5. LiteLLM 1.106.2, the latest published release checked, requiresfilelock<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.Validation
uv audit --locked: no known vulnerabilities or adverse project statuses in 159 packages.npm audit: zero vulnerabilities.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