by guipsp · 2w ago · 0 comments
Do you see any other alternative?
Both of these are latent problems when trying to use PGP in packaging ecosystems; the subset of ecosystems that successfully adopt PGP tend to have very different topologies (namely, small rings of trusted...publishers) rather than an "anyone can publish" architecture like PyPI has.
But it intuitively feels that all of our asymmetric trust systems have this same fundamental issue, and that some of them just do a better job of hiding it behind layers of abstraction and complexity.
Is PGP usage, as designed and used, plagued by usability and verification issues? Sure, absolutely, even its designer forswore it. But the system does work, and it's relatively simple to understand both the guarantees and the pitfalls.
Attestation systems and PKI in general are horrendously complex; if you look at how e.g. Google's attestation works for instance, and then ask "intuitively where can this system's guarantees be violated", it's a rather difficult question.
Looking at this proposal, trust is premised on a number of things that over the years have been repeatedly demonstrated as both hard to trust and hard to validate (pitfall examples in parenthesis):
- OpenID connect (over-scoped credentials, relies on TLS)
- TLS itself (massive trust base X complex technology X severe misconfiguration penalties)
- Centralization of trust (non-inspectable security properties of third parties)
I can't really argue the fact that PGP's unfriendliness leads to either its unuse or misuse, but I cannot imagine that abandoning it for centralized OIDC trust of one of four cloud providers will actually reduce the risk involved. Packages won't have fewer exploitable flaws, the risk of repo compromise is not reduced, and CISOs are likely to infer security properties that this does not provide. And I would generally assert that more complexity and centralization for arguable security gain is usually not a security gain.
But that is not done, because python-dev is essentially corporate owned and has always done the bidding of corporations for at least 10 years because their "leaders" want to keep their easy bullshit jobs.
Those tend to be companies with a lot of money. Those companies tend to have different needs and preferences than a sole proprietor ISV like my company. They tend to hire people who are aligned with their goals. They tend to fund specific PSF projects which are aligned with those goals. Those with strong objections to those goals, or the source of the funding, don't work for those companies, quit, or get fired.
As it is, the entire PyPI infrastructure depends on the corporate largess from the likes of Fastly, Amazon, Microsoft and Google - the latter three of which are described in "From economy of occupation to economy of genocide", Report of the Special Rapporteur on the situation of human rights in the Palestinian territories occupied since 1967, as corporations profiting from the displacement and genocide of Palestinians in Gaza, in breach of international law.
That seems rather more concerning than simply being corporate owned, and PGP signatures would not solve it.
The only real solution I see is to stop using PyPI entirely. Anything else would be the easy bullshit response. Are you willing to go that far? Probably not, since we're both on a YCombinator-hosted discussion forum.