mahmoud/face

is face-20.1.1-py3-none-any.whl legit?

willkg opened this issue · 4 comments

face 20.1.1 was released January 22, 2020 as a .tar.gz and a py2-none-any.whl. 6 hours ago, someone uploaded a py3-none-any.whl. I think it's pretty unusual to get a new whl download for a release 3 years old.

The py2 and py3 whls seem the same, except that the older py2 whl contains a test_parse.py file the new py3 whl doesn't contain.

I don't see anything in the PR or issue trackers to suggest a face maintainer was uploading whls for older releases.

Is this new py3 whl release legit?

Wow! Didn't expect anyone to notice. TLDR Yes, it's legit.

For this blog post I soft-launched glompad (glom in the browser). Glompad runs pyodide, and needs py3 wheels. I couldn't use face 22 because I wanted to do one last py2/py3 glom release. Easiest fix was to release a wheel for the old code :)

Thanks for keeping an eye out, though! I could see how this might be a vector for some less-than-pure intentions. Just curious, how did you spot it?

We ran into this since we use pip-compile to pin our package hashes, which are then evaluated during pip install -r requirements.txt --require-hashes. We do this to protect against things like rogue binary uploads, which is what we were worried may have happened here as well! Thanks for the fast response 😄

We do the same thing that @sizehnde does. Everything is good here, so I'm closing this out. I appreciate you replying so quickly! Thank you!

@mahmoud
yes, our ci pipeline (using poetry which checks the hashes) failed too.
thx for the fast reply.