Hi Alexander,

On 9/21/26 08:18, Alexander Dahl via ptxdist wrote:
Hello Michael,

Am Sat, Sep 19, 2026 at 09:05:28AM +0200 schrieb Michael Olbrich:
On Mon, Sep 14, 2026 at 05:00:55PM +0200, Alexander Dahl via ptxdist wrote:
[…]
Notes:
     Not sure what security gain we have from tarballs created by GitHub?
It helps detecting supply chain attacks. The "make dist" archive is
basically impossible to reproduce, so we need to trust the uploader that it
was not modified. For the git tarball, all changes are visible in the
commit history. While someone still needs to look, it's much easier to spot
something.
And that is not theoretical: The xz backdoor did just that with a modified
build-to-host.m4.

     This just makes packaging harder.
I'm not sure what you mean with that.
Usually upstream publishes sha256 sums and gpg signatures along a
tarball release.  I usually check those, and compare with the sums
other distributions (e.g. buildroot) have in their packages.  If we
take the generated tarball from git, those checks are impossible.

I can totally understand both sides. In the end the question is what thread we want to protect against? Your thread model is that GitHub or someone with access to GitHub does bad things. Michael's thread model is against a bad/compromised maintainer trying to hide the actual attack. Both are correct and neither guarantees security, as a bad actor could also simply hide his stuff in some commit. For best security one would have to review the whole (commit) diff between the releases.

But given that xz also has PGP signed commit, you could also verify it in the following way:

(clone xz repo and verify signature of the given tag)
$ git archive --format=tar --prefix=xz-5.8.4/ v5.8.4 | sha256sum
ac47844373932e3fed48d7d791fdea426005894592578eaba3f878394d62bfa3 -
$ wcurl https://github.com/tukaani-project/xz/archive/refs/tags/v5.8.4.tar.gz
(...)
$ gzip --decompress --stdout v5.8.4.tar.gz | sha256sum
ac47844373932e3fed48d7d791fdea426005894592578eaba3f878394d62bfa3 -


Sidenote: From an operational point of view GitHub btw. also disagrees from using their auto generated archives, as they cannot guarantee that they are reproducible [1], but they do their best to not break anything [2].

[1] https://github.com/github/docs/issues/31141#issuecomment-1899101631
[2] https://github.com/github/docs/issues/31141#issuecomment-1899166346

Sincerely
    Sven


Greets
Alex

Reply via email to