Skip to content

chore(deny): tighten multiple-versions, wildcards, sources; deny openssl - #1126

Merged
robcohen merged 3 commits into
mainfrom
feat/v0.16-cargo-deny-tighten
May 16, 2026
Merged

robcohen merged 3 commits into
mainfrom
feat/v0.16-cargo-deny-tighten

Conversation

@robcohen

Copy link
Copy Markdown
Member

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 in openssl.

Changes

Field Before After Why
bans.multiple-versions warn deny Existing 23 dups go into skip with provenance. New dups will fail CI.
bans.wildcards allow deny version = "*" specs in published crates bind to whatever resolves at publish time. No SemVer guard.
bans.deny [] [openssl, openssl-sys, native-tls] Force the rustls stack. Currently zero usage — forward-looking guard.
sources.unknown-git warn deny Every git dep must be explicitly approved.

The skip list

23 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

$ cargo deny check
advisories ok, bans ok, licenses ok, sources ok

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 check will hit any warnings we leave behind, and tightening becomes a multi-PR coordination problem instead of a single bookkeeping pass.

🤖 Generated with Claude Code

…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]>
Copilot AI review requested due to automatic review settings May 16, 2026 04:00
@robcohen
robcohen requested a review from a team as a code owner May 16, 2026 04:00
@codecov

codecov Bot commented May 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI 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.

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-versions from warn to deny, adding a documented skip list for current known duplicates.
  • Switch bans.wildcards from allow to deny to prevent version="*" dependency specs.
  • Add an explicit transitive deny list for openssl, openssl-sys, and native-tls; and tighten sources.unknown-git from warn to deny.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deny.toml Resolved
@github-actions

github-actions Bot commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 786
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

robcohen and others added 2 commits May 16, 2026 09:06
…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]>
@robcohen
robcohen enabled auto-merge (squash) May 16, 2026 14:19
@robcohen
robcohen merged commit 8837274 into main May 16, 2026
23 checks passed
@robcohen
robcohen deleted the feat/v0.16-cargo-deny-tighten branch May 16, 2026 14:19
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.

2 participants