|
|
Log in / Subscribe / Register

Toward a fully reproducible Debian

Toward a fully reproducible Debian

Posted Jun 18, 2018 8:31 UTC (Mon) by nim-nim (subscriber, #34454)
Parent article: Toward a fully reproducible Debian

While wonderful, this endeavor only addresses half of the problem.

Making sure you can rebuild perfectly only helps so much if you don't have any update path to fix problems in your perfectly rebuilt software (it may rebuild perfectly but it is never perfect as a whole). And the natural bend of a dev you're asking to produce anything that can be rebuilt perfectly is to set in stone the versions of all components, make lists over lists of exact git hashes, locking down everything so much:
1. it's a major PITA to update any of the used software components
2. the actual component states used in each software start to drift, since everyone locks down different versions
3. that in turn increases the amount of versions that would need to be audited to make actual used of the perfectly rebuilt software ecosystem

So you end up with something that one could audit in theory (because you're sure the result can be reproducible, making the audit worthwhile) but that no one will audit in practice (too much version drift resulting in too many individual components versions that need actual checking).


to post comments

Toward a fully reproducible Debian

Posted Jun 21, 2018 1:48 UTC (Thu) by smcv (subscriber, #53363) [Link]

When a source package is compiled into binary packages, the Debian package build infrastructure now records the dependencies and toolchain that were used in a .buildinfo file accompanying the build (which is not required to be reproducible - it includes things that we hope do not alter the binaries, like the wall-clock date and time). The assertion is that if you match the dependency versions etc. from the .buildinfo (let's say D1), *and* use the same source code, you should get the same binaries (let's say B1).

There's no requirement that the complete dependency chain gets recorded in the source package: the dependencies etc. recorded in the .buildinfo file are a secondary input to rebuilding. Normally you'd only rebuild using the same dependencies D1 if you wanted to test the claim that the binaries B1 from Debian were really built from the source code we claim they were: the idea is that if you rebuild a small arbitrary sample of packages and get the same answers Debian did, you can have reasonable confidence that the rest have also not been tampered with (because in the presence of even a fairly small proportion of rebuilds, an attacker substituting builds from maliciously modified source code can't be confident that their attack will remain undetected), without having to spend the resources to rebuild *everything* for yourself.

If you want to build that source code against different dependencies D2, you're welcome to do so (subject to the same restrictions about compatible versions that always existed). You can't necessarily expect the binaries to be identical to B1 (for instance if you use a different gcc version it will probably generate different code), but if what you get when using D2 is B2, and the package is reproducible, then you can expect that someone else rebuilding the same source code against D2 will also get B2.

livecd/dvd/usb automation

Posted Jul 16, 2018 1:12 UTC (Mon) by Garak (guest, #99377) [Link]

So you end up with something that one could audit in theory (because you're sure the result can be reproducible, making the audit worthwhile) but that no one will audit in practice (too much version drift resulting in too many individual components versions that need actual checking).
To get sufficient audits in practice I think merely requires ordinary automation refinement. I don't see it as an overly challenging problem for a distribution to provide a livecd/dvd/usb image that when booted, has a zero/one button automated process to verify the distro release via the generation of identical packages. Braindead pushbutton automation is the key. Seems like we'll get there sooner rather than later, good to see people keeping the dream alive. I.e. i hope that within a few years we might see each debian/fedora/etc pointrelease come with a verification livedvd release, that combined with a pile of as many source packages as the verifier wants to verify, can trivially verify the shipped bits of the vendor.

Given the Snowden revelations of five years ago, I really wish this was already in place, but I guess the arc of progress through history, while bending slowly, does seem to bend towards what was obviously the right answer all along.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds