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 mG71MKFPH2PjXQEAbAwnHQ (envelope-from ) for ; Mon, 12 Sep 2022 17:26:25 +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 wImjMKFPH2NTJgAAauVa8A (envelope-from ) for ; Mon, 12 Sep 2022 17:26:25 +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 7FB5897E6 for ; Mon, 12 Sep 2022 17:26:24 +0200 (CEST) Received: from localhost ([::1]:49166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXlKJ-0006m0-MO for larch@yhetil.org; Mon, 12 Sep 2022 11:26:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXlKD-0006lp-Bz for guix-science@gnu.org; Mon, 12 Sep 2022 11:26:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXlKD-0003Tu-0d; Mon, 12 Sep 2022 11:26:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=X6Z1enl/jKTKiXBA+FFXYtZz210tOiQQ9iczau7uwMM=; b=n4lYBNOd57t2aUnIUJ6w prrD/YHC6yZNpke8f33jz39ej3jmfHSwmtOENEQ4wa7WoPH2jwqlkMccTXRZASgnxnaXfA2J+cjEL rRHHg3HTy4amXtXLkmrkb7GaIUjXrutQtyxopzvnOgR2tMylK21CBH3CgKoEGBp+mWf6o8WSaXsgE zLdEv29G3V3w9/UavjA0s8+cGytaPw3z6uhdBwfPCWRk26mgkYLSasjSLYrHF7G6Ze2m3dWb4XUVN i7lMhNkaMWk02FiX8dBykSNJBtPm1/9MgKR2RZuZwA5RWp2akgr/7FnhfufyVMnbM74VgBjUBKNYE +Clc6n21H4i0WA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=50286 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXlKC-0008Ux-Gt; Mon, 12 Sep 2022 11:26:16 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Cc: guix-science@gnu.org Subject: Re: Help! I messed up guix-past References: <86v8pwo39x.fsf@gmail.com> <868rmr7e81.fsf@gmail.com> <87h71eypfo.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 Fructidor an 230 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Bagarade 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, 12 Sep 2022 17:26:14 +0200 In-Reply-To: (Konrad Hinsen's message of "Mon, 12 Sep 2022 08:16:32 +0200") Message-ID: <871qsgfwbt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" 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=1662996385; 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=X6Z1enl/jKTKiXBA+FFXYtZz210tOiQQ9iczau7uwMM=; b=BvFI4Hj5J+K9Ewob77QDWYYfCDcKpCExIUrmLJBxU1IPvMEx2xa/etCbnInuOTFzfxosBO YyFDsAE24KB4swVO8qWcHocaJiO+LIe00cv0l4LTDLilE2JQFBL8WvrLFP597nKqfywoxO PoW2s6od7Cr7mD0G7V9nXvZlqTxbJfj3p+YI7KBQhdFFs7Z1juCDtZWzKYWwzTfZ/tA8ON VQlB/rFe9crT/2FsuaDWTw9lfBL1YQ7P6s6Jn8JLXuv/mU7Hg543sJcxvEfefRDrZbz15m DkDrqQ8/2KF/5z2uy4Nd5ZxdeG+0Hq7X7V8kr5AqekmGQwasEfkDfCYmd9ZKYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662996385; a=rsa-sha256; cv=none; b=j4vg5Bou1roioJGRk6u98oQ2v/co1EAW76xMNZVY4s9G4IQOhWg8dqPA5KrGNb0jJ3fhI/ W6xTjcTCebvS1rze7FkLpUd/B1XLbHku4bruKRGh1G58CaseJGyoHm3SwhX9FEOXnbFOlW vFB/6WEr1/zrigpCo7qDcrxSXxuaDTNs0qGKARXz6ZUqvSUxh/FHzurroUIMBgF/nmWjto UZA+eG+R6r4QO+OnfizpS0bLxZIioZerg+uAkaI245gud5otvNCpYPsFFmjklT9gybmeJ2 6KpG+nEkJueDMZSLR+wR3mygup2gTT9I93tGLiwlPsgiIpqbrVF9I4G7xC1GMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=n4lYBNOd; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=n4lYBNOd; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7FB5897E6 X-Spam-Score: -9.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7TB0R0aEf5gT Hi, Konrad Hinsen skribis: > In my case, $PATH has my Guix profile first, and I always run the gpg > from my Guix profile. But it picks up the gpg-agent from Ubuntu, which > lives at /usr/bin/gpg-agent. OK. > It may well be possible to fix this issue (for example, patch gnupg such > that it launches the agent via the full path to the store), but for me > there is also a loss-of-confidence issue. If a messed-up software > installation grants password-less access to my keys, then my keys > effectively have no password protection any more. Attackers only need to > install two different gpg versions to have access to my keys. That's why > I want to get rid of gpg, rather than fix it superficially. Maybe there=E2=80=99s a misunderstanding because AFAIK, what you describe i= s not possible. Passphrase-protected keys are effectively encrypted, using symmetric encryption: https://github.com/gpg/gnupg/blob/master/agent/keyformat.txt#protected-pr= ivate-key-format You can see them in ~/.gnupg/private-keys-v1.d/. Such keys cannot be accessed without knowing the passphrase, no matter what software you use. Thanks, Ludo=E2=80=99.