r/programming • • Oct 17 '26

Python's binary wheels and supply chain attacks

https://rushter.com/blog/python-binary-wheels/
89 Upvotes

36 comments sorted by

View all comments

Show parent comment

3

u/-Redstoneboi- Oct 18 '26 edited Oct 18 '26

yes, that would be the logical conclusion. authors would upload the source and build configuration, and some way to verify the output.

for consumers, the pre-compiled binaries would still be downloaded from the registry by default, and hashes would be provided by the registry to confirm that they are the same. for the cautious, they could verify that the precompiled build is correct by downloading the source and building it themselves.

1

u/chucker23n Oct 18 '26

If the registry provides hashes, there is no point in the authors uploading builds at all (because… how would the registry generate those hashes if not by building themselves?). This requires significant infrastructure the registry does not want to pay for.

A more realistic solution might be code signing, which of course comes with its own warts.