From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70688: 29.3; epa-file-encrypt-to does not allow selecting subkeys by id using ! syntax supported by gpg itself Date: Wed, 01 May 2024 15:10:24 +0300 Message-ID: <867cgdpwb3.fsf@gnu.org> References: <87sez2l1mx.fsf@rekahsoft.ca> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16579"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70688@debbugs.gnu.org To: "Collin J. Doering" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 01 14:11:06 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s28ni-00045h-5O for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 01 May 2024 14:11:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s28nV-0007eE-Qp; Wed, 01 May 2024 08:10:53 -0400 Original-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 1s28nK-0007dE-5s for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 08:10:45 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s28nJ-0005bO-NQ for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 08:10:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s28nd-0003Nb-KS for bug-gnu-emacs@gnu.org; Wed, 01 May 2024 08:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 May 2024 12:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70688 X-GNU-PR-Package: emacs Original-Received: via spool by 70688-submit@debbugs.gnu.org id=B70688.171456545812979 (code B ref 70688); Wed, 01 May 2024 12:11:01 +0000 Original-Received: (at 70688) by debbugs.gnu.org; 1 May 2024 12:10:58 +0000 Original-Received: from localhost ([127.0.0.1]:37152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s28na-0003NG-5j for submit@debbugs.gnu.org; Wed, 01 May 2024 08:10:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s28nY-0003N7-1y; Wed, 01 May 2024 08:10:56 -0400 Original-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 1s28n7-0005KF-Dy; Wed, 01 May 2024 08:10:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=BFjpl6Uv0ukRc5kz8NAYVyNcvQO4Ut6ctojmsmDFlUA=; b=WjW6nGxgc3y3 +1BNWcIGxUe0Vt6zW/+b/JbW27tLPrRCI2DL45Fb8943P+vecx2fc1pEvL6h5u4RZQiXglYBYtux/ GSinqQodzCPhSd5RjNo8/Ri/u8z0DlD5LtWvm0bqWeSkFx8jNjLFFC6tyoSME82ZiPSXQXZvVkm0z A9yQaRCJ+gD9FmjTKYibu1v0QwbKWE/+GhXoAiCa/QxhiEc7nBZwi4ANQ3rH3PXAPoN0cQMTpxVOO XujxWzTFBPOLp7ksGzyN2b7GSvijVsHgS/kJSM+bpHXHMtTD8vc8QnQTCoM7/GSEQfu9LHXlzXHHW LViRpp8Avlq+YF0UaShShQ==; In-Reply-To: <87sez2l1mx.fsf@rekahsoft.ca> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284249 Archived-At: severity 70688 wishlist thanks > Date: Tue, 30 Apr 2024 22:14:14 -0400 > From: "Collin J. Doering" via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I was attempting to encrypt a file using multiple gpg subkeys, using the ! syntax supported by gpg. To do this, I had a file local variable in the 'file.gpg' I was editing that looked something like this: > > --8<---------------cut here---------------start------------->8--- > # -*- epa-file-encrypt-to: ("subkey0!" "subkey1!" "subkey2!") -*- > --8<---------------cut here---------------end--------------->8--- > > However, I found that this failed to select the subkeys, and would fall back to symmetric encryption. If I specify the subkeys without the '!' suffix, it ends up using the most recent subkey on the corresponding master. > > This all to say, looking at the source, it appears this is expected behavior. It would be nice if explicitly specifying subkeys to use was supported. Patches to add this missing feature are welcome. (However, my reading of the documentation is that epa-file-encrypt-to is about recipients of the file, not about gpg keys.)