From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QL8kOzDjAl94UQAA0tVLHw (envelope-from ) for ; Mon, 06 Jul 2020 08:39:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uMsNNzDjAl9IYAAAB5/wlQ (envelope-from ) for ; Mon, 06 Jul 2020 08:39:12 +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 67FBC940390 for ; Mon, 6 Jul 2020 08:39:12 +0000 (UTC) Received: from localhost ([::1]:45384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsMeb-0007wI-Me for larch@yhetil.org; Mon, 06 Jul 2020 04:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsMeV-0007s8-0N for guix-patches@gnu.org; Mon, 06 Jul 2020 04:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsMeU-0007zw-N9 for guix-patches@gnu.org; Mon, 06 Jul 2020 04:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jsMeU-0005fr-Kh for guix-patches@gnu.org; Mon, 06 Jul 2020 04:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42225] [PATCH 0/5] Add 'guix git-authenticate' command Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Jul 2020 08:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42225 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42225@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159402468921736 (code B ref -1); Mon, 06 Jul 2020 08:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Jul 2020 08:38:09 +0000 Received: from localhost ([127.0.0.1]:33540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsMdc-0005eV-NB for submit@debbugs.gnu.org; Mon, 06 Jul 2020 04:38:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:41674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jsMdb-0005eO-5G for submit@debbugs.gnu.org; Mon, 06 Jul 2020 04:38:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsMda-0006kW-UT for guix-patches@gnu.org; Mon, 06 Jul 2020 04:38:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50315) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsMda-0007tI-JU; Mon, 06 Jul 2020 04:38:06 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50188 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jsMda-0000Fq-3L; Mon, 06 Jul 2020 04:38:06 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 6 Jul 2020 10:37:55 +0200 Message-Id: <20200706083755.11778-1-ludo@gnu.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: -0.01 X-TUID: jaG120bLQmfr Hello Guix! This patch series factorizes Git repo authentication and adds a ‘guix git-authenticate’ command that’s essentially an interface to (guix git-authenticate). Not surprisingly I guess. The nice thing is that people will be able to use it for external channels (otherwise they would have to use ‘guix pull’ to check that everything’s alright). And we’ll be able to use it for other Git repositories as well, such as maintenance.git, but really any Git repo. I put the “Invoking” node under “Development”, not sure if that’s the best place. Also, I considered doing a ‘guix git’ command, of which ‘authenticate’ would be one sub-command and maybe ‘clone’ another one. But for ‘clone’ I thought that ‘guix download’ would be a better fit. So I concluded that ‘guix git-authenticate’ was a good choice in the end. Feedback welcome! Ludo’. Ludovic Courtès (5): git-authenticate: Factorize 'authenticate-repository'. Add 'etc/historical-authorizations'. git: Add 'with-git-error-handling'. Add 'guix git-authenticate'. maint: Remove 'build-aux/git-authenticate.scm'. Makefile.am | 15 +- build-aux/git-authenticate.scm | 322 ------------------------------ doc/guix.texi | 83 +++++++- etc/historical-authorizations | 179 +++++++++++++++++ guix/channels.scm | 118 +++-------- guix/git-authenticate.scm | 101 +++++++++- guix/git.scm | 19 ++ guix/scripts/git-authenticate.scm | 176 ++++++++++++++++ guix/scripts/pull.scm | 18 -- guix/scripts/time-machine.scm | 4 +- po/guix/POTFILES.in | 1 + tests/guix-git-authenticate.sh | 56 ++++++ 12 files changed, 655 insertions(+), 437 deletions(-) delete mode 100644 build-aux/git-authenticate.scm create mode 100644 etc/historical-authorizations create mode 100644 guix/scripts/git-authenticate.scm create mode 100644 tests/guix-git-authenticate.sh -- 2.26.2