Hacker News new | ask | show | jobs
by tancop 17 days ago
I just don't get why the model is absolute trust in a single publisher. They should enforce reproducible builds and set up an attestation system where you can have GitHub or Google build your code and declare that the hash matches what you said.

That way projects that want to be extra safe can set up multiple providers to check the code independently, and third parties can upload their own attestation that PyPI doesn't trust by default but you can add them to your private whitelist. And they wouldn't have to care about where the release is uploaded from.

Crypto projects know that 1 of 1 is the worst possible trust assumption. If you want real confidence you need more than one party.

2 comments

Given infinite time and engineering talent, PyPI could do a lot of things. The things we actually do reflect the outer envelope of what we can do.

(Python packaging isn’t anywhere close to reproducible, and it isn’t clear how PyPI would enforce that without pissing off >90% of the ecosystem.)

Reproducible builds only solve small slice of the problem. Build attestation in general solves more, but is useless unless a credible entity is (conceptually) attesting that a package is OK.

The growth of centralized authorities arises from the reality that the vast majority of devs do not and will not independently vet or attest to the quality of libraries they use. That’s not great, but it is what we have and doesn’t look likely to change.

Given that, and given that people still want as much security as they can conveniently get, centralized control (from “we run a security scanner and trust its findings” to “packages can only be downloaded from pypi/debian stable/whatever”) is a natural result.