GNU bug report logs - #15559
24.3.50; epg.el: pinentry prompt is not specific

Previous Next

Package: emacs;

Reported by: Teodor Zlatanov <tzz <at> lifelogs.com>

Date: Tue, 8 Oct 2013 01:03:02 UTC

Severity: minor

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15559 in the body.
You can then email your comments to 15559 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Tue, 08 Oct 2013 01:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Teodor Zlatanov <tzz <at> lifelogs.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 08 Oct 2013 01:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Teodor Zlatanov <tzz <at> lifelogs.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; epg.el: pinentry prompt is not specific
Date: Mon, 07 Oct 2013 21:02:53 -0400
Requested as a separate bug:

The epg.el+GnuPG X pinentry dialog is very non-specific ("Enter
passphrase") so there's no way to know what passphrase is being
requested and why if you don't have the specific instance in focus.

In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.4)
 of 2013-09-20 on flea.lifelogs.com
Bzr revision: 114415 rgm <at> gnu.org-20130921005207-1eq49miu7feptu8i
Windowing system distributor `The X.Org Foundation', version 11.0.11304000
System Description:	Gentoo Base System release 2.2




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Tue, 08 Oct 2013 03:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Teodor Zlatanov <tzz <at> lifelogs.com>
Cc: 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Mon, 07 Oct 2013 23:17:22 -0400
> The epg.el+GnuPG X pinentry dialog is very non-specific ("Enter
> passphrase") so there's no way to know what passphrase is being
> requested and why if you don't have the specific instance in focus.

I only use epg.el in very simple ways, where the dialog (no idea whether
it's from "pinentry" or anything else) is very clear and explicit about
which password for which key is requested.
So could you give a recipe to reproduce the above problem?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Tue, 08 Oct 2013 10:40:02 GMT) Full text and rfc822 format available.

Message #11 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Tue, 08 Oct 2013 06:39:51 -0400
On Mon, 07 Oct 2013 23:17:22 -0400 Stefan Monnier <monnier <at> iro.umontreal.ca> wrote: 

>> The epg.el+GnuPG X pinentry dialog is very non-specific ("Enter
>> passphrase") so there's no way to know what passphrase is being
>> requested and why if you don't have the specific instance in focus.

SM> I only use epg.el in very simple ways, where the dialog (no idea whether
SM> it's from "pinentry" or anything else) is very clear and explicit about
SM> which password for which key is requested.
SM> So could you give a recipe to reproduce the above problem?

1. run Emacs, nothing else (no gpg-agent, no idea if that would make a difference)
2. open file1.gpg
3. prompt is "Enter Passphrase"

Then from the command line:

4. gpg --decrypt file2.gpg
5. prompt is "Enter Passphrase"

This hit me yesterday actually; I was using Git's netrc helper, which
calls out to GnuPG for .gpg files, and it took a while to run something
before getting to the .gpg decode.  I was in Emacs doing VCS interaction
with file1.gpg at that time and saw the dialog with no indication of
what passphrase was wanted.

Ted




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Tue, 08 Oct 2013 17:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Tue, 08 Oct 2013 13:01:48 -0400
> 1. run Emacs, nothing else (no gpg-agent, no idea if that would make a difference)
> 2. open file1.gpg
> 3. prompt is "Enter Passphrase"

I just tried it and it opened the file without prompting (so presumably
the password is cached somewhere: I have no gpg-agent running, only an
ssh-agent and a polkit-gnome-authentication-agent-1).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Tue, 08 Oct 2013 17:29:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ted Zlatanov <tzz <at> lifelogs.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Tue, 08 Oct 2013 13:27:49 -0400
On Tue, 08 Oct 2013 13:01:48 -0400 Stefan Monnier <monnier <at> iro.umontreal.ca> wrote: 

>> 1. run Emacs, nothing else (no gpg-agent, no idea if that would make a difference)
>> 2. open file1.gpg
>> 3. prompt is "Enter Passphrase"

SM> I just tried it and it opened the file without prompting (so presumably
SM> the password is cached somewhere: I have no gpg-agent running, only an
SM> ssh-agent and a polkit-gnome-authentication-agent-1).

I'm not sure about your setup.  The dialog shows up for me on Gentoo.

In any case, the problem is that the pinentry dialog is not showing the
filename or anything else to identify which passphrase is requested.  I
can't tell how to change that with GnuPG command-line options, although
I could conceivably write my own pinentry program and use that with some
environment variables to set the message appropriately.  So I don't
think epg.el can fix this issue from the Emacs side.

Ted





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Fri, 30 Aug 2019 11:07:02 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Fri, 30 Aug 2019 13:05:48 +0200
Ted Zlatanov <tzz <at> lifelogs.com> writes:

> In any case, the problem is that the pinentry dialog is not showing the
> filename or anything else to identify which passphrase is requested.  I
> can't tell how to change that with GnuPG command-line options, although
> I could conceivably write my own pinentry program and use that with some
> environment variables to set the message appropriately.  So I don't
> think epg.el can fix this issue from the Emacs side.

I spent ten minutes googling and reading man pages, but I don't see any
way to control the prompt from the gpg pinentry program.

Does anybody know whether this is possible?  I agree that it would be a
good idea if the prompt say what you're being prompted for.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Fri, 30 Aug 2019 11:07:02 GMT) Full text and rfc822 format available.

Message #23 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Fri, 30 Aug 2019 13:06:15 +0200
Ted Zlatanov <tzz <at> lifelogs.com> writes:

> In any case, the problem is that the pinentry dialog is not showing the
> filename or anything else to identify which passphrase is requested.  I
> can't tell how to change that with GnuPG command-line options, although
> I could conceivably write my own pinentry program and use that with some
> environment variables to set the message appropriately.  So I don't
> think epg.el can fix this issue from the Emacs side.

I spent ten minutes googling and reading man pages, but I don't see any
way to control the prompt from the gpg pinentry program.

Does anybody know whether this is possible?  I agree that it would be a
good idea if the prompt say what you're being prompted for.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Fri, 30 Aug 2019 13:23:01 GMT) Full text and rfc822 format available.

Message #26 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, Daiki Ueno <ueno <at> gnu.org>
Cc: 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Fri, 30 Aug 2019 15:23:48 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 30 Aug 2019 13:05:48 +0200
> 
> Ted Zlatanov <tzz <at> lifelogs.com> writes:
> 
> > In any case, the problem is that the pinentry dialog is not showing the
> > filename or anything else to identify which passphrase is requested.  I
> > can't tell how to change that with GnuPG command-line options, although
> > I could conceivably write my own pinentry program and use that with some
> > environment variables to set the message appropriately.  So I don't
> > think epg.el can fix this issue from the Emacs side.
> 
> I spent ten minutes googling and reading man pages, but I don't see any
> way to control the prompt from the gpg pinentry program.
> 
> Does anybody know whether this is possible?  I agree that it would be a
> good idea if the prompt say what you're being prompted for.

Maybe Daiki (CC'ed) knows.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15559; Package emacs. (Sun, 29 Sep 2019 07:26:02 GMT) Full text and rfc822 format available.

Message #29 received at 15559 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Daiki Ueno <ueno <at> gnu.org>, 15559 <at> debbugs.gnu.org
Subject: Re: bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
Date: Sun, 29 Sep 2019 09:25:29 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> I spent ten minutes googling and reading man pages, but I don't see any
>> way to control the prompt from the gpg pinentry program.
>> 
>> Does anybody know whether this is possible?  I agree that it would be a
>> good idea if the prompt say what you're being prompted for.
>
> Maybe Daiki (CC'ed) knows.

That was a month ago, and nobody has chimed in, so I'm closing this bug
report as it seems like this isn't something gpg supports.  If this
turns out to be wrong, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 15559 <at> debbugs.gnu.org and Teodor Zlatanov <tzz <at> lifelogs.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 29 Sep 2019 07:26:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 27 Oct 2019 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.