From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gGe4NyeyVGSvaAEASxT56A (envelope-from ) for ; Fri, 05 May 2023 09:37:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aEtqNyeyVGTMPwEAauVa8A (envelope-from ) for ; Fri, 05 May 2023 09:37:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F8DD2C177 for ; Fri, 5 May 2023 09:37:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puq00-0006qq-VC; Fri, 05 May 2023 03:37:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pupzy-0006qX-To for bug-guix@gnu.org; Fri, 05 May 2023 03:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pupzy-0001Nn-Ks for bug-guix@gnu.org; Fri, 05 May 2023 03:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pupzy-0004Fc-GW for bug-guix@gnu.org; Fri, 05 May 2023 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62656: broken guix time-machine + software-heritage Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62656 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 62656@debbugs.gnu.org, Nicolas Graves Received: via spool by 62656-submit@debbugs.gnu.org id=B62656.168327221516324 (code B ref 62656); Fri, 05 May 2023 07:37:02 +0000 Received: (at 62656) by debbugs.gnu.org; 5 May 2023 07:36:55 +0000 Received: from localhost ([127.0.0.1]:53096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pupzq-0004FE-VR for submit@debbugs.gnu.org; Fri, 05 May 2023 03:36:55 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:20032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pupzm-0004Er-Fj for 62656@debbugs.gnu.org; Fri, 05 May 2023 03:36:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version:content-transfer-encoding; bh=I652M1BM5pJeOXQyb38RnxvLWi6gSq4J52QzfWqhSG0=; b=afMByWv8Zn+QdOqiWdy1Hw56l6S5tNnNdIisdmgxfJG0IjicZ4tktleV m0oWjyFweesAoa89tQsDY24YYHlwjI612Ejdg7AEVTT+ZEPuHTjK0pxcu FLRiGik4FiqDEVPXgPv6y0g+hfbo13/Bwo5fbSTbZ7SKNJI/a1xOOO/Lh 0=; X-IronPort-AV: E=Sophos;i="5.99,251,1677538800"; d="scan'208";a="55194478" Received: from unknown (HELO ribbon) ([193.50.110.84]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2023 09:36:44 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878rf8hch7.fsf@ngraves.fr> <87pm7rx98e.fsf@gnu.org> <87edo49if5.fsf@gmail.com> <87pm7j9o29.fsf@inria.fr> <86edny1uky.fsf@gmail.com> <87bkj0v9w0.fsf@inria.fr> <878re4qmaf.fsf@inria.fr> <87mt2k821f.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 16 =?UTF-8?Q?Flor=C3=A9al?= an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de la Consoude X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 05 May 2023 09:36:43 +0200 In-Reply-To: <87mt2k821f.fsf@gmail.com> (Simon Tournier's message of "Thu, 04 May 2023 19:00:28 +0200") Message-ID: <87354bp6us.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683272231; a=rsa-sha256; cv=none; b=rGSNaz+KCMZAfdrg9/MY32h1pqoWFTlyJABghs4o17DaemYuBfOp37FxqOR/3CAdbxIq2A 9yKThHCKqC/KvsjZs625WuYs6ThuRgR63Kwo/0OrReybXkr82HR7vQSrv7iutKDYQS9i5D 1bDBP3AIhDRbLfrIkBBYvrKraUjh3/bKHXIzq5D8ozrvxmlYOC1dHBevPJ9ZiOGA4IWS5K m8fIqMr3wIpYtMc617/UuB7wr1OzhmRUV/NCRVFmTIz6ZHkGIplHmw/STNeQaK2EzZlOAy 2nsLn+hUqrEZdDwo7uHSbz3C9l6ZaHqh3L90nSWEd1yQDeB8F5JW1NauSocKaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=afMByWv8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683272231; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=I652M1BM5pJeOXQyb38RnxvLWi6gSq4J52QzfWqhSG0=; b=CPU2OvvrPnnG3yUc06feE5EsGuTU5ZBF2/AVXWksm02tlVccU8L69TRqP9/r73322Ea8Xh JbWChTtlrEtwu7D5TgenSe2n/rN/xQ28nryhkVLq7CatMxCfBl23kRI3BSPoUFQslWBsJ+ LrDwMLyDU8PTnQeDCE7d/ohC6N8DXKyo7WHaDhUrM28H2w6O4njFJOt0gEZpg1yEsVtUuH julx7ujMye2JowZj1MZhOrXQbK7P6JnVLp9folW/aae2Bh+4kacYmIpserAsjA5r4qbLyM xLeQdFaleh9XV0WI+mZP03aAyV6YLoGBo4G7jpZWvznoiD8B6q98Fa1vdZUuBg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=afMByWv8; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.30 X-Spam-Score: 7.30 X-Migadu-Queue-Id: 9F8DD2C177 X-TUID: Dh6rggb2gbA1 Hi! Simon Tournier skribis: > On jeu., 04 mai 2023 at 15:05, Ludovic Court=C3=A8s wrote: > >>> Well, I do not see which features will be missing. >> >> Those mentioned earlier, provenance tracking and downgrade detection in >> particular. > > Do we care about provenance tracking for this scenario? Similarly, do > we care about downgrade detection for this scenario? Provenance tracking, yes. I wrote about the current status: (guix describe), (guix channels), etc. expect a full Git repo, which is why things are done this way. We could imagine a different design, but that=E2=80=99s a broader endeavor. [...] > If tomorrow Savannah is totally down and let assume the malicious Eve is > serving https://git.savannah.gnu.org/git/guix.git. The authentication > is useless since Eve can easily rewrite it. The authentication mechanism is designed to make this impossible. That=E2=80=99s why one can run: guix pull --url=3Dhttps://github.com/guix-mirror/guix without fear (worst that can happen is that the mirror is stale). > The only mechanism that protects Alice is the commit SHA-1 hash she > has at hand. Eve needs to attack this SHA-1 with some collision. And > if it=E2=80=99s possible to produce pre-image attack for SHA-1, then noth= ing > would prevent Eve to also replace the origins of some packages in > https://git.savannah.gnu.org/git/guix.git. True to some extent=E2=80=94see the section about SHA1 in the Programming p= aper=C2=B9. Ludo=E2=80=99. =C2=B9 https://doi.org/10.22152/programming-journal.org/2023/7/1