Skip to content

chore: resolve cargo audit findings - #1386

Merged
willkill07 merged 1 commit into
NVIDIA:release/0.10from
willkill07:build/release-0.10-cargo-audit
Oct 16, 2026
Merged

willkill07 merged 1 commit into
NVIDIA:release/0.10from
willkill07:build/release-0.10-cargo-audit

Conversation

@willkill07

@willkill07 willkill07 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Overview

Resolve the cargo audit findings on release/0.10: five Quinn protocol advisories and the yanked ZIP dependency warning.

  • 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

  • Update locked quinn-proto from 0.11.15 to 0.11.18, addressing RUSTSEC-2026-0338, RUSTSEC-2026-0339, RUSTSEC-2026-0340, RUSTSEC-2026-0341, and RUSTSEC-2026-0342.
  • Upgrade the CLI's zip dependency from yanked 2.4.2 to 9.0.4, retaining the existing DEFLATE feature configuration.
  • Handle ZIP 9's fallible filename decoding through the extractor's existing error reporting.
  • Regenerate Rust dependency attributions using the repository workflow.

Validation:

  • cargo audit: no vulnerabilities or warnings.
  • env -u NEMO_RELAY_LOG_STDERR_FORMAT just test-rust: all 5,915 tests pass; one stream timeout test passed on retry. The initial run had one diagnostic test failure because the inherited JSON logging setting conflicted with its text-output assertion.
  • Four focused archive extraction tests pass, including unsafe paths, links and special files, member size mismatches, and ZIP bundle extraction.
  • cargo fmt --all -- --check, lockfile freshness, Rust attribution regeneration, and the repository cargo-deny hook pass.
  • Full staged uv run pre-commit run passes, including Clippy, Cargo checks, Rust/Python/npm dependency audits, and attribution verification.

No public API changes. Binding suites were not run because their exposed contracts are unchanged.

Where should the reviewer start?

Start with crates/cli/Cargo.toml and crates/cli/src/plugins/lifecycle/installation.rs for the ZIP upgrade and filename error handling, then review the targeted dependency changes in Cargo.lock. ATTRIBUTIONS-Rust.md is generated.

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

  • Relates to: none

Summary by CodeRabbit

  • Bug Fixes
    • ZIP-based installation now handles unreadable archive entry names safely, reporting an error instead of processing an invalid path.
  • Documentation
    • Updated third-party software attributions and license information.

@willkill07
willkill07 requested review from a team as code owners October 16, 2026 21:25
@github-actions github-actions Bot added size:L PR is large Maintenance CI or Build or general repository maintenance lang:rust PR changes/introduces Rust code labels Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/NeMo-Relay/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Enterprise
  • Run ID: 92ec251c-3f34-4c2b-8866-c1d74463dcd3
📥 Commits

Reviewing files that changed from the base of the PR and between 655c0f8 and 06e5542.

⛔ Files ignored due to path filters: 1
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing: 3
  • ATTRIBUTIONS-Rust.md
  • crates/cli/Cargo.toml
  • crates/cli/src/plugins/lifecycle/installation.rs

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

📜 Recent review details
⏰ Context from checks skipped due to timeout: 15
  • GitHub Check: Rust / Package (linux-musl-arm64)
  • GitHub Check: Rust / Package (linux-amd64)
  • GitHub Check: Rust / Package (macos-arm64)
  • GitHub Check: Rust / Package (linux-musl-amd64)
  • GitHub Check: Rust / Package (windows-arm64)
  • GitHub Check: Rust / Package (linux-arm64)
  • GitHub Check: Rust / Test (macos-arm64)
  • GitHub Check: Rust / Test (windows-arm64)
  • GitHub Check: Rust / Test (windows-amd64)
  • GitHub Check: Rust / Package (windows-amd64)
  • GitHub Check: Rust / Test (linux-arm64)
  • GitHub Check: Rust / Test (linux-amd64)
  • GitHub Check: Check / Run
  • GitHub Check: License Diff / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📚 Code guidelines: 3
CONTRIBUTING.md — configured
.agents/skills/update-project-version/SKILL.md — configured
.agents/skills/maintain-packaging/SKILL.md — configured
📓 Path-based instructions: 3
Applicability reference: AGENTS.md: # NeMo Relay Repository Guidance See `CONTRIBUTING.md` and `docs/contribute/testing-and-docs.mdx` for contributor details, and `.agents/skills/README.md` for the maintainer skill boundary.

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Files:

  • crates/cli/src/plugins/lifecycle/installation.rs
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:

  • crates/cli/Cargo.toml
Source excerpt: Rust `Cargo.toml` package names and workspace metadata

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

Files:

  • crates/cli/Cargo.toml
