Distributing software is a lot harder than just building it (with the caveat that people don't want to install build dependencies).
So we rely on centralized distribution (and build).
Because of this we have to assume trust of that entire chain.
When builds are reproducible they are independently verifiable which means you only have to trust the code and not the entire distribution chain (build systems, storage, etc).
Of course if no one bothers to verify then it doesn't matter.
This is sort of how xz happened, no one verified that the release tarballs were what they were purported to be.
I know what reproducible builds are, but they do not solve practical problems. That are actively happening.
>This is sort of how xz happened
Reproducible builds wouldn't have caught this. You would reproduce the malicous library the same since the vulnerability is in the input.
Wasn't the vulnerability triggered by a malicious script that was added silently to the tarball? Reproducible builds would have shown that the tarball is not the exact output of the build. Even though the malicious payload was already in the code, the trigger was not and was hidden
Right, my point was that nobody bothered to check the source tarballs which should be completely reproducible already,
Supply chain attacks are not theoretical! Just take a look at npm, docker and other repo lands.
Those attacks were not prevented by reproducible builds. Those supply chain attacks are the kind of things resources should be put into preventing.
They were completely preventable by independent verification.
Just that without reproducible build you can't independently verify anything.
Maybe some of them were preventable, but if it was in place attackers would easily adapt to fool the automated systems and we would be back at status quo.
>without reproducible build you can't independently verify anything.
This is myth propagated by reproducible builds people. Byte for byte similarity is not required to detect a Trojan was injected into one.
You are right, I should not have said "you can't independently verify anything", but then you generally need to know what you are looking for.