Skip to content
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 should not download, compile and install unsigned code #2206

Closed
genodeftest opened this issue Dec 11, 2015 · 1 comment
Closed

Cargo should not download, compile and install unsigned code #2206

genodeftest opened this issue Dec 11, 2015 · 1 comment

Comments

@genodeftest
Copy link

cargo install currently downloads, compiles and installs unsigned code, probably even over an unencrypted connection. The only security measure at all is checking some package index. This behaviour is horribly insecure.

cargo should do better:

  1. warn for every unsigned piece of software that it is unsigned (and thus horribly insecure to run)
  2. don't allow to git checkout over unencrypted connections at all. Ever.
  3. suggest (later version: require) crates releases to be signed by the crate author
  4. use Web of Trust or PKCS to verify signatures; fall back to TOFU (trust on first use) after warning and confirmation by the user.
@steveklabnik
Copy link
Member

This is basically a duplicate of rust-lang/crates.io#75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants