all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Suhail Singh <suhailsingh247@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Suhail Singh <suhailsingh247@gmail.com>,
	 Ada Stevenson <adanskana@gmail.com>,
	 Guix Devel <guix-devel@gnu.org>
Subject: Re: Disabling authentication checks for tests in local Guix checkouts
Date: Mon, 17 Jun 2024 22:36:38 -0400	[thread overview]
Message-ID: <87frtb9du1.fsf@gmail.com> (raw)
In-Reply-To: <871q4v5jb1.fsf@gnu.org> ("Ludovic Courtès"'s message of "Mon, 17 Jun 2024 23:52:02 +0200")

Ludovic Courtès <ludo@gnu.org> writes:

> The challenge is in determining that Guix is running from a local
> checkout.  Now that I think about it, it’s not that hard: ./pre-inst-env
> sets ‘GUIX_UNINSTALLED’.  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 ‘.git/config’ option you propose is not available because 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?

-- 
Suhail


  reply	other threads:[~2024-06-18  2:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-10  6:20 Disabling authentication checks for tests in local Guix checkouts Ada Stevenson
2024-06-17 13:05 ` Ludovic Courtès
2024-06-17 14:02   ` Suhail Singh
2024-06-17 21:52     ` Ludovic Courtès
2024-06-18  2:36       ` Suhail Singh [this message]
2024-06-18  8:25   ` Ada Stevenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87frtb9du1.fsf@gmail.com \
    --to=suhailsingh247@gmail.com \
    --cc=adanskana@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.