🪛 markdownlint-cli2 (0.23.3)
ATTRIBUTIONS-Rust.md

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

[warning] 12269-12269: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

[warning] 28635-28635: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

[warning] 38404-38404: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

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

(MD022, blanks-around-headings)

[warning] 38595-38595: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

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

(MD022, blanks-around-headings)

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

(MD022, blanks-around-headings)

[warning] 52517-52517: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

🔇 Additional comments: 3
crates/cli/Cargo.toml: 1

77-77: LGTM!

crates/cli/src/plugins/lifecycle/installation.rs: 1

885-886: LGTM!

ATTRIBUTIONS-Rust.md: 1

12264-12292: LGTM!

Also applies to: 12294-12294, 12296-12296, 12494-12494, 12503-12503, 26587-26587, 28630-28658, 37080-37080, 38398-38623, 52512-52592, 66375-66375, 66377-66377, 66410-66410

Walkthrough

The CLI updates its zip dependency to 9.0.4 and handles ZIP member-name decoding errors during extraction. Rust attribution records add and update package versions and license text, and remove entries for arbitrary and derive_arbitrary.

Changes

Rust Dependency Updates

Layer / File(s) Summary
ZIP dependency and extraction handling
crates/cli/Cargo.toml, crates/cli/src/plugins/lifecycle/installation.rs, ATTRIBUTIONS-Rust.md
The CLI updates zip to 9.0.4 and propagates errors from ZipFile::name() before trimming trailing slashes. The attribution record for zip is updated.
Rust dependency attribution updates
ATTRIBUTIONS-Rust.md
The attribution file adds records for dialoguer, nix, rand_pcg, and typed-path; updates recorded versions for digest, libc, and quinn-proto; and removes entries for arbitrary and derive_arbitrary. It also changes license labels and formatting.

Priority: ➖ Normal

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

Change: Other

Merge Risk: ⚪ Minimal · up to 06e55

No actionable merge-blocking issue is identified; the change is ready for normal merge checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (2 skipped: 2 … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
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.
Title check Passed The title follows Conventional Commits format with the allowed lowercase type chore. It clearly describes the dependency-audit remediation, is 37 characters long, and has no trailing period.
Description check Passed The description includes the required Overview, Details, reviewer guidance, and Related Issues sections. It documents the dependency updates, validation results, test scope, and generated attribution …
Full details: Description check

Explanation

The description includes the required Overview, Details, reviewer guidance, and Related Issues sections. It documents the dependency updates, validation results, test scope, and generated attribution changes. The Related Issues entry states Relates to: none, but the description is otherwise complete and relevant.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (2 skipped: 2 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Fix all pre-merge checks with AI
✨ 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.

@willkill07 willkill07 self-assigned this Oct 16, 2026
@github-actions

Copy link
Copy Markdown

License Diff

Compared against origin/release/0.10.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • nix 0.31.3 (MIT)
  • rand_pcg 0.10.2 (MIT OR Apache-2.0)
  • typed-path 0.12.3 (Apache-2.0)

Removed

  • arbitrary 1.4.2 (Apache-2.0)
  • derive_arbitrary 1.4.2 (Apache-2.0)

Updated/Changed

libc

Before:

  • libc 0.2.185 (Apache-2.0)

After:

  • libc 0.2.190 (Apache-2.0)

quinn-proto

Before:

  • quinn-proto 0.11.15 (MIT OR Apache-2.0)

After:

  • quinn-proto 0.11.18 (MIT OR Apache-2.0)

zip

Before:

  • zip 2.4.2 (MIT)

After:

  • zip 9.0.4 (MIT)

Node

Added

  • None

Removed

  • None

Updated/Changed

  • None

Python

Added

  • None

Removed

  • None

Updated/Changed

  • None
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 (475 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 (115 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/release/0.10 into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (474 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 (115 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.10 milestone Oct 16, 2026
@willkill07 willkill07 changed the title chore: resolve release 0.10 Cargo audit findings chore: resolve cargo audit findings Oct 16, 2026

@Salonijain27 Salonijain27 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.

Approved from a dependency point of view

@github-actions

Copy link
Copy Markdown

@greysonlalonde greysonlalonde 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.

✅

@willkill07
willkill07 merged commit 8bbd2c3 into NVIDIA:release/0.10 Oct 16, 2026
47 checks passed
@willkill07
willkill07 deleted the build/release-0.10-cargo-audit branch October 30, 2026 14:47
@coderabbitai coderabbitai Bot mentioned this pull request Nov 1, 2026
2 tasks done

This branch was previously deployed

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

Labels

lang:rust PR changes/introduces Rust code Maintenance CI or Build or general repository maintenance size:L PR is large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants