Vetting the cargo
Vetting the cargo
Posted Jun 16, 2022 16:17 UTC (Thu) by excors (subscriber, #95769)In reply to: Vetting the cargo by mathstuf
Parent article: Vetting the cargo
From the discussion in https://github.com/mozilla/cargo-vet/issues/79 , it sounds like they considered storing the crate's checksum alongside the version in the audit file, and then decided not to because it didn't seem to protect against any plausible attacks. Instead you have to trust that crates.io has not been compromised and is not serving different code for the same crate version to different users, or that if it was then someone would very quickly notice checksum failures with all the other cargo commands that use Cargo.lock.
