-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo install
should run cargo audit
#10016
Comments
I believe this feature request is distinct from #7678 which is about providing |
|
The distinction of something being intended for developers vs. intended for users also isn't trivial. Probably worthwhile to think about what a version of |
@alilleybrinker that's an excellent point. I filed a wishlist / exploratory ticket with The idea is that if a (non-dev) user installs a package, Perhaps I'm too optimistic, though. ;-) |
Warning about rustsec vulnerabilities doesn’t necessarily needs to be implemented by running check on the client side. The crates.io registry could be tracking the rustsec status and send a warning down to cargo. |
One thing that's developed more since this was initially filed is the concept of Vulnerability Exploitability eXchange (VEX) data, which is intended to be a machine-readable mechanism for software producers to communicate to their own users about whether vulnerabilities in a dependency impact users of software which incorporates that dependency. If something like the proposed feature here is pursued, I think integration of VEX (along with some easy way for Rust package maintainers to publish VEX disclosures to Crates.io) would help avoid the false positive flood issue I'd described previously. |
Problem
I just ran
cargo install rage
, a new file encryption tool. What if there is a vulnerability disclosure present? I have no way of knowing. I cannot usecargo audit
AFAIK to discover vulnerabilities unless I clone the upstream source crate and then runcargo audit
there.Proposed Solution
When a user runs
cargo install foo
, it should displaycargo audit
output for the package.Notes
This isn't ideal, since
cargo audit
reports are primarily aimed towards developers rather than users, but it gives cautious users some basis to decide whether to rely on the installed package. If they're uncomfortable they cancargo uninstall
.The text was updated successfully, but these errors were encountered: