unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
@ 2013-10-08  1:02 Teodor Zlatanov
  2013-10-08  3:17 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Teodor Zlatanov @ 2013-10-08  1:02 UTC (permalink / raw)
  To: 15559


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@gnu.org-20130921005207-1eq49miu7feptu8i
Windowing system distributor `The X.Org Foundation', version 11.0.11304000
System Description:	Gentoo Base System release 2.2





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08  1:02 bug#15559: 24.3.50; epg.el: pinentry prompt is not specific Teodor Zlatanov
@ 2013-10-08  3:17 ` Stefan Monnier
  2013-10-08 10:39   ` Ted Zlatanov
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2013-10-08  3:17 UTC (permalink / raw)
  To: Teodor Zlatanov; +Cc: 15559

> 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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08  3:17 ` Stefan Monnier
@ 2013-10-08 10:39   ` Ted Zlatanov
  2013-10-08 17:01     ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Ted Zlatanov @ 2013-10-08 10:39 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 15559

On Mon, 07 Oct 2013 23:17:22 -0400 Stefan Monnier <monnier@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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08 10:39   ` Ted Zlatanov
@ 2013-10-08 17:01     ` Stefan Monnier
  2013-10-08 17:27       ` Ted Zlatanov
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2013-10-08 17:01 UTC (permalink / raw)
  To: 15559

> 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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08 17:01     ` Stefan Monnier
@ 2013-10-08 17:27       ` Ted Zlatanov
  2019-08-30 11:05         ` Lars Ingebrigtsen
  2019-08-30 11:06         ` Lars Ingebrigtsen
  0 siblings, 2 replies; 9+ messages in thread
From: Ted Zlatanov @ 2013-10-08 17:27 UTC (permalink / raw)
  To: 15559

On Tue, 08 Oct 2013 13:01:48 -0400 Stefan Monnier <monnier@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






^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08 17:27       ` Ted Zlatanov
@ 2019-08-30 11:05         ` Lars Ingebrigtsen
  2019-08-30 12:23           ` Eli Zaretskii
  2019-08-30 11:06         ` Lars Ingebrigtsen
  1 sibling, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-30 11:05 UTC (permalink / raw)
  To: 15559

Ted Zlatanov <tzz@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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2013-10-08 17:27       ` Ted Zlatanov
  2019-08-30 11:05         ` Lars Ingebrigtsen
@ 2019-08-30 11:06         ` Lars Ingebrigtsen
  1 sibling, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-30 11:06 UTC (permalink / raw)
  To: 15559

Ted Zlatanov <tzz@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





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2019-08-30 11:05         ` Lars Ingebrigtsen
@ 2019-08-30 12:23           ` Eli Zaretskii
  2019-09-29  7:25             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2019-08-30 12:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen, Daiki Ueno; +Cc: 15559

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 30 Aug 2019 13:05:48 +0200
> 
> Ted Zlatanov <tzz@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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#15559: 24.3.50; epg.el: pinentry prompt is not specific
  2019-08-30 12:23           ` Eli Zaretskii
@ 2019-09-29  7:25             ` Lars Ingebrigtsen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-29  7:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Daiki Ueno, 15559

Eli Zaretskii <eliz@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





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-29  7:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08  1:02 bug#15559: 24.3.50; epg.el: pinentry prompt is not specific Teodor Zlatanov
2013-10-08  3:17 ` Stefan Monnier
2013-10-08 10:39   ` Ted Zlatanov
2013-10-08 17:01     ` Stefan Monnier
2013-10-08 17:27       ` Ted Zlatanov
2019-08-30 11:05         ` Lars Ingebrigtsen
2019-08-30 12:23           ` Eli Zaretskii
2019-09-29  7:25             ` Lars Ingebrigtsen
2019-08-30 11:06         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).