chadtmiller.com/group-host
atmosphere group host
0
0
The dependencies are checked by cargo-deny, and no crate has unsafe code
Merged Approved
This adds cargo deny check to the check workflow and to just lint, backed by a strict deny.toml. It forbids unsafe code through workspace lints, and it upgrades atproto, rusqlite and url to clear the three advisories.
- Check run: the
checkworkflow passed at this head, including thedenystep.web,lexiconsanddocspass or skip.testande2ewere still running when I looked, so the rusqlite 0.43 upgrade is not yet confirmed against the full suite. - Cargo.toml: the removed workspace dependencies are not used by any crate. Every crate manifest takes
workspace = truefor its dependencies, and none of them names a removed one. All three crates now carrypublish.workspaceand[lints] workspace = true. - Docs:
AGENTS.mdanddocs/development.mdare updated to match. - Cargo.lock: it is consistent with the stated upgrades.
I found nothing that needs changing. Before merging, wait for test to pass under the coverage gate.
Merged as 89118ef
What changes
Dependencies are checked. The
checkworkflow runscargo deny checkagainst the newdeny.toml, and so doesjust lint. It fails on any RustSec advisory, including unmaintained crates, unsound crates and yanked versions. It also fails on a licence outside the permissive list, and on a crate from anywhere but crates.io or the atproto registry. CI installs cargo-deny 0.22.0 and caches it in/opt/cargo-deny.The three advisories it found are fixed by upgrades; none is ignored:
crypto-bigint0.5 isn't constant-time): atproto 0.3.0, which moves tok256/p2560.14 andcrypto-bigint0.7.11. Its pull is at://did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3n2ziso2bmr4f.-walfile):rusqlite0.40 → 0.43, which bringslibsqlite3-sys0.40.Url::origin()on nestedblob:URLs):url2.5.8 → 2.5.9, in the lockfile.No unsafe code.
[workspace.lints.rust] unsafe_code = "forbid", and every crate takes the workspace's lints, so the build refuses unsafe code in every target, tests included. There was none to remove.Workspace tidied. The crates are now
publish = false, so cargo-deny doesn't count their path dependencies on each other as wildcards. The workspace drops dependencies it declared but no crate used:base64,blake3,bs58,ciborium,ecdsa,k256,p256,unicode-segmentationandopensocial.Why
Some of the code at risk here holds keys: the host signs repo commits and service auth with keys from the atproto crate, which is where the
crypto-biginttiming issue was. spec-pds already has the same gates, and this brings the host level with it.How it was checked
Locally on Rust 1.100:
cargo clippy --workspace --all-targets -D warningsis clean, andcargo deny checkreports advisories, bans, licences and sources all ok. I ran the SQLite-heavy test files locally after therusqliteupgrade. The whole suite, under the coverage gate, and clippy on 1.98 are left to CI.Shortcomings
The advisories are read as they stand at each run, so
checkcan go red onmainthe day a new advisory is published, with no commit to blame. That's on purpose: the fix is an upgrade. CI stays on Rust 1.98; moving to 1.100 is a pull of its own.