Repository navigation
Clear the cargo audit advisories and audit dependencies in CI - #145
Merged
Merged
Conversation
cargo audit reported five vulnerabilities and two warnings on main, and nothing in CI ran it. - protocol-s3's streaming test talked to its local server through reqwest 0.11 with rustls, which brought in h2 0.3, rustls 0.21, rustls-webpki 0.101 and webpki-roots 0.25 and their five advisories. None of them shipped in spacectl. The test now uses reqwest 0.13.5 with default features off and only stream, so no TLS or HTTP/2 stack. - serde_yaml is deprecated and its unsafe-libyaml is unmaintained; it was the only flagged crate in the spacectl binary (--policy-file). serde_norway 0.9.42, a maintained fork, replaces it with the same YAML syntax, enum tags included. - rustix 1.1.5 -> 1.1.6 (unsound xattr functions), lockfile only. - .cargo/audit.toml and deny.toml ignored about 30 advisories left from before the reset, including four rustls-webpki ones. They now ignore only the three the tree still triggers, each with a reason: bincode (the space.db encoding), and fxhash and instant via sled. deny.toml drops 74 skip entries for crates no longer in the tree and skips syn 2.0.119, still used by a few proc macros next to syn 3. - CI gains an "Audit dependencies" job running cargo audit --deny warnings and cargo deny check. - CONTRIBUTING, docs/dependency-security.md, docs/CI_CD_STRATEGY.md and CHANGELOG describe the audit. Fixes #143.
This was referenced Nov 13, 2026
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.
Description
Fixes #143
cargo auditreported five vulnerabilities and two warnings onmain, and CI ran neithercargo auditnorcargo deny. After this PR,cargo audit --deny warningsandcargo deny checkboth pass, and CI runs both.protocol-s3's streaming test used reqwest 0.11 with rustls. That brought in h2 0.3.27, rustls 0.21.12, rustls-webpki 0.101.7 and webpki-roots 0.25.4. None of them shipped inspacectl. The test talks plain HTTP to a local server, so it now uses reqwest 0.13.5 with default features off and onlystream: no TLS and no HTTP/2. rustls is gone fromCargo.lock, and h2 is at 0.4.20, through the server stack.spacectl): it's deprecated, and its unsafe-libyaml is unmaintained. It was the one flagged crate in the shipped binary, used for--policy-file. serde_norway 0.9.42 is a maintained fork with the same API and YAML syntax, enum tags included, pinned like the other serialization crates..cargo/audit.tomlanddeny.tomlignored about 30 advisories left from before the reset, including four rustls-webpki ones that would have hidden the next real hit. Without any ignores,cargo auditnow reports only three unmaintained crates, so those are the only ignores left, each with a reason: bincode (thespace.dbencoding), and fxhash and instant via sled.deny.tomlbans: 74skipentries for crates no longer in the tree are removed. There's a skip for syn 2.0.119, which a few proc macros still use next to syn 3.cargo deny check banspasses.taiki-e/install-action, then runscargo audit --deny warningsandcargo deny check.docs/dependency-security.md,docs/CI_CD_STRATEGY.mdand CHANGELOG.Type
Checklist
Quality gates
cargo fmt --allcargo clippy --workspace --all-targets -- -D warningscargo test --workspace --no-fail-fast): 350 passed, 0 failed, including both streaming tests and the YAML policy testsDocumentation
Security
unsafeblocksDependency changes
=0.9.42); reqwest is a dev-dependency (tier 2); rustix is transitivecargo audit --deny warningscleancargo deny checkclean (advisories, bans, licenses, sources)cargo treediff: reqwest 0.11 → 0.13.5 removes hyper 0.14, h2 0.3, the rustls 0.21 stack, webpki-roots and sync_wrapper 0.1 from the dev graph. serde_yaml/unsafe-libyaml → serde_norway/unsafe-libyaml-norway.What a reviewer should know
spacectl create --policy-fileon a YAML policy using an enum tag (compression: !Zstd) anddedupe: falsecreated a capsule, and it read back byte for byte.cargo deny checkstill warns about three unused license allow and exception entries (pre-reset leftovers). They're warnings only.