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

Avoid maliciously or inadvertently uploaded zero value crates #1340

Closed
vrdhn opened this issue Apr 12, 2018 · 4 comments
Closed

Avoid maliciously or inadvertently uploaded zero value crates #1340

vrdhn opened this issue Apr 12, 2018 · 4 comments

Comments

@vrdhn
Copy link

vrdhn commented Apr 12, 2018

This issue addresses people stumbling on crates like https://docs.rs/crate/crypto/0.0.2/source/src/lib.rs

Why this is a problem:

  • people will use this, thereby increasing the use count, and this becomes a loop.
  • useful packages get hidden behind the noise ( first exact hit )
  • becomes the classic 'broken window'

What can be done

  • Automatic checks: valid author email ( with verification!), scanty description, library with no public symbols, valid repo ( if open-source license )
  • Automatic checks: periodic 'click on this link to verify email' for authors.
  • Flagging , and a core team takes call on removing or keeping
  • Thumbs up/down for letting community score the crate. ( download count is not enough, malicioous use can cron them)
@ashleygwilliams
Copy link
Member

i think this type of policy would warrant an RFC! are you interested in writing one?

@vrdhn
Copy link
Author

vrdhn commented Apr 13, 2018

The problem of name squatting is entirely different ( on which I do not have a opinion).

The problem I'm looking to get solved is

Make sure an bogus crate is marked as one.

There are multiple ways of doing this, some I noted in description, and others
which community will come up with.

Do you think this change in the crates.io functionality requires an RFC.
If yes, I'ld be very intrested in writing one.

@jtgeibel
Copy link
Member

I'm not sure I see the distinction between name squatting and zero value crates as described here. The linked crate has no public dependent crates shown on crates.io even though it has been published for 2.5 years.

I agree that any policy changes affecting the publishing of crates should solicit feedback from the broader community and that the RFC process is probably the best place for that.

@sgrif
Copy link
Contributor

sgrif commented Apr 17, 2018

Closing this, as there's nothing actionable we can do here without an RFC.

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

4 participants