From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MOR3Mntq316BMQAA0tVLHw (envelope-from ) for ; Tue, 09 Jun 2020 10:54:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MAVMLntq3148OAAA1q6Kng (envelope-from ) for ; Tue, 09 Jun 2020 10:54:51 +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 631B69401CB for ; Tue, 9 Jun 2020 10:54:51 +0000 (UTC) Received: from localhost ([::1]:52018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jibu5-00037X-Pv for larch@yhetil.org; Tue, 09 Jun 2020 06:54:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jibsM-0001nL-Ej for guix-patches@gnu.org; Tue, 09 Jun 2020 06:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jibsM-0007C4-5g for guix-patches@gnu.org; Tue, 09 Jun 2020 06:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jibsM-0002lD-4w for guix-patches@gnu.org; Tue, 09 Jun 2020 06:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41767] [PATCH 0/9] Authenticate channels Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Jun 2020 10:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41767 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41767@debbugs.gnu.org Received: via spool by 41767-submit@debbugs.gnu.org id=B41767.159169997810602 (code B ref 41767); Tue, 09 Jun 2020 10:53:02 +0000 Received: (at 41767) by debbugs.gnu.org; 9 Jun 2020 10:52:58 +0000 Received: from localhost ([127.0.0.1]:59008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jibsI-0002kw-3W for submit@debbugs.gnu.org; Tue, 09 Jun 2020 06:52:58 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jibsG-0002ki-8V for 41767@debbugs.gnu.org; Tue, 09 Jun 2020 06:52:57 -0400 Received: by mail-qk1-f195.google.com with SMTP id n141so20297618qke.2 for <41767@debbugs.gnu.org>; Tue, 09 Jun 2020 03:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8Jo+xgizxcZ0+bnZWhvD0y/qvvVtp12/ymNb3CHQGtY=; b=GKseI0LXtRqUgVfOrLg1fNNXE7uNftnaUabjohULPR0khaWzqFX/P1UMwIBWPC/NaC BhmWKsPvd+9QY0RTlQSStSyajuFBAV3MoYKu9bwRRO8Q+sYbGw+Hx2wgRZocwiC3Kcge Yn1hcj2RsySV2W558Onn8/JeHX/iSxvq96lyurASa5aVGfRz+ado0tj2TdxpADEEZE1o DfHfhJzrqicC22O+m2qnAAa0IoqY6pkptwp02LZ6ya+4BZcKTltC3NbBeqMajX+fM8dt 1920w6jm8evD3te9KvgY+hkrpgfnpelg1SovV4jh7GdlEfdjoD1eKKIbRKJl52iRNhPs WEFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8Jo+xgizxcZ0+bnZWhvD0y/qvvVtp12/ymNb3CHQGtY=; b=npA3xQaiXbeUl27yjEIJtSu5jlxtjgslVXfB6WsdA2DpKqLdD1jrrXR6Ld7I11V/d1 dWA2/af1fkbYayMap7toMbq9KLc1uhZJR1ULQbqJc3wd0aa1Hkd/IbNs5Muo2yOUA8Ir wFTWQj6G+TmhYjLjl5MMK4kdCm0n0WsugvRAmTtcWL990JumRpmtajE5PGjiWuq/QAE3 6d9ctRDgTfffOEPotZUqcO4CJSnH89SlLQ2YQkWgACG/7frkd/aHLOIS3XKuMfJ54w5r DL9IgLDENXWhAx/f3g56r0pykKfJyN6OXOv/I9yhT3rmZFRdAe20pYXGsJf4PSLllzna MSgw== X-Gm-Message-State: AOAM531zxn8+xkxGrTQvxWAfIpCnKjas61lMIV26IIFT3tXgMLPdNaXw S1QH4OVNrkabog62RXLqt7Ohsv7I7zikFa6VOCUsuMmd X-Google-Smtp-Source: ABdhPJwMlHXduIrD/EVI0b636KchOqaatzt/oRskEyO5HqDblxA/W7P9J1Dnq2i8514wjXbQ/Ok1Icl51nToW4DRSwI= X-Received: by 2002:a37:4656:: with SMTP id t83mr26833500qka.126.1591699970362; Tue, 09 Jun 2020 03:52:50 -0700 (PDT) MIME-Version: 1.0 References: <20200608215224.2672-1-ludo@gnu.org> In-Reply-To: <20200608215224.2672-1-ludo@gnu.org> From: zimoun Date: Tue, 9 Jun 2020 12:52:38 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=GKseI0LX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: f3CRaEOUrLVI Hi Ludo (-22883@debbugs.gnu.org) On Mon, 8 Jun 2020 at 23:53, Ludovic Court=C3=A8s wrote: > I would much welcome feedback! I=E2=80=99m happy to answer questions if > anything=E2=80=99s unclear. Don=E2=80=99t hesitate, because after that i= t=E2=80=99ll be > harder to change! I am sorry to be slow to understand and if I am naive but there are still points which are unclear [1] to me, especially when 'guix time-machine' will use this authentication machinery. [1] https://lists.gnu.org/archive/html/guix-devel/2020-06/msg00057.html >From my understanding, there are 4 situations 1- add signed material to a signed channel 2- introduce authentication to an unsigned channel 3- add unsigned material to a signed channel 4- add unsigned material to unsigned channel And I am interested by how it works for the situation #3. For a concrete example of 3., e.g., --8<---------------cut here---------------start------------->8--- git clone https://git.savannah.gnu.org/git/guix.git git worktree add -b foo wk/foo cd wk/foo # add my unready stuff ./pre-inst-env guix pull --branch=3Dfoo --url=3D$PWS -p /tmp/foo /tmp/foo/bin/guix install unready-stuff --8<---------------cut here---------------end--------------->8--- In this case, do I have to use the option '--disable-authentication'? And this is the scenario for almost all the patches on guix-patches; even if 'pull' is generally not necessary when testing the patch. :-) Another example is let consider that this channel [2] -- or any other public one used by labs to publish specific tools; I am not aware about one by INRIA ;-) -- and let imagine that this channel is authenticated, i.e., there is a '.guix-authorizations' file. Now, can I fork this channel and my unsigned material without entering in the security dance? Do I need to use the option '--disable-authentication'? Moreover, if this forked channel is added to '~/.config/guix/channels.scm', i.e., in addition to '%default-channel', what happens for pulling? Well, it is not possible to pull a signed channel and an "unauthorized fork from a signed channel" in only one command, right? [2] https://github.com/BIMSBbioinfo/guix-bimsb Well, I am sorry to be insistent but this authentication machinery seems having an hard implication in my workflow and I would like to be prepared. All the best, simon