Skip to content

chore(deps): crypto and SQL crates are reachable only through their owners - #724

Draft
PiquelChips wants to merge 1 commit into
mainfrom
chore/deny-bans
Draft

PiquelChips wants to merge 1 commit into
mainfrom
chore/deny-bans

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

What and why

deny.toml now bans the crates whose use is meant to be confined, so just audit fails on a new path to them:

Crate Allowed through (wrappers)
ring none
sha2 sqlx-core, sqlx-macros-core, sqlx-postgres (SQLx's SCRAM sign-in)
rand opentelemetry_sdk, sqlx-postgres, webauthn-rs-core
openssl webauthn-attestation-ca, webauthn-authenticator-rs, webauthn-rs-core, and auth-service
aws-lc-rs sourceorigin-crypto, rustls, rustls-webpki, rcgen
sqlx sourceorigin-repository, sourceorigin-common

The lists are the real graph from cargo deny --all-features check bans, not the intent, so two entries are wider than the stated rule:

  • auth-service depends on openssl directly. It names the crate only for its vendored feature (see its manifest comment) and never calls it, but cargo-deny sees a direct dependency.
  • rcgen, a dev-dependency of auth-service that makes test certificates, brings aws-lc-rs as well as the TLS crates.

ring is not in the dependency graph, sha2 0.11 and rand 0.10 appear in Cargo.lock but not in the graph the audit walks, so the bans would catch them if a feature pulled them in. The Rust conventions and the just audit description say what the audit now checks.

Testing

cargo deny --locked --all-features check bans passes, and just docs passes.

Note

Written by Claude Sonnet 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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

Labels

None yet

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant