From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SLNeLT/d6F7KRgAA0tVLHw (envelope-from ) for ; Tue, 16 Jun 2020 14:54:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oJ0WKT/d6F5LbgAAbx9fmQ (envelope-from ) for ; Tue, 16 Jun 2020 14:54:55 +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 ED23D940C76 for ; Tue, 16 Jun 2020 14:54:54 +0000 (UTC) Received: from localhost ([::1]:37364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlCzE-0003eD-Am for larch@yhetil.org; Tue, 16 Jun 2020 10:54:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59330) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlCVO-00037t-TR for guix-patches@gnu.org; Tue, 16 Jun 2020 10:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37793) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlCVO-0007lM-Kb for guix-patches@gnu.org; Tue, 16 Jun 2020 10:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jlCVO-00026n-Hf for guix-patches@gnu.org; Tue, 16 Jun 2020 10:24:02 -0400 Subject: bug#41767: [PATCH 0/9] Authenticate channels Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 16 Jun 2020 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41767 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41767-done@debbugs.gnu.org Cc: 22883@debbugs.gnu.org Mail-Followup-To: 41767@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 41767-done@debbugs.gnu.org id=D41767.15923174128047 (code D ref 41767); Tue, 16 Jun 2020 14:24:02 +0000 Received: (at 41767-done) by debbugs.gnu.org; 16 Jun 2020 14:23:32 +0000 Received: from localhost ([127.0.0.1]:49336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlCUu-00025e-1x for submit@debbugs.gnu.org; Tue, 16 Jun 2020 10:23:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlCUs-00025N-Fc; Tue, 16 Jun 2020 10:23:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57315) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlCUn-0007f9-84; Tue, 16 Jun 2020 10:23:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=32960 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jlCUK-0006kc-W4; Tue, 16 Jun 2020 10:23:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200608215224.2672-1-ludo@gnu.org> Date: Tue, 16 Jun 2020 16:22:54 +0200 In-Reply-To: <20200608215224.2672-1-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cour\?\= \=\?utf-8\?Q\?t\=C3\=A8s\=22's\?\= message of "Mon, 8 Jun 2020 23:52:24 +0200") Message-ID: <87366vt7i9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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=none; dmarc=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: -1.01 X-TUID: Z1kN5i6Yvn01 Hi, Ludovic Court=C3=A8s skribis: > git-authenticate: Cache takes a key parameter. > git-authenticate: 'authenticate-commits' takes a #:keyring parameter. > tests: Move OpenPGP helpers to (guix tests gnupg). > channels: 'latest-channel-instance' authenticates Git checkouts. > channels: Make 'validate-pull' call right after clone/pull. > .guix-channel: Add 'keyring-reference'. > channels: Automatically add introduction for the official 'guix' > channel. > pull: Add '--disable-authentication'. > DROP? channels: Add prehistorical authorizations to > . Pushed! 619972f7b5 maint: "make authenticate" behaves like 'guix pull' by default. 838ac881ec time-machine: Add '--disable-authentication'. a9eeeaa6ae pull: Add '--disable-authentication'. c3f6f564e9 channels: Automatically add introduction for the official 'gui= x' channel. a941e8fe1f .guix-channel: Add 'keyring-reference'. 5bafc70d1e channels: Make 'validate-pull' call right after clone/pull. 43badf261f channels: 'latest-channel-instance' authenticates Git checkout= s. 1e2b9bf2d4 tests: Move OpenPGP helpers to (guix tests gnupg). 41946b79f1 git-authenticate: 'authenticate-commits' takes a #:keyring par= ameter. a450b4343b git-authenticate: Cache takes a key parameter. I made the following changes: 1. The introductory of the =E2=80=98guix=E2=80=99 channel is now 9edb3f66fd807b096b48283debdcddccfea34bad (was 87a40d7203a813921b3ef0805c2b46c0026d6c31). This is because one of the parents of 9edb3f66fd807b096b48283debdcddccfea34bad lacks =E2=80=98.guix-authorizations=E2=80=99. Consider it set in stone now! 2. I added =E2=80=98--disable-authentication=E2=80=99 for =E2=80=98guix t= ime-machine=E2=80=99 in a extra commit (it was easier than I thought because we don=E2=80=99t ne= ed to disable inferior caching). 3. In an extra commit, I made =E2=80=9Cmake authenticate=E2=80=9D behave = like =E2=80=98guix pull=E2=80=99 by default=E2=80=94i.e., assume that commits whose paren= t lack the =E2=80=98.guix-authorizations=E2=80=99 file are unauthorized. It=E2= =80=99s still possible to run =E2=80=9Cmake authenticate GUIX_USE_HISTORICAL_AUTHORIZATIONS= =3Dyes=E2=80=9D to assume =E2=80=9Chistorical authorizations=E2=80=9D for those commit= s. Future work includes making that mechanism available to third-party channels, which in turn means providing a public interface for =E2=80=9Ccha= nnel introductions=E2=80=9D and probably a =E2=80=98guix channel=E2=80=99 CLI, a= s discussed earlier. Let me know if you notice anything wrong! Ludo=E2=80=99.