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 4CzQDoUR9V4BOAAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 21:05:09 +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 CBG0CoUR9V6zVQAA1q6Kng (envelope-from ) for ; Thu, 25 Jun 2020 21:05:09 +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 A326A940225 for ; Thu, 25 Jun 2020 21:05:08 +0000 (UTC) Received: from localhost ([::1]:50594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZ3S-0008Ap-5G for larch@yhetil.org; Thu, 25 Jun 2020 17:05:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joZ3P-0008Ai-5h for guix-patches@gnu.org; Thu, 25 Jun 2020 17:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joZ3O-0002fH-RY for guix-patches@gnu.org; Thu, 25 Jun 2020 17:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joZ3O-00027Y-Ks for guix-patches@gnu.org; Thu, 25 Jun 2020 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42048] [PATCH 0/6] Authenticated channels for everyone! Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jun 2020 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42048 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42048@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.15931190568094 (code B ref -1); Thu, 25 Jun 2020 21:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Jun 2020 21:04:16 +0000 Received: from localhost ([127.0.0.1]:41334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZ2d-00026U-WC for submit@debbugs.gnu.org; Thu, 25 Jun 2020 17:04:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:49286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZ2Y-00026H-Ls for submit@debbugs.gnu.org; Thu, 25 Jun 2020 17:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joZ2Y-00087s-FZ for guix-patches@gnu.org; Thu, 25 Jun 2020 17:04:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45143) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZ2X-0002Av-Gr; Thu, 25 Jun 2020 17:04:09 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59592 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joZ2W-0005LQ-O8; Thu, 25 Jun 2020 17:04:09 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Thu, 25 Jun 2020 23:04:00 +0200 Message-Id: <20200625210400.29033-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: xkMnOJ0RIfgk Hello Guix! This patch series follows up on channel authentication support: https://issues.guix.gnu.org/41767 This time the goal is to expose and document the authentication mechanism so that third-party channel authors can use it. This should be the last series on this theme in the foreseeable future. :-) The most visible effect is that channel introductions are now part of the API and shown by ‘guix describe’. It becomes a long-term commitment because we want to be able to pass the output of ‘guix describe -C channels’ or /run/current-system/channels.scm to ‘guix pull’ and ‘guix time-machine’ in the future. Contrary to what I initially proposed¹, channel introductions are stripped to the bare minimum: a commit/fingerprint pair (as is currently the case on master, internally). I figured it doesn’t buy us much to have the commit/fingerprint pair signed; what matters is that users obtain the introduction from a trusted source, and the signature wouldn’t help with that. I also got rid of the idea of rendering introductions are opaque base64 blobs. In the manual I tried to distinguish instructions for users (“what do I need to put in my channels.scm file?”) from instructions for channel authors (“how do I allow users of my channel to authenticate it?”). If people have a channel that they’d like to make “authenticable”, please do try and report back! You can even test with master, you only need to add ‘@@’ to access (guix channels) internals to create the introduction. Feedback welcome! Thanks, Ludo’. ¹ https://issues.guix.gnu.org/issue/22883#69 Ludovic Courtès (6): channels: Add 'openpgp-fingerprint->bytevector'. channels: Make channel introductions public. channels: Remove 'signature' from . channels: Save and interpret 'introduction' field in provenance data. guix describe: Display channel introductions and add 'channels-sans-intro'. services: provenance: Save channel introductions. doc/guix.texi | 130 +++++++++++++++++++++++++++++++++++++- gnu/services.scm | 26 ++++++-- guix/channels.scm | 86 +++++++++++++++++++------ guix/scripts/describe.scm | 56 +++++++++++++--- guix/scripts/system.scm | 4 +- tests/channels.scm | 10 ++- 6 files changed, 269 insertions(+), 43 deletions(-) -- 2.26.2