06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · YouTux Channel · · 12:49 runtime

REPRODUCIBLE PACKAGES ARE USELESS

In the wiki DebianArch Linux Also namedNixOS, Fedora
Transcript 2163 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Reproducible packages are useless. Now wait, before you close the video, let me finish the sentence. They are useless not because they don't work. They are nearly useless because they work for somebody else. And in this video, I want to explain how a movement born to abolish trust has so far only managed to refine it. Let's start with what the promise was. A reproducible build is a build that given the same source and the same declared environment always produces the same bytes, always bit for bit. And the reason this property is valuable is not technical. It is epistemological. Because reproducibility turns a question about people into a question about arithmetic.

Without reproducibility, you have to ask yourself three things. [music] Is the maintainer honest? Is the machine that compiled this package compromised? >> [music] >> Was the binary modified while it traveled to me? And with reproducibility, you ask none of that. You rebuild and you compare two hashes. And here is the sentence I want to stay in your head for the whole video. >> [music] >> Reproducibility does not make an artifact trustworthy. It makes it checkable. [music] The trust only arrives when somebody checks. And the value of that check depends entirely on who performed it. Now the part where I am generous because I want to be extremely clear about one thing.

Reproducibility as a technical property has won. The reproducible builds project has spent more than 10 years removing sources of non-determinism from build systems across half the ecosystem. Timestamps embedded in binaries, random file ordering, build paths ending up inside the executable, hostnames, process numbers, boring, [music] invisible, thankless work for 10 years. And the standardization of source date epoch gave upstream developers a common lever for the single most common cause of all. The result, Debian today reproduces the overwhelming majority of its archive. And in May of the release team began blocking unreproducible packages from migrating into testing, >> [music] >> blocking, not encouraging, blocking, which makes Debian 14 the first general-purpose distribution [music] in history that requires this property instead of hoping for it.

Arch publishes its figures, [music] NixOS publishes its own, openSUSE and Fedora the same, and this is an enormous victory achieved by serious people, almost always volunteers, almost always unpaid. So, no, this video is not against them. This video is about what happened after the victory. Because once the property is obtained, one question remains, who exercises it? Who actually rebuilds? Who compares the hashes? And the answer today is an institutional rebuilder, that is infrastructure operated by somebody other than the distributor, which rebuilds packages continuously and publishes verdicts. Debian has one running over the entire archive, reconstructing each original environment from building for files and from historical package snapshots. Arch operates one, an academic group ran an external one over Arch and published the results.

>> [music] >> And this is real work and real progress. But now look at what the user does. The user opens a page, sees a green dot, and installs. Let's stop on that green dot for a second, because it is the whole video. And ask yourself exactly what mental operation you are performing when you read that badge. You are receiving a claim from a party you have never audited about a computation you did not witness concerning software you're about to execute on your own machine. This is literally the same mental operation you perform when you read a security badge on a company's website. The vendor changed, the operation did not, and reproducibility was supposed to eliminate the need to take somebody's word for it. [music] And at the point of consumption, which is the only point that concerns you, it has not. Actually, let's look closer because it is [music] worse than that.

Before reproducibility, you had to trust one thing, the distributor. And now you have to trust that the rebuilder exists, that it is honest, that it is not colluding with the distributor, that it has not itself been compromised, and that the verdict written on that page corresponds to a rebuild that actually happened. Five acts of faith instead of one. Sure, a conspiracy of two is harder than a lie by one. It is an improvement, but it is an improvement of degree, not of kind, and you are still consuming a claim. Then there is the question of independence, >> [music] >> which deserves a sentence of its own because the independence of a rebuilder is a social fact.

It is not a technical fact, and above all, it is not visible to you. >> [music] >> The people who have the time, the will, and the competence to run a rebuilder are almost always the same people who have the time, the will, and the competence to maintain packages. Same community, same conferences, infrastructure with overlapping funding and administration. >> [music] >> And this is not an accusation against anybody. It is simply social mechanics, but it means that the formula of the two independent parties, which is solid on paper, is far softer in practice than it [music] sounds. And now we arrive at the political point of this video.

A movement [music] born to abolish the need for trust has produced a system in which we trust a smaller, more competent, and harder to question club. It has made trust [music] more refined. It has not removed it. A technical elite fought the system of trust and so far has only managed to build it around itself >> [music] >> because it has been incapable of actually delivering it to the end user. And be careful. The reason is not bad faith. The reason is cost because becoming an independent verifier today requires server capacity. It requires that distribution specific tooling. It requires understanding how build environments are reconstructed.

And it requires a continuous operational commitment over time. And these are costs that select for institutions automatically. So the individual user, the party with the strongest interest in the answer and the weakest position to obtain it, is excluded structurally, not out of malice, by architecture. Let's look at it concretely, otherwise it stays philosophy. So what do you have to do today to check first [music] hand one single package, one? First, you have to find the exact recipe, the right repository, the commit corresponding to this version, and understand how it is laid out. Second, you have to reconstruct the build environment, which means discovering which dependency versions were present at build time, and then obtaining [music] them, which presumes the distribution kept them.

