From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uEbnBR3MkWMHHQEAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 12:35:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QOnqBB3MkWPfeQAAG6o9tA (envelope-from ) for ; Thu, 08 Dec 2022 12:35:57 +0100 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 D56473C359 for ; Thu, 8 Dec 2022 12:35:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3FBB-0004tn-Kf; 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-0004sv-Tm for bug-guix@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-0003pz-KK for bug-guix@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 1p3FB8-0003Bw-Fj for bug-guix@gnu.org; Thu, 08 Dec 2022 06:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59781: 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: bug-guix@gnu.org Resent-Date: Thu, 08 Dec 2022 11:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59781 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: 59781@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" , 50892@debbugs.gnu.org Received: via spool by 59781-submit@debbugs.gnu.org id=B59781.167049927912222 (code B ref 59781); Thu, 08 Dec 2022 11:35:02 +0000 Received: (at 59781) by debbugs.gnu.org; 8 Dec 2022 11:34:39 +0000 Received: from localhost ([127.0.0.1]:56216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FAh-0003B0-9o for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:34:39 -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 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670499356; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=1RDEVAbV9XL4cY2UG3g72pmeRWCnNFfFux7NriA35ew=; b=rtkav/VOrZv713fF+1d4a+ft/b7Lp/v+ziCitWxKtS9oad9S7M/7uxYbbaRrJ/RWIQnH+5 hvsfTQxwO8dJDnWTsvILQL7BZdgLMFeyNTZiVHcrSb6uTcQmjxCewRluRYGhlqaw/kJS7e pbjU+GvyEDB+E4ybUklBpD36frZJhcGpMw6G5k3smZwNLp1JxD4SxyBf+rUJokMf/unS7N mjwhZoLEn5QMPgTaZSvONAdPqjK4q3of/Vpk8XJV+VRCsS/nXrKoViHfKqQ5jPYJ1uHGTe Zi6aPXmLogjIwDtIKZPnBXaHCUmP15eCWZQCG4VM5cmx+bqKMM7Wio3SeeSk2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670499356; a=rsa-sha256; cv=none; b=Fbq3+ea3zXUSI06UR6l94N6z205vB5AiwLZL+VALo4r8soxxerrx9j67UFnDChAA+x7Xiy FgM+YRMCAzLyP7tY53gOXYtHwB8aX/TADBJJtHw01JEwNjGMoLjW1LkyNoD9SJtswIDNcv 0T8SggpSLPY/jkajPMlnH4kL0K/IQDvRfXyLHu0T2KEJOoQ8mDO44ViUR4jd9nDOw/3LTz /6LQGBVAHcDintnmVbmlo2DLkQ+5z9bfnkmIu2zAb1ojhlslCs32outoqwxtCuCt8VaWQL jcj3c6KiCYIBwZh1/uueHAlN/fSSJl7khsNYQMcU88t/jL6pSE7s3ZAMCqll9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nEaOQM6O; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nEaOQM6O; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D56473C359 X-Spam-Score: -3.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: rgtgMoe32oD0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Tobias Geerinckx-Rice skribis: > Tobias Geerinckx-Rice via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A >> + < >> "~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=E2=80=A6 If there are no objections I=E2=80=99d like to push to =E2=80=98master=E2= =80=99 and =E2=80=98version-1.4.0=E2=80=99 this modified version of your patch. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-guix-install.sh-Authorize-all-project-build-farms-at.patch Content-Transfer-Encoding: quoted-printable Content-Description: the patch >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=3DUTF-8 Content-Transfer-Encoding: 8bit * etc/guix-install.sh (sys_authorize_build_farms): Iterate over all hosts. Co-authored-by: Ludovic Court=C3=A8s --- 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() } =20 sys_authorize_build_farms() -{ # authorize the public key of the build farm +{ # authorize the public key(s) of the build farm(s) + local hosts=3D( + ci.guix.gnu.org + bordeaux.guix.gnu.org + ) + if prompt_yes_no "Permit downloading pre-built package binaries from t= he \ -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=3D~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 } =20 --=20 2.38.1 --=-=-=--