From patchwork Thu Dec 8 11:34:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 45123 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7C4ED27BBF0; Thu, 8 Dec 2022 11:35:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A05C227BBE9 for ; Thu, 8 Dec 2022 11:35:55 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3FBA-0004tT-QS; Thu, 08 Dec 2022 06:35:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3FB8-0004sl-Bb for guix-patches@gnu.org; Thu, 08 Dec 2022 06:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3FB8-0003ph-1c for guix-patches@gnu.org; Thu, 08 Dec 2022 06:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3FB7-0003Bp-T1 for guix-patches@gnu.org; Thu, 08 Dec 2022 06:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#50892] [PATCH] guix-install.sh: Authorize all project build farms at once. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Dec 2022 11:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50892 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 59781@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" , 50892@debbugs.gnu.org Received: via spool by 50892-submit@debbugs.gnu.org id=B50892.167049928312234 (code B ref 50892); Thu, 08 Dec 2022 11:35:01 +0000 Received: (at 50892) by debbugs.gnu.org; 8 Dec 2022 11:34:43 +0000 Received: from localhost ([127.0.0.1]:56218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FAl-0003BB-Fy for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:34:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FAc-0003Af-H1; Thu, 08 Dec 2022 06:34:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3FAV-0003Ia-06; Thu, 08 Dec 2022 06:34:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=1RDEVAbV9XL4cY2UG3g72pmeRWCnNFfFux7NriA35ew=; b=nEaOQM6Owh1KB42boGtk u8FG4N1E/lWGCa2lpEpZdCp/2ppRtC3dSdusrb8RWHf55oB1HpM1csguzvbWah7ZN4BhheiMoV2nB WYDbk6gUbUyVBvT7FMrkGsIpS0aWfjbDBaoS+Dgug5hfnbyjGkVOQlqAleMO/6BIdGg4Y0GY0FG6b 2E42zkOAhaPPNd/dwM11USf8Dvj04+dACFvUBdip2eb6r6FQzcloOBxzVAVU2TUcLbbc8sLOZhPBN GKF904eDD8S0xMIlwElmlARqhBCx6AxC66EAkiWHRTx6AeHIrU1savVF3ev95nsvXZlJVVRZ5m2Zl aDb3hOwqjTNr1w==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3FAU-0000PS-JX; Thu, 08 Dec 2022 06:34:22 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= References: <20210929154310.25788-1-me@tobias.gr> <87tui31g2y.fsf@nckx> Date: Thu, 08 Dec 2022 12:34:20 +0100 In-Reply-To: <87tui31g2y.fsf@nckx> (Tobias Geerinckx-Rice's message of "Wed, 29 Sep 2021 18:49:21 +0200") Message-ID: <87edtaf7sz.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, Tobias Geerinckx-Rice skribis: > Tobias Geerinckx-Rice via Guix-patches via 写道: >> + < >> "~root/.config/guix/current/share/guix/$host.pub" \ > > This file is missing for bordeaux in the 1.3.0 release, so this would > have to wait until the next one… If there are no objections I’d like to push to ‘master’ and ‘version-1.4.0’ this modified version of your patch. Thanks, Ludo’. From f13e03d57ae9784a349bfa2eab0285e2c5b58eb7 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 29 Sep 2021 17:43:10 +0200 Subject: [PATCH] guix-install.sh: Authorize all project build farms at once. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * etc/guix-install.sh (sys_authorize_build_farms): Iterate over all hosts. Co-authored-by: Ludovic Courtès --- etc/guix-install.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 6bef21bb7e..fb9006b3e2 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -492,14 +492,22 @@ sys_enable_guix_daemon() } sys_authorize_build_farms() -{ # authorize the public key of the build farm +{ # authorize the public key(s) of the build farm(s) + local hosts=( + ci.guix.gnu.org + bordeaux.guix.gnu.org + ) + if prompt_yes_no "Permit downloading pre-built package binaries from the \ -project's build farm?"; then - guix archive --authorize \ - < ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub \ - && _msg "${PAS}Authorized public key for ci.guix.gnu.org" - else - _msg "${INF}Skipped authorizing build farm public keys" +project's build farms?"; then + for host in "${hosts[@]}"; do + local key=~root/.config/guix/current/share/guix/$host.pub + [ -f "$key" ] \ + && guix archive --authorize < "$key" \ + && _msg "${PAS}Authorized public key for $host" + done + else + _msg "${INF}Skipped authorizing build farm public keys" fi } -- 2.38.1