News for hackers. Stuff that matters.
Re:PyPI Requires 2FA for New User Registrations by thewataccount on Tuesday August 08, 2023 @04:48PM (#37055244)
Any chance of signed builds returning? It's bizarre to me that we would move _away_ from signed builds.

2FA means we can trust the person that logged in - but we still don't trust that PyPI is being honest (no offense).

Re:PyPI Requires 2FA for New User Registrations by miketheman on Tuesday August 08, 2023 @04:58PM (#37055356)
None taken :)

PEP 458 describes the path forward for PyPI. https://peps.python.org/pep-0458/

Here's the in-progress roadmap: https://github.com/pypi/warehouse/issues/10672

If there's particular issues you believe you could pick off to help achieve the goal, much appreciated!

Re:PyPI Requires 2FA for New User Registrations by zimmerfrei on Wednesday August 09, 2023 @04:55AM (#37060192)
That is not really a big improvement, as it just covers the threat of compromise for the CDN and any of proxies, but not of the PiPI infra itself.

That is covered by PEP 480, which is already 9 years old:

https://peps.python.org/pep-0480/

Too bad that PyPI (and pip) effectively killed PGP signatures under control of the developers (therefore truly end to end) even with the simple TOFU model, and without providing an alternative.

Re:PyPI Requires 2FA for New User Registrations by woodruffw on Tuesday August 08, 2023 @05:02PM (#37055411)
> Any chance of signed builds returning? It's bizarre to me that we would move _away_ from signed builds.

PyPI never supported "signed builds" in the first place. What it had was vestigial support for attaching PGP signatures to distributions; without a key or identity distribution mechanism, these signatures were virtually useless (and all public evidence indicates that they were, consequently, virtually unused).

Note that attached signatures alone don't prevent dishonesty on PyPI's part: without identity pinning, a dishonest PyPI could replace a correctly signed distribution Foo with a correctly signed (and easily exploitable) distribution Bar during a user's retrieval. Every signature needs to be bound to both the distribution's content and its distribution name by some stable discoverable identity.