From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cKVkHMUwFmMkdQAAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 19:24:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oDQ3HMUwFmP3EwEAauVa8A (envelope-from ) for ; Mon, 05 Sep 2022 19:24:21 +0200 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 0FBEB39CE1 for ; Mon, 5 Sep 2022 19:24:21 +0200 (CEST) Received: from localhost ([::1]:54916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVFpc-0000c3-8t for larch@yhetil.org; Mon, 05 Sep 2022 13:24:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVFpF-0000bd-FD for guix-devel@gnu.org; Mon, 05 Sep 2022 13:23:57 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:44559) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVFpB-0001s4-Qz for guix-devel@gnu.org; Mon, 05 Sep 2022 13:23:55 -0400 Received: by mail-wr1-x434.google.com with SMTP id c11so7937902wrp.11 for ; Mon, 05 Sep 2022 10:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date; bh=I20wCzL/sfgXiHdIBE1JgwxnK+DhLELuqCEwgI01MhU=; b=Zmc8mIpe/zbJQwq6JhsNqJKI/v7Z5o7n/fZICroeBaEGOFrrgB9FfMm8v3A4kZUQ1Y mw+76r60fbl8l59UaOmlYr16/Vq/McdO4iyJEitrK3lIw/YTgYN5Vz1bZmaYMIvkT6OT OXfi82evDOZorYfgcmjVyhynjJAZb8y0eHt/EBSMBxOJNRafaPfJcF5reG0vcvWHLmP2 XSLVd4xOIL06MpYeTMWNZ3g/Y++U+iGpHzLZyYKd/SsMe4kMF8VhzzC0+2lExSPHQxy8 IIsVwpKYNtyk3EFG9WWQCtO7qBihxuQ5rE0N0o+FErQ96yz7Z/FYF7Mf0YAa3lLiUTfL NADA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date; bh=I20wCzL/sfgXiHdIBE1JgwxnK+DhLELuqCEwgI01MhU=; b=CYHMIUimyzjpdGJXr0SyTpIyk4z0ul3OOnRDKKiMgY5c81ngYm7zB6a604hoCCW/YI c7q1di/6ZMSleoU83UupORxe01YDKllj6DpKCO7y3G3FwWFKkbJFYrsFAE9u6/BXyeZN ORJ9FhbHEbZuypF2pw1rirejXO1R+oQllw99UNNXOyOX99T4qyb7POvbDGGTLWm50bhZ VzXBXPiQQvLyMuu0sn0yI3WaVFRG1WfdN9D6/BSrQ2vN7K78+QK0RGrlRoZ+ToIPOLYu b1WrhAVSheW2A6GC2EUeAj2v3hOgsXgVC1rpyNnzl2Ymg6dFrcg+RG0Kdj4YVYQEizej LEfQ== X-Gm-Message-State: ACgBeo0BdFyHfk5TEAEicXckMOhx877xqxTYrsR5H/VFAJzThGOqrMGW OdQiL6yeIS4jeBTor0bJYtFzF+7kY/U= X-Google-Smtp-Source: AA6agR6kFAWH/6dRARc9SNicaR+KxbPJhwGVaRBsRmqclRhKNdo5EzO4oquIsVV9Nceu3uuXGisCeQ== X-Received: by 2002:a5d:56c1:0:b0:226:f869:3a8 with SMTP id m1-20020a5d56c1000000b00226f86903a8mr12292478wrw.256.1662398631418; Mon, 05 Sep 2022 10:23:51 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id bz18-20020a056000091200b0022542581800sm11751205wrb.45.2022.09.05.10.23.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 10:23:50 -0700 (PDT) From: zimoun To: Christopher Rodriguez , guix-devel@gnu.org Subject: Re: Idea: fallback for guix pull? In-Reply-To: <87bksxmdop.fsf@gmail.com> References: <87bksxmdop.fsf@gmail.com> Date: Mon, 05 Sep 2022 17:53:29 +0200 Message-ID: <87sfl5rf5y.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662398661; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I20wCzL/sfgXiHdIBE1JgwxnK+DhLELuqCEwgI01MhU=; b=bO6qiw7IBzv8A6JJCWJGTSa8Edr8Nix06g4YIQv7HeAOXPEs5NHpATCuNvIWGtmWZbElqa KMtqz4cj8Er+/FZuNKRY+ymOvle8ovZ52q9h0iob+I/774rx9Wk0g5OzTimydRQwBFTYVB CjuryVKLgVPNJQvRJlc+XVox/fMQfCqZttAfSPGl7xe52h6lzw+Y5T27XEyGL1SJ9y71k8 +gSHGGn6BMH18iLQDqJpzPYZpwsXNM87fm+KRRMgurFMnQuBGaiLrukGNG3MGhv+SqIern EODmMQaMHNF83YHNNZro2TcpqAsplE5yXsms3s2W0fkwjEkhxDgOiV1opAIhiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662398661; a=rsa-sha256; cv=none; b=CuOQ6zulcPGnPOvHiANZgZa6xtCaNO5S6h3OCOiUZ3aBliFM8wODKY+/5CU6VHJRlwVidk 62eeGamLNw4SgToZ2lKZlKOJAa0SGwYGEibcSzFRpuHJycqnsiM2VQbcCh7HGYBuGazEXg gGoXh80ZNXqWR+yl5nojXUmznnGjFHTp2QaHJDCGax6RGJKvHBRRBbvpOO30eQCUjvFzD0 +btwjS17Ho0R8uPk46GtxqzSm9ppr/TgVcPyN35zq7sWX3g70di3cx6QuR+XUJ5ehe6Vra qIX/mYgW7L+jRenIgecl33OXR2WUXffVBWnwLXiJrhSk6d/huG/0Zouu8SVPmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Zmc8mIpe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Zmc8mIpe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0FBEB39CE1 X-Spam-Score: -1.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: p1RctD7WXTyd Hi, Sorry for the late reply. On sam., 06 ao=C3=BBt 2022 at 14:12, Christopher Rodriguez wrote: > I haven't looked at the code at all, but perhaps it would be useful to > users of Guix if, upon a guix pull with a commit that fails to > authenticate, guix pull would still pull up to the last in the chain of > successfully authenticated commmits? > > Right now, it stops the entire operation if one commit from one channel > fails to authenticate, which has value (and might be useful as a setting > or flag, for those with greater security concerns or those maintaining > the channel). > > But assuming the authentications are done in order, could we make the > default an effective "pin" to the last authenticated commit? This is > probably the way users /should/ deal with this kind of issue anyway > (disable-authentication is worrisome), and having the default be this > kind of fallback would make it so users are still able to pull other > channels they might have, or at least update to the last "good" commit. Indeed, authentications are done in order (see =E2=80=99authenticate-commit= s=E2=80=99 from (guix git-authenticate)) but the failure raises an error (see =E2=80=99authenticate-commit=E2=80=99). Note that the Git repository is already updated. So, some tweaks would be necessary to implement your suggestion. Well, I am not convinced the use-case is worth the effort. However, I agree that a channel failing (for whatever reason) should not be blocking for pulling all the others. As discussed in bug#57559 [1]. Cheers, simon 1: