From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4JlWB+bycGYeSAEAqHPOHw:P1 (envelope-from ) for ; Tue, 18 Jun 2024 02:37:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4JlWB+bycGYeSAEAqHPOHw (envelope-from ) for ; Tue, 18 Jun 2024 04:37:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eIrBbnpP; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718678246; a=rsa-sha256; cv=none; b=ux0X9/cfXnLynRFFUxvEyydSnz7H1oLjxI1+xDAczbi54dmJA1+HPNtXBDFivHAFA5vSZy le3ttL3Obdnho/eLQHyEg/vUn+iWUKjRtyobcXIcwLtZPbqbIVbDxYUrA5gIU9T4R3IGFw 96idtHvLeip8MXn15MizejTPJp/xkXqlpr8eKfqE/zKWuTJiYJ0i5O93warlsLDhGhM8uR srFIWkzYu6HGH3fnAi4Nr9WwMyBajbrtOkZIXyivLjTx7ubKVI78ja9HtskzKaSzjYZ2r8 Cid8SIov0jkfh/O3T8gJQBFUAuRU0fcHtRbtoPJ2RoSUZfhKANqSoak73kgvjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=eIrBbnpP; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718678246; 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=+PMpVGqmbGSg/Q7qacIHN3YxwYRz7+wLYbAiKLEEUFQ=; b=psRFitTnL8KTty4ZfuHTkg1lkYPAdXcTftEAr6hMs+EGzE3RIOIFElNLrNM5DQEZCVfh+K K+Ed5vUmgeZvVJ10/KCrDraSfR/uDpvoJyx+Quz3onGlu1GrD2oz3HBKThxk1gJOP94dJB xR8em8PpZIKH+OyDqKIjPpYEgribuko2kvWlqc1DqvWomIZNzSFt6NE2JNCS9/8jQlwMGG tK2715sSjZuNckA1JlNAi5VBHt3n5hmB7D3wycfetfNCSc0oaLYKcnZf6Yt84B0ZlFhv0J N3/Khhu2my8KPMrwYna/axTXnY490+ElCIMaFRubPk4aHqNP6qI59sKELihC0w== 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 C94F21CE98 for ; Tue, 18 Jun 2024 04:37:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJOiD-0000oy-RI; Mon, 17 Jun 2024 22:36:45 -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 1sJOiC-0000oq-IC for guix-devel@gnu.org; Mon, 17 Jun 2024 22:36:44 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJOiB-0005aX-3W; Mon, 17 Jun 2024 22:36:44 -0400 Received: by mail-oi1-x243.google.com with SMTP id 5614622812f47-3d22323a3ccso343293b6e.1; Mon, 17 Jun 2024 19:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718678200; x=1719283000; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+PMpVGqmbGSg/Q7qacIHN3YxwYRz7+wLYbAiKLEEUFQ=; b=eIrBbnpPo6MS66gG1AWG+1Mjrtmy6kQSPFYK4DWpvsprar3ZatW8AAOUmnIPdHFTY3 mNN16WeIJaWmUuPWIJzJn2XFUQXF1WhNPaydzkH4oPPiy9Rde4FA1KdZ7/rAI9p7ewvD zTXVNQ596lIHGOOaQKdbujneRPbOEe7GfFcUW4CXgjqozGJGSWxubmJ+OqUWNSGsTxzI FUk2CPEB8fZgMA4io6UOHhG85UtwvXHggbRVDkoAmQlMWMBmWserezcdy/AXzSDJbpAf opIFLwFycvn38VgeoePNSdLKTHIgAP2KmVl6TIF5/M1AzpFPk3RVjLmt1ibt4T6IWMbE YGOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718678200; x=1719283000; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+PMpVGqmbGSg/Q7qacIHN3YxwYRz7+wLYbAiKLEEUFQ=; b=AH7L9CFN9kMt7o9XXkG0X5r5+ix5BPpvrzbLIcu3zuHbDHToJZEBD+O6XUFmUYoODC ytUpFK8EDjR0O6BLgRf+gzFAJ1oFeAC3UEoz1COyuBVrl4xAWyZN3RgBYPxgKiQDuveI MQHBpGriMhLmNTkwaUBxwaHEKG+gSBfkQ9kPhH2D7VBRTdOM2S9PFtz6ENC0r7zYloSN /ESs7LT1wYxzo2sqLrfgRpAK4GLAl1F7bsVXsknmRr4JiwDddazcykddDrRmtvJAcBCl wEqxxlWq6c2k0a3qcusu4NAXckZvyT26f3DQIxytOit2A+8h3+h6agv/GI2YPLhMsFOZ 3LIw== X-Forwarded-Encrypted: i=1; AJvYcCXkwvMayJbAK6GRqcJ2oY6mMORUM//aF3tnFk5ENALPLyRmtxLmGhImYA8S3Z7ccYzLjAbr6qkZgjblo7DMe9+UYko= X-Gm-Message-State: AOJu0YwQlJpOO311OMhpUT/MI588AeVE/RhCaWiQV0U4b+A4HCc4Fwqo nUkL7amDEmMXxt/p52jnA5muZVaJ75HJM+cKxehpNrAS/2H8hAbFmjFINn1hJYA= X-Google-Smtp-Source: AGHT+IFWnSMFifTzhd3cV/F+BaAQKsN+IXyflKXnja0EE2+eXHC/a3AMtCraX4XpCxUOUyYC2bw8lA== X-Received: by 2002:a05:6808:1383:b0:3d2:1b8a:be76 with SMTP id 5614622812f47-3d24e996964mr13517802b6e.3.1718678200267; Mon, 17 Jun 2024 19:36:40 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id af79cd13be357-798abc0bb7fsm481275685a.95.2024.06.17.19.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 19:36:39 -0700 (PDT) From: Suhail Singh To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Suhail Singh , Ada Stevenson , Guix Devel Subject: Re: Disabling authentication checks for tests in local Guix checkouts In-Reply-To: <871q4v5jb1.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 17 Jun 2024 23:52:02 +0200") References: <87zfrj7m8a.fsf@gnu.org> <8734pbwtuc.fsf@gmail.com> <871q4v5jb1.fsf@gnu.org> Date: Mon, 17 Jun 2024 22:36:38 -0400 Message-ID: <87frtb9du1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::243; envelope-from=suhailsingh247@gmail.com; helo=mail-oi1-x243.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.69 X-Migadu-Scanner: mx12.migadu.com X-Spam-Score: -9.69 X-Migadu-Queue-Id: C94F21CE98 X-TUID: rXuK6ko+O0kt Ludovic Court=C3=A8s writes: > 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-i= nst-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 bec= ause that all > happens with the Guix-managed cached checkout under > ~/.cache/guix/checkouts. Thank you for the detailed explanation. > Maybe a specific environment variable would do? Perhaps. What is the threat model of the attacker? --=20 Suhail