In T6085#162921, @aheinecke wrote:@ikloecker yes as mentioned in my response the current hints are only for symmetric.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Sep 6 2022
Sep 6 2022
@ikloecker yes as mentioned in my response the current hints are only for symmetric.
well, when creating openPGP keys with kleopatra I did not see any hints. I do not think that the issue would be vaild for password based encryption. There the common usecase is autogeneration, anyway
The long hint is "hidden" in the tooltip of the short hint.
And the issue for which @ebo opened this ticket is in my opinion that you have to fail first before you see the hint.
Sep 5 2022
Sep 5 2022
• aheinecke moved T6085: pinentry-qt: Earlier passphrase hint when creating new key from Restricted Project Column to Restricted Project Column on the Restricted Project board.
• aheinecke lowered the priority of T6085: pinentry-qt: Earlier passphrase hint when creating new key from Normal to Low.
I think there was a misunderstanding here. We already set .pinentry.constraints.hint.long and .pinentry.constraints.hint.short in GnuPG-VSD but firstly they are only about symmetric.
And the issue for which @ebo opened this ticket is in my opinion that you have to fail first before you see the hint.
Aug 26 2022
Aug 26 2022
• aheinecke moved T6085: pinentry-qt: Earlier passphrase hint when creating new key from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Fully done in my opinion.
This is in for so long we can mark it as resolved. I had tested it on Windows.
Aug 25 2022
Aug 25 2022
thesamesam added a comment to T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR).
That's a fair point, cheers!
thesamesam added a comment to T6161: pinentry doesn't allow disabling various library linkages (libX11, KF5WaylandClient, Qt5X11Extras).
In T6161#162306, @ikloecker wrote:I'm not sure I understand. If you don't want pinentries depending on libX11, then simply disable those pinentries with --disable-pinentry-qt5, etc. For Wayland it may make sense to allow disabling it.
• ikloecker added a comment to T6161: pinentry doesn't allow disabling various library linkages (libX11, KF5WaylandClient, Qt5X11Extras).
I'm not sure I understand. If you don't want pinentries depending on libX11, then simply disable those pinentries with --disable-pinentry-qt5, etc. For Wayland it may make sense to allow disabling it.
• werner triaged T6161: pinentry doesn't allow disabling various library linkages (libX11, KF5WaylandClient, Qt5X11Extras) as Normal priority.
• werner triaged T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR) as Normal priority.
Let's turn this into a feature request.
thesamesam updated the task description for T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR).
thesamesam changed External Link from https://bugs.gentoo.org/794649 to https://debbugs.gnu.org/33847 on T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR).
thesamesam changed External Link from https://bugs.gentoo.org/794649) to https://bugs.gentoo.org/794649 on T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR).
thesamesam set External Link to https://bugs.gentoo.org/794649) on T6160: pinentry Emacs support assumes socket location at ${TMPDIR}/emacs${UID}, fails to connect (need to respect XDG_RUNTIME_DIR).
• gniibe closed T5631: pinentry-curses on OpenIndiana (Illumos distro) doesn't display correctly as Resolved.
Fixed in 1.2.1.
• gniibe closed T5893: Patches to compile pinentry-1.2.0 cleanly with mingw.org's MinGW as Resolved.
Fixed in 1.2.1.
Fixed in 1.2.1.
Aug 24 2022
Aug 24 2022
At least, pinentry-qt offers this functionality since 1.2.0 (see T5517: Improvements for symmetric encryption).
• ikloecker added a project to T4950: pinentry: Add warning when capslock is on: Restricted Project.
Isn't this (mostly?) done? See T5517: Improvements for symmetric encryption.
• ikloecker added a project to T5543: pinentry-qt: Accessibility switch to repeat on enter: Restricted Project.
• ikloecker closed T6041: pinentry-qt dialog window no longer floats under Sway (fixed after 1.2.0) as Resolved.
pinentry 1.2.1 has been released today
• ikloecker added a project to T6085: pinentry-qt: Earlier passphrase hint when creating new key: Installer.
Aug 23 2022
Aug 23 2022
• ikloecker changed the status of T5863: pinentry-qt: Further improve the accessibility from Testing to Open.
Fix issues found while testing with NVDA.
Aug 8 2022
Aug 8 2022
Should be fixed. A copy of an older version of pinentry's source code that can be built with Q4 is now included and will result in a pinentry-qt4 executable. Note that while we won't break this pinentry intentionally we won't maintain it either.
Jul 27 2022
Jul 27 2022
New release of libassuan is expected to make sure it's cleared off.
Jul 26 2022
Jul 26 2022
• werner triaged T6041: pinentry-qt dialog window no longer floats under Sway (fixed after 1.2.0) as Normal priority.
• werner triaged T6085: pinentry-qt: Earlier passphrase hint when creating new key as Normal priority.
Jul 22 2022
Jul 22 2022
@gniibe Thanks!
In the repo, for all related software, it's done.
Note that versions since 2020-11-07 to 2021-07-03 have major problem with non-POSIX shell, which doesn't support $(..) construct.
Jul 18 2022
Jul 18 2022
Thank you.
Jul 15 2022
Jul 15 2022
it seems to be a GnuPG-VSD packaging issue, then
It's already possible to define a short and a long hint for the constraints via the file doc/help.txt and its translations. This is a standard technique used by GnuPG for customization of several UI texts. Since the passphrase constraints can be very complex we don't try to come up with a suitable default hint.
• ikloecker renamed T6085: pinentry-qt: Earlier passphrase hint when creating new key from earlier passphrase hint when creating new key to pinentry-qt: Earlier passphrase hint when creating new key.
Jul 8 2022
Jul 8 2022
It looks like having it set will stop fallback from working entirely? Would you say that this cannot be fixed if WAYLAND_DISPLAY is set like I do above?
It looks like having it set will stop fallback from working entirely? Would you say that this cannot be fixed if WAYLAND_DISPLAY is set like I do above?
Jul 6 2022
Jul 6 2022
• ikloecker triaged T6061: pinentry-qt on wayland does not fallback to pinentry-curses as Low priority.
pinentry does the following to check if it's running in a GUI session:
// check a few environment variables that are usually set on X11 or Wayland sessions
const bool hasWaylandDisplay = qEnvironmentVariableIsSet("WAYLAND_DISPLAY");
const bool isWaylandSessionType = qgetenv("XDG_SESSION_TYPE") == "wayland";
const bool hasX11Display = pinentry_have_display(argc, argv);
const bool isX11SessionType = qgetenv("XDG_SESSION_TYPE") == "x11";
const bool isGUISession = hasWaylandDisplay || isWaylandSessionType || hasX11Display || isX11SessionType;i.e. it checks if a few environment variables are set or have a specific value.
Jun 23 2022
Jun 23 2022
gspr updated the task description for T6041: pinentry-qt dialog window no longer floats under Sway (fixed after 1.2.0).
gspr updated the task description for T6041: pinentry-qt dialog window no longer floats under Sway (fixed after 1.2.0).
• ikloecker updated the task description for T6041: pinentry-qt dialog window no longer floats under Sway (fixed after 1.2.0).
Jun 9 2022
Jun 9 2022
Backported to GnuPG 2.2.
Jun 1 2022
Jun 1 2022
I take this ticket. The way to go is removing all such cases.
May 31 2022
May 31 2022
Reference to a CVE for old MinGW-W64: https://nvd.nist.gov/vuln/detail/CVE-2018-1000101
https://sourceforge.net/p/mingw-w64/bugs/709/
At least old Windows versions did not add a nul in the truncation case. Thus I used to make that sure. I don't think we need it anymore.
May 30 2022
May 30 2022
AFAIK the above case has a lot of wiggle room to fit one PID and the surrounded string into 400 bytes and even if it would need to truncate, it would write terminating character, at least on Linux:
--- a/pinentry/pinentry.c +++ b/pinentry/pinentry.c @@ -351,7 +351,6 @@ get_pid_name_for_uid (unsigned long pid, int uid) char *uidstr;
May 27 2022
May 27 2022
May 25 2022
May 25 2022
Pushed the solution which doesn't require new flag for libassuan.
^-- I withdraw the solution (with error value) above.
May 24 2022
May 24 2022
Or, it would be good for client side (in this case, gpg-agent) to specify the flag in the inquiry callback, that is, it's a kind of transient flag for a single transaction.
Revised version with new flag ASSUAN_CLEAR_INQUIRY_DATA.
May 19 2022
May 19 2022
For this particular issue of assuan_inquire, if it's needed, the point we should fix is:
May 18 2022
May 18 2022
AFAICS, we need to implement a new Assuan flag and wipe the data passed to the callback after the callback returned.
May 13 2022
May 13 2022
May 12 2022
May 12 2022
• ikloecker changed the status of T5972: Can't insert charaters in a magic-wand generated password from Open to Testing.
Editing a formatted password should work now as expected.
• ikloecker added a project to T5972: Can't insert charaters in a magic-wand generated password : Restricted Project.
• ebo reassigned T5972: Can't insert charaters in a magic-wand generated password from • ebo to • ikloecker.
Its an issue of cursor position. If one either deletes or inputs a a character anywhere in the password string, the cursor always jumps to the end of the string.
May 11 2022
May 11 2022
• werner triaged T5972: Can't insert charaters in a magic-wand generated password as Normal priority.
Apr 29 2022
Apr 29 2022
• werner triaged T5955: pinentry-efl sends warnings to stderr, does not close windows during getpin as Normal priority.
Apr 28 2022
Apr 28 2022
Apr 4 2022
Apr 4 2022
LRitzdorf added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
On at least some small terminals (like the smartphone size I mentioned in my original comment), I can confirm that this is a true loop. When originally reporting the issue, one of the things I tested was repeatedly pressing the Enter key with an empty password field. In that test, the password prompt looped for the 20 or so times I continued to press Enter.
Apr 1 2022
Apr 1 2022
• ikloecker added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
I experimented a bit. The problem is the size of button texts of the confirmation dialog, i.e. of "Yes, protection is not needed" and "Enter new passphrase". pinentry-curses checks if 3 times the size of the longest text plus a few pixels for the frame fit into the terminal's width. There can be up to 3 buttons, but in case there are only two buttons this check is too strict.
• ikloecker added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
Hmm, okay. Trying the same on an 80x72 terminal I can indeed reproduce a loop. Sorry, for the noise.
• ikloecker added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
Just one bit of additional information: Using gpg (GnuPG) 2.3.5-beta17 on a large terminal I just tried quick generating a new key with a fresh GNUPGHOME where I only set pinentry-program /usr/bin/pinentry-curses in ${GNUPGHOME}/gpg-agent.conf.
bernhard renamed T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals from pinentry: pinentry-curses doesn't allow to set no password or weak passwords on small terminals to pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
bernhard added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
I don't see a point in trying to make the fancy curses pinentry work on small terminals.
Mar 31 2022
Mar 31 2022
• werner added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
There is also the very simple pinentry-tty
LRitzdorf added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
As an end user, the --pinentry-mode=loopback flag does exactly what I'd want to resolve this issue. Just to give it more visibility, is there any chance we could try to detect when the user's terminal is too small, and print a message suggesting they use that flag?
• ikloecker added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
I don't see a point in trying to make the fancy curses pinentry work on small terminals. People using small terminals can use --pinentry-mode=loopback to get a simple passphrase prompt that works on terminals of any size.
bernhard added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
From my point of view it should be fixed by adding line-breaks to make it work on small terminals. It is better to break the formatting, but allow it, instead of bailing out and leaving the user only with the option to use the more complicated interface. This problem could also affect other password entries where a longer information is displayed.
bernhard added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
An alternative to password creation in small terminals could be https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html#Unattended-GPG-key-generation
bernhard renamed T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals from pinentry: pinentry-curses doesn't allow to set no password on small terminals to pinentry: pinentry-curses doesn't allow to set no password or weak passwords on small terminals.
bernhard added a comment to T4924: pinentry: pinentry-curses doesn't allow to set no password or weak passwords on 80 char width and smaller terminals.
@LRitzdorf it should work if you enter an acceptable passphrase. (I've just tried with 56x51 widthxheight and it worked)
Mar 25 2022
Mar 25 2022
• werner renamed T5885: Better message than "Inappropriate ioctl for device" for tty pinentries from gpg --import of secret key from stdin fails confusingly to Better message than "Inappropriate ioctl for device" for tty pinentries.
• gniibe added a project to T5893: Patches to compile pinentry-1.2.0 cleanly with mingw.org's MinGW: Restricted Project.
Mar 24 2022
Mar 24 2022
• gniibe added a comment to T5893: Patches to compile pinentry-1.2.0 cleanly with mingw.org's MinGW.
And I move functions from pinentry.c to pinentry-curses.c, so that pinentry-w32.exe can be build with no libiconv (which is actually not used).
Thank you for your report.
Mar 15 2022
Mar 15 2022
• werner renamed T5879: Source of Pinentry title from Source of password prompt to Source of Pinentry title.
