Skip to content

nexus: add cargo-deny, drop rustls-pemfile, move parser to edition 2024 - #5092

Open
heavycrystal wants to merge 1 commit into
mainfrom
nexus-deny-and-pemfile
Open

heavycrystal wants to merge 1 commit into
mainfrom
nexus-deny-and-pemfile

Conversation

@heavycrystal

@heavycrystal heavycrystal commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
  • Add nexus/deny.toml with a license allow-list and ignores for the unfixable chrono advisory and the rsa 0.9 advisory; mark workspace crates publish = false so cargo-deny skips them for licensing
  • Run cargo deny in rust-lint.yml, installed via taiki-e/install-action with checksum verification
  • Replace unmaintained rustls-pemfile (RUSTSEC-2025-0134) with the rustls-pki-types PemObject API for TLS cert/key loading
  • Bump parser to edition 2024 to match the rest of the workspace
  • Fix the Rust crate list in docs/peerdb-architecture.md

Merge order

  • The cargo-deny job will fail on advisories until Lock file maintenance #5045 merges. Its lockfile refresh pulls in the fixed libz-sys, zstd, zstd-safe and pulldown-cmark (RUSTSEC-2026-0391, -0398, -0403, -0418, -0433, -0544).
  • After Update cargo dependencies #5055 merges (rsa 0.10), the RUSTSEC-2023-0071 ignore in deny.toml no longer matches anything and should be removed.

- Add nexus/deny.toml with a license allow-list and ignores for the
  unfixable chrono advisory and the rsa 0.9 advisory; mark workspace
  crates publish = false so cargo-deny skips them for licensing
- Run cargo deny in rust-lint.yml, installed via taiki-e/install-action
  with checksum verification
- Replace unmaintained rustls-pemfile (RUSTSEC-2025-0134) with the
  rustls-pki-types PemObject API for TLS cert/key loading
- Bump parser to edition 2024 to match the rest of the workspace
- Fix the Rust crate list in docs/peerdb-architecture.md
@heavycrystal
heavycrystal requested a review from a team as a code owner November 18, 2026 07:39
@claude

claude Bot commented Nov 18, 2026

Copy link
Copy Markdown

Code review

Found 1 issue:

nexus/deny.toml (license allow-list, L7-L24): the new cargo-deny CI job fails on this PR's own head commit.

The cargo-deny job concluded FAILURE on head commit 0dce6fa, while the sibling clippy job in the same workflow run passed — so it is not an infra flake.

The likely cause: the allow-list does not include OpenSSL, but nexus/Cargo.lock contains aws-lc-sys 0.46.0 (pulled in via aws-lc-rs ← rustls), whose license expression is ISC AND (Apache-2.0 OR ISC) AND OpenSSL. Since the job runs with --all-features and [licenses.private] ignore = true only exempts the workspace's own publish = false crates (not third-party ones), cargo deny check licenses rejects aws-lc-sys.

Suggested fix: add "OpenSSL" to the [licenses].allow list (or add a licenses.exceptions entry for aws-lc-sys). I could not read the job log from this environment, so it is worth confirming there that this is the only failure before merging.

Checked for bugs and CLAUDE.md compliance (including .claude/REVIEW.md rules: no new secret/PII logging; dependency changes reviewed — rustls-pki-types stays resolved at 1.15.1, only the manifest floor moves to 1.9; no changed files fall under docs/tricky-areas.md paths). No other issues found.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant