From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IInDC0awcGZZOQEAe85BDQ:P1 (envelope-from ) for ; Mon, 17 Jun 2024 21:53:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IInDC0awcGZZOQEAe85BDQ (envelope-from ) for ; Mon, 17 Jun 2024 23:53:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="LR/VbnRL"; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718661189; 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: 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=MQY+pcaQrsEeSWX9QkppWESG3HeqSBl6t1Y+dRzHixE=; b=TdD2Y/Cq16zxrXLq7FrX7ptdSUaucC6ZMYzF/geM8sS6F67+hxgyHObQwv13KgST29lCGv sdRyn90yEJKHXBEnP67gCYwTp0wpOGsQ6rzasVCn5qPm+G7V2O6ih99a3pW9jgkdCzdo7i jtbq5J9w+3Yl77xGJPWCmxEfEWpQTY0XdvBYHHPY1/0HoTedmZFOAu0XBQUu4RGjFT3Tc+ 25wyx5OLZEoM+Iobh0HucqA884p6yAkE8qB6bI7xV6sZbNS7wkYekkfz1Xi8lybqoDAwCu 1WJpC6GFsSzc1CYBuAHZ0CkTKb8KiGQgfIyVebgFvH7W+4gfCJm/PHEJdpI/vA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718661189; a=rsa-sha256; cv=none; b=fs8Oty8FldPJn3vmleOPi0gnZ3/AuFvBaeZyUjFZSKFI+Fjg9xVNvRSmp0rSTv3s4O5aIT fyvHla8wF8LYhKrhUkot4pKR0vjaLYtNTclDYNujtP/STSeRhnmFzsUdiLAwkgXt6OoWSd FPAlkOf2fVLVCr/ivIlTcDm2/Npmp7nO+A/waYfTjMUwG0ucoHLErB4XQRrJVmpoZbxcj2 N9gABpjtg23+/JW2uo9G+xnTZRvwqbjPvr9JmpqLQsvXDI5EOfqKT9/WZOefLPIMeXeWwg odmfZjl7xhLCjxoHI1COJ9noe8v4Wx5A/IgzEIqZwEVO1amYVUi7Z8//mvPrnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="LR/VbnRL"; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 DF67BCEAA for ; Mon, 17 Jun 2024 23:53:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJKH7-0002sX-I9; Mon, 17 Jun 2024 17:52:29 -0400 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 1sJKH5-0002rw-MX for guix-devel@gnu.org; Mon, 17 Jun 2024 17:52:27 -0400 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 1sJKH4-0001GP-BA; Mon, 17 Jun 2024 17:52:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MQY+pcaQrsEeSWX9QkppWESG3HeqSBl6t1Y+dRzHixE=; b=LR/VbnRLOyyMyT7s2n6o FtIqers/zmgK0y4nlqp+nU5eRTE8w0m3+WoKhT+HXjo0ndJaLhhw2kTSUmxTSd+JnaE7grQL3fdEX YF0L/RsfIK6NqSkS0bSe1mjDEyW32dR+lsochdtXw6+Rw6p9FVGJ0j14NNBWuIG93/7IUytvh0+gR 1HrS4PpI9nyxnlXXmw4MMLTRSMt1sS/HY6j7DCHKmLXyUSc1QsU0qf571knf7V5Xv4ZstAgbCrI68 IyDe2vrfAdViFqHZafCIxtHL6xEC/49R/Mpye/Vra2mKEOWhwsgV4ryUgqZMX1BLlXTBxhAuhfYwd YtOO5mLIK0KFJg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Suhail Singh Cc: Ada Stevenson , Guix Devel Subject: Re: Disabling authentication checks for tests in local Guix checkouts In-Reply-To: <8734pbwtuc.fsf@gmail.com> (Suhail Singh's message of "Mon, 17 Jun 2024 10:02:19 -0400") References: <87zfrj7m8a.fsf@gnu.org> <8734pbwtuc.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 30 Prairial an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Chariot X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 17 Jun 2024 23:52:02 +0200 Message-ID: <871q4v5jb1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.10 X-Spam-Score: -8.10 X-Migadu-Queue-Id: DF67BCEAA X-Migadu-Scanner: mx11.migadu.com X-TUID: Ht1/O6B9pnVd Suhail Singh skribis: > Ludovic Court=C3=A8s writes: > >> I=E2=80=99m not sure how to integrate it though: in the general case, we >> probably want to keep authentication enabled by default, but how to >> allow users to easily disable it when using a personal checkout? > > Could you please elaborate on what the challenge is? > > Is the challenge in inferring when they are using a personal checkout? > Would it be a challenge to have the user provide an option instead? > Said option could either be passed in explicitly every-time, or a > command provided to allow the user to set/unset the option (which would > get stored, say, in .git/config under guix "authentication") and the > code updated to read the preference from there. The challenge is in determining that Guix is running from a local checkout. Now that I think about it, it=E2=80=99s not that hard: ./pre-ins= t-env sets =E2=80=98GUIX_UNINSTALLED=E2=80=99. So we could do: #:authenticate? (not (getenv "GUIX_UNINSTALLED")) Problem is that an attacker could lead a user to disable authentication by getting them to set this seemingly unrelated environment variable. The =E2=80=98.git/config=E2=80=99 option you propose is not available becau= se that all happens with the Guix-managed cached checkout under ~/.cache/guix/checkouts. Maybe a specific environment variable would do? Ludo=E2=80=99.