From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id BqhcLoYRUmGudAAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 20:46:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UDtuKYYRUmECBwAA1q6Kng (envelope-from ) for ; Mon, 27 Sep 2021 18:46:30 +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 35FF71F414 for ; Mon, 27 Sep 2021 20:46:30 +0200 (CEST) Received: from localhost ([::1]:38510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUvdz-0000rO-Vm for larch@yhetil.org; Mon, 27 Sep 2021 14:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUvdb-0000oz-E7 for guix-patches@gnu.org; Mon, 27 Sep 2021 14:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUvdb-0005BQ-6m for guix-patches@gnu.org; Mon, 27 Sep 2021 14:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUvdb-00012R-5L; Mon, 27 Sep 2021 14:46:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50814] [PATCH] guix: git-authenticate: Also authenticate the channel intro commit. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 18:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50814 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 50814@debbugs.gnu.org Received: via spool by 50814-submit@debbugs.gnu.org id=B50814.16327683383894 (code B ref 50814); Mon, 27 Sep 2021 18:46:03 +0000 Received: (at 50814) by debbugs.gnu.org; 27 Sep 2021 18:45:38 +0000 Received: from localhost ([127.0.0.1]:42843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvdC-00010k-0x for submit@debbugs.gnu.org; Mon, 27 Sep 2021 14:45:38 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:33655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUvd9-00010T-4I for 50814@debbugs.gnu.org; Mon, 27 Sep 2021 14:45:36 -0400 Date: Mon, 27 Sep 2021 18:45:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1632768328; bh=iPL5ldy2H+WYgs0Qz39B/IKLS5p+uw26vP6r+9YIhyA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=dcqFoRKqfaT1Z9ccUTHPwdhWr1dOQ9mR/rK35wcpAsLN3VH/5W4EDRu3GH0ouaN/x jqmDvqys2n3k1jafaaU6sYDDkH279Td4+3R5CunLvy2gP0230q5it5pjJ+d91lnG7y oLiNnZixiIfDTHiOyuLZ92OV82I/AMU00Z2+tCF3Onlq6eLJPIJb2bXdBUxXwRuYvW H4ncDX+676tyqKRMKr/yn2yLSyXFr3w9s/4GSwxSd5wAHNwfO6kDmmAcDWTIVAmsU9 fBO3E/a6IzI6NiRT8w5nSC1gX2T4nSokqquy1CKsmjBp1/iXULlYlgOflJ6z6uar9D B74+0IhZp4opQ== From: Attila Lendvai Message-ID: In-Reply-To: <2b0173cc9809ab1e806bf0061fc28a9a85dda6e0.camel@telenet.be> References: <20210926101928.3877-1-attila@lendvai.name> <2b0173cc9809ab1e806bf0061fc28a9a85dda6e0.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: Attila Lendvai Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632768390; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=iPL5ldy2H+WYgs0Qz39B/IKLS5p+uw26vP6r+9YIhyA=; b=ujeX3tmtivO09oxPn4mCmigyzbGsIp/UzBUuYRzxzbvS5KMYtGm6kN+hxZFaoGurxF+TaR jAlgfi0x41mfrlT9iZxsOfKBjOUwge/tlCYCFLAWYDiU2ZmFmcOn7Ji6hrEnDJW6lsEGdP OmoWqJDmt+d4/Vc8ErXWeCQir0vo6FrxquEavViTl5qBt6oRrkj0aFwNXLl8aZUD282jKz L/McfBJVFIFYUmTeIgx+zZGx4hG3LIMtI87kJDuPOiJoq73HpwPREPmqM6zv0kh9bAKhno KS72ehnXRxBq9I+Fp7MJBUyqkYvOXMaa8r4fAVTcWqPexNR6DnQtGXTBPaO+XA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632768390; a=rsa-sha256; cv=none; b=TeHiR1iKHlYHzAWPjjokJxTMRpUs9uix1lKbI+V+96gMFtigmkz5OXjtG+/iMrNyTfL1sO 2eN+yPkgr/9RTK1zVCkd6V33y43CzEaH6VxbPLcpz+E1e/1WoY5GXRYIJkRV9s5Cfox2gE Po2pjiutwAL17N74w4oDpZe8pTMPm6jxqMQSxXnGg31SBR6jt+MCamDNbot4Np5riWmZ6x 3XnceBryPIcFVDsZuD2ZGBTzuCQDjFSq+bNXREp4S168ifmTtTmz0srz7CKQYbp2hCqwZY rI/XsF8ln6Urs1VQkGHdstUEZnbT2Wq8XmvDn+Fl5Eu/koc0aqs5oFkRFegwpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=dcqFoRKq; 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-Migadu-Spam-Score: 0.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail2 header.b=dcqFoRKq; 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-Migadu-Queue-Id: 35FF71F414 X-Spam-Score: 0.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: PrtLF9o5LH/T what should happen if a channel-introduction commit does not update the .gu= ix-authorizations file? this means that this single commit will get through the authentication (cha= nnel intro commits are always trusted), but any later commits signed with t= he same key will be rejected. this is the situation that got me confused, and thrust me into attempting t= o fix this (trying to `guix pull` from a local git checkout of guix contain= ing my patches). i wrote the code for this, but i don't know what should be its UI. how shou= ld this be reported to the user? using `(warning ...)` will just print something to stderr. i was hoping to raise a continuable condition of type &warning, that i can = even check for in the tests, but i have failed to put that together. the sc= heme/guile condition system is a bit messy/convoluted. can someone help me out with a hint/outline about how to report this that b= est fits the rest of guix? note that it's not really an error, because until another commit is added w= ith the new key, this channel is valid. - attila PGP:=C2=A05D5F 45C7 DFCD 0A39