#1053531 gnupg/gpg-agent/pinentry: timeout

Package:
gpg-agent
Source:
gpg-agent
Description:
GNU privacy guard - cryptographic agent
Submitter:
Thorsten Glaser
Date:
2023-10-08 21:18:02 UTC
Severity:
normal
#1053531#5
Date:
2023-10-05 19:07:07 UTC
From:
To:
Not sure which subpackage exactly is at fault, please reassign accordingly.

I started a “git commit -a -S” and got presented a pinentry-curses
through gpg-agent to enter my PGP key’s password, but then got IRL
distracted by being asked a question, and it had terminated the
pinentry and agent, asking me for a password on stderr/tty without
pinentry, but as soon as I went to type it there, it ended up with:

error: gpg failed to sign the data
fatal: failed to write commit object

Then I had to redo the commit, writing the entire commit message
again because, of course, it wasn’t kept.

IMHO the pinentry form shouldn’t time out (or at least be reasonable
about it, e.g. time out after one hour, at the earliest, or so).

#1053531#10
Date:
2023-10-08 12:59:10 UTC
From:
To:
Hi Thorsten,

The second one is the usual ssh prompt in a failed ssh-agent.

Put a pinentry-timeout into gpg-agent.conf

#1053531#15
Date:
2023-10-08 21:03:44 UTC
From:
To:
Werner Koch dixit:

Oh, okay.

Right, I remember running into that with pinentry-kwallet malfunctions,
but usually a pkill should suffice to fix that up (which I admit is not
something you’d tell “normal” users to do).

Thanks,
//mirabilos