<title>feat(tools): add rust-crates-advisory</title>
<updated>2021-05-17T23:00:57+00:00</updated>
<author>
<name>Profpatsch</name>
<email>mail@profpatsch.de</email>
...</author>
<published>2021-04-04T02:04:20+00:00</published>
<link rel="alternate" type="text/html" href="http://code.tvl.fyi/commit/?id=952afb7da9a4b563f4e6478aec73f304827c2777"/>
<id>urn:sha1:952afb7da9a4b563f4e6478aec73f304827c2777</id>
<content type="text">
We have a bunch of crates in `third_party/rust-crates`; it would be
great if we could check them for existing CVEs.
This tool does that, it takes the rust security advisory database,
parses the applicable CVEs, and cross-checks them against the actual
crate versions we list in our package database.
The dumb parser we wrote is tested against all entries in the
database, so we will notice when upstream breaks their shit.
Checking the semver stuff is easy enough with the semver crate.
If an advisory matches, it prints the whole thing and fails the build.
Change-Id: I9e912c43d37a685d9d7a4424defc467a171ea3c4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2818
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: sterni <sternenseemann@systemli.org>
</content>