Third, you have to recover the build parameters, the compiler flags, the hardening options, the timestamp basis. And these are very often not recorded per artifact. They are implicit in the distributions [music] general configuration. Fourth, you have to operate the distributions build [music] system with its conventions, its commands, and its own ways of failing. Fifth, you compare. And this is the only easy step. And it is, funnily enough, also the only one they show you in the diagrams. Sixth, you publish the result, and here there's nowhere to put it. Five of those six steps are infrastructure work. None of those five is intellectually interesting. And all five are, in principle, automatable by the distributor.

>> [music] >> Because the distributor is the party that already knew all the answers. It knew them at build time. >> [music] >> And then it threw them away. And that is the sentence that, in my view, sums up the entire problem. Because every single obstacle standing in front of you is information that somebody had and chose not to publish in a form a program could consume. And the sixth step, the one everybody skips, is perhaps the most serious because a verification that produces a private result changes absolutely nothing. >> [music] >> It changes one person's confidence and without a public register, signed, durable, a mismatch is not evidence. It is a rumor. It is some guy on a forum saying the hashes don't match and it is those clowns on Hacker News who have very little to do with facts, mathematics, or anything incontestable, paper hackers rather than news. The real hackers are elsewhere, believe [music] me, and they throw up reading that site.

For a verification to have systemic effect, the result has to be publishable, attributable to a key, and permanent. Now, though, I want to talk about who understood this first and solved it radically, Guix. And with Guix, Nix, because functional package managers obtain reproducibility by construction. They don't attempt it. They get it by definition since the build environment is part of the identity of the output. It is not a description to be reconstructed afterwards. It is inside the hash of the result itself. And this eliminates at the root the deepest problem >> [music] >> every other model has. Guix also has a thing called Guix challenge, which compares what you built locally against what the substitute servers hand you and tells you whether they they diverge.

And it is, in my opinion, the most conceptually honest interface [music] that exists anywhere in the ecosystem today. And then there is Guix time machine, which reconstructs a past environment exactly. Exactly. But the thing I admire most about Guix is something else, the bootstrap. Because there is a problem older and more radical than reproducibility, the problem Ken Thompson described in 1984, the compiler. You can verify every line of your compiler's source. But if you compile it with another compiler binary whose source you cannot verify, the chain breaks and a malicious compiler can insert a backdoor and insert into the compiler it generates the ability to reproduce itself. So you can read all the code in the world and never see it.

Guix has reduced that opaque initial binary to a few hundred kilobytes and then to less, a tiny seed inspectable by hand by a human being >> [music] >> from which the entire tool chain is rebuilt. And this is work that brings no visibility. It does not make the news. It does not raise the percentage on any dashboard. And it is, [music] in my view, the most profoundly honest work done in free software in the last 15 years. So where does all this leave us? It leaves us with a different question from the one we are asking because the question the ecosystem asks today is how many packages are reproducible? 97%?

98? 99? >> [music] >> And every percentage point costs real effort and deserves recognition. But that question is by now nearly settled. And here is the last piece of the argument, the one that in my view turns all of this from a complaint into a proposal. [music] Because the value of one user verifying one package is minimal. It is close to zero. But the value of the fact that anyone can do it at any moment unpredictably [music] is enormous. An institutional fleet has a queue. It has a schedule. >> [music] >> It has a package set configured in advance. And whoever understands the queue understands the exposure. So a targeted attack, a binary served to a narrow set of clients, a package outside the monitored repositories, >> [music] >> simply sits outside that coverage.

Whereas verification that is diffuse, random, performed by strangers whenever they feel like it has exactly the property a scheduled fleet will never have. The distributor cannot know in advance which artifacts will be examined, nor by [music] whom. So, the next step is not 100% of packages reproducible. The next step is a new percentage, one nobody measures today, and one that in my view should sit at the top of every dashboard of every distribution. How many people other than the distributor verified something this month? How many distinct keys signed an attestation? How many verification attempts were completed instead of abandoned halfway? Because an abandoned attempt is a cost that was still too high.

An ecosystem verifiable by everyone is not an ecosystem with more green builds. [music] It is an ecosystem where the act of verifying is within reach of somebody who does not compile packages for a living. And reproducibility has to belong to the user, >> [music] >> to anyone, to whoever. One click, potentially, at the mercy of their own will. >> [music] >> So that one morning somebody can get up, click verify, type a program name, get a match, and publish that result to a public, unalterable manifest. The original promise was that you would not have to take anybody's word for it. >> [music] >> And a status page is somebody's word for it.

See you in the next video, and may Linux, the one verifiable by everyone, be with you.

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 537 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks