Repository navigation
chore(deny): tighten multiple-versions, wildcards, sources; deny openssl - #1126
Merged
Merged
Conversation
…sl deny Pre-v1.0 supply-chain ratchet. Lock the current state of the dep tree so future drift fails CI loudly rather than silently introducing more dups or transitive openssl. # Changes * `bans.multiple-versions`: warn -> deny. Existing 23 dups recorded in `skip` with one-line provenance each, mostly the wasmtime / cranelift stack pulling its own copies of small util crates. New dups will fail CI. * `bans.wildcards`: allow -> deny. Wildcards (`version = "*"`) in published crates bind to whatever resolves at publish time with no SemVer guard. * `bans.deny`: empty -> [openssl, openssl-sys, native-tls]. Forces the rustls stack across the board. We do not currently depend on any of these; this is forward-looking guard. * `sources.unknown-git`: warn -> deny. Every git dep must be explicitly approved. # Verification `cargo deny check` clean: advisories ok, bans ok, licenses ok, sources ok. One preexisting `license-not-encountered` warning for LGPL-3.0 in the `allow` list; out of scope here, untouched. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Pull request overview
Tightens the repository’s cargo-deny policy to act as a pre-v1.0 supply-chain “ratchet”, so dependency drift (new duplicate versions, wildcard specs, unapproved git sources, and OpenSSL/native-tls usage) fails CI instead of surfacing as warnings.
Changes:
- Switch
bans.multiple-versionsfromwarntodeny, adding a documentedskiplist for current known duplicates. - Switch
bans.wildcardsfromallowtodenyto preventversion="*"dependency specs. - Add an explicit transitive deny list for
openssl,openssl-sys, andnative-tls; and tightensources.unknown-gitfromwarntodeny.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
…line Addresses Copilot inline comment on PR #1126: the comment on the openssl/native-tls deny list pointed at "RELEASING.md trusted publishing notes" but RELEASING.md does not mention TLS at all. Replace the dead reference with an inline explanation of why we keep rustls-only across the workspace. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pre-v1.0 supply-chain ratchet for
deny.toml. Lock the current state of the dep tree so future drift fails CI loudly rather than silently introducing more dups or pulling inopenssl.Changes
bans.multiple-versionswarndenyskipwith provenance. New dups will fail CI.bans.wildcardsallowdenyversion = "*"specs in published crates bind to whatever resolves at publish time. No SemVer guard.bans.deny[][openssl, openssl-sys, native-tls]sources.unknown-gitwarndenyThe
skiplist23 entries, audited 2026-05 via
cargo deny check bans. Each entry has a one-line provenance comment so future contributors know why it's skipped and can drop entries when upstream aligns.Pattern: mostly the wasmtime/cranelift stack pulling its own copies of small util crates (
bitflags,rustix,hashbrown, etc.) at versions different from the workspace.Verification
One preexisting warning (
license-not-encountered: LGPL-3.0) is untouched — out of scope.Why now
Pre-v1.0 is the time to tighten. After v1.0 ships, every user who runs
cargo deny checkwill hit any warnings we leave behind, and tightening becomes a multi-PR coordination problem instead of a single bookkeeping pass.🤖 Generated with Claude Code