From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SFLWNDxUSGGFIwAAgWs5BA (envelope-from ) for ; Mon, 20 Sep 2021 11:28:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id INBrMDxUSGFoLAAAbx9fmQ (envelope-from ) for ; Mon, 20 Sep 2021 09:28:28 +0000 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 48A751D72D for ; Mon, 20 Sep 2021 11:28:28 +0200 (CEST) Received: from localhost ([::1]:39168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSFb9-0005Mu-AO for larch@yhetil.org; Mon, 20 Sep 2021 05:28:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSFal-0005K3-3N for bug-guix@gnu.org; Mon, 20 Sep 2021 05:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSFaj-0002b7-Vp for bug-guix@gnu.org; Mon, 20 Sep 2021 05:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSFaj-0001i9-RY for bug-guix@gnu.org; Mon, 20 Sep 2021 05:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44187: Channel clones lack SWH fallback Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 20 Sep 2021 09:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44187 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 44187-done@debbugs.gnu.org id=D44187.16321300736562 (code D ref 44187); Mon, 20 Sep 2021 09:28:01 +0000 Received: (at 44187-done) by debbugs.gnu.org; 20 Sep 2021 09:27:53 +0000 Received: from localhost ([127.0.0.1]:41004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSFaa-0001hl-Kj for submit@debbugs.gnu.org; Mon, 20 Sep 2021 05:27:52 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:44645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSFaX-0001hY-PH for 44187-done@debbugs.gnu.org; Mon, 20 Sep 2021 05:27:50 -0400 Received: by mail-qt1-f177.google.com with SMTP id r21so14850058qtw.11 for <44187-done@debbugs.gnu.org>; Mon, 20 Sep 2021 02:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UiHWi/wmhd8ts1rs/Sy3+NdJondUVplk+2A9Ud5A7FA=; b=K3LJMAPJmYNcMYCau8MdY0ibYe/ios0QW6af8PjslRwE6KCC/AUf0/E4X715niH+zt 0B7TANypMT6y37tfbmGZP10oCnSYMFZ+ypQZDYvDGjD710jeH+TpOfAQLhbNl23lqGIi A97b4Bd1ho1m4/NqKEL1XxwtbiyspO3wYzJW2xr+rUCHMp2iZ2VKA6LDgHWVxe8Hz0V5 AKKaCBO/P4kOIzsEJMlkPdMkEKxoaYHCOE6u2MZC0eVBSYaeSaCAKRXxX/GoExHmCoAj DgArVL03wEUMTbKbM7fiAjOXPd5GjGpqiyU9L9iinCI3c5X4Zq4SAwuh1roluAtnCujI FEew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UiHWi/wmhd8ts1rs/Sy3+NdJondUVplk+2A9Ud5A7FA=; b=YJasLI7+ENXW8W1uO1sWEH+WHsSAXI06PEV5uzg8s4//dBbXU7LLUj02VB+AJq6iPO nvnBCeIb0B0BFGC401vxUkbGpIU77U9XkCoLQe2WZXqOP0s4nTUgqi8z106AujGM977k Mj5giDtIT3g+Fj96pc2b94etKmWtNfqbjEmeFWp09xkPKH1EV0AHXJlFxXC0oIUpuKoC RKSCdUR3dVOw6+GP9bfa8U4AQGtLvB6QHw5vPqaWcIzP/fJeJpMQl0OGmTEdl9/oc/OG dLWC4GmP5zRi1UMUiigNuauYfvPgPRED5/KpqccLhiWZVAmBtuNteLL507Z3IO2f5eb0 hC7g== X-Gm-Message-State: AOAM533/67+bBDyFA8fYJsGoKI0Qn17CIwVnryNoWOwnmonlt0dOoYGV CNdIvCAt8Xpb7O4EO7lqw6H1Hwvueem1fYAEvXA= X-Google-Smtp-Source: ABdhPJyMdrTHfWmxHauGF33lXC7IJ4+1u6ao7Wrogmva91s9xpKkQ1cy9RQiTnppFWost8twb93yQ10GKD1kP1W5/NI= X-Received: by 2002:ac8:66d8:: with SMTP id m24mr22047734qtp.39.1632130064000; Mon, 20 Sep 2021 02:27:44 -0700 (PDT) MIME-Version: 1.0 References: <87pn0dk61v.fsf@gnu.org> <20210910143415.14783-1-ludo@gnu.org> <86o88r1vfe.fsf@gmail.com> <87pmt5si8b.fsf@gnu.org> In-Reply-To: <87pmt5si8b.fsf@gnu.org> From: zimoun Date: Mon, 20 Sep 2021 11:27:32 +0200 Message-ID: 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: , Cc: 44187-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632130108; 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=UiHWi/wmhd8ts1rs/Sy3+NdJondUVplk+2A9Ud5A7FA=; b=huuXsQ/IMojqdVRDLxtUFBaFMBzpAzUYdBsbCZr0dMpjGWXADJWFcOUVdg2UtYW0uJK4Pw clNLEoUETRlQLdDes6N9z336bpgtkRs8WB4Rz2ktlLXJvn8i+iqcqc6s2rSXuGgsDKxVqt ZO74qj/pbjH5xUU5FQTRc8BwWbpDfgAWQ4hxgtKFCMqH80hei4iNSGryZC5WduL5FkOoVN lXhcDzae6SV2iWeVF6K1LnuryQN1GzD7VH3ctiwAieTwCgv24ZBd3VfKWkl1xKqF85adLH z/t9Ib/ANqYZ+Zd+LuE7sFf/91BiFV2NjJM4eWJhEdINEGzAJNcoJEfp3f9phQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632130108; a=rsa-sha256; cv=none; b=IbCaS9JtA1IZffbBXaxtUtbznpj9x7oQ8HhBEaa8iqvFQu3IBqugdkVTEHSKIhLUcblM8D jYx4LSrO5WOlTy/EW9cSqw18y+GfBPccsdwC4kR8tgdAMUSCOvn/TtNElPjMgvTnsuXahz ail65JBrGC/IUUXLbOna2+iFdbLPvSUshWFEos0vim7yUKGprcX/5bw+VZyU3zdyPULsrY x4Q7GRJJUjZ4ZRY7dc6f2dDI+WkSPr4zCTbZ7pGLrgQYTNZKSs2cT10iV6vEIES1SXNrS5 PRZFDiHAoEpHBmt2ZrPJk7prc/ywPcf3V8FdWciGimlC2/Tc1Viq9rZxMKWdvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K3LJMAPJ; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K3LJMAPJ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 48A751D72D X-Spam-Score: -1.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: M07DYzvqlohp Hi, On Sat, 18 Sept 2021 at 23:10, Ludovic Court=C3=A8s wrote: > zimoun skribis: > > and after more than 12h, the status is still: =C2=ABSWH vault: Processi= ng...=C2=BB > > and nothing is complete. > > Did it eventually succeed? We obviously have no guarantee as to how > long it might take to cook a bundle. No, I stopped. And I reported to #swh-devel. It might be something wrong on their side. Yeah, cook a bundle could be long... especially with large repo as Guix (lot of commits and couple of files). I think it is ok to let the code as it is now. > >> *Third, and this answers the asterisk above, we must keep in mind that > >> this is content-addressibility *with SHA1*. Generating a chosen-prefi= x > >> collision is becoming affordable=C2=B3, so users absolutely need an ad= ditional > >> mechanism to authenticate code they fetched. > > [...] > > > How a chosen-prefix attack could work here? I understand why the secon= d > > preimage attack is an issue. But I miss how the SHA-1 chosen-prefix at= tack > > could be exploited here to compromise the user, because this hash is pr= ovided > > by this very same user. > > I think you=E2=80=99re right, it=E2=80=99s rather second-preimage attacks= that would be > a serious problem. My point is: as time passes, assuming that a SHA1 > resolves to a single revision on SWH is becoming more and more > questionable. Well, SHA-1 is 2^160 (~10^48.2) and compared to 10^50 which is the estimated number of atoms in Earth. Speaking about content-addressability, SHA-1 seems fine. However, for security, yeah time flies. :-) > >> swh: Support downloads of bare Git repositories. > >> git: 'update-cached-checkout' can fall back to SWH when cloning. > >> git: 'reference-available?' recognizes 'tag-or-commit'. > > I=E2=80=99ve pushed this after adding the warning as you suggested: > > dce2cf311b * git: 'reference-available?' recognizes 'tag-or-commit'. > 05f44c2d85 * git: 'update-cached-checkout' can fall back to SWH when cl= oning. > 6ec81c31c0 * swh: Support downloads of bare Git repositories. Cool! I would deserve a --news entry. ;-) Cheers, simon