GNU bug report logs -
#78490
Feature Request: secrets.el should handle org.freedesktop.Secret.Prompt for KeePassXC approval
Previous Next
Reported by: André Colomb <src <at> andre.colomb.de>
Date: Mon, 19 May 2025 05:33:01 UTC
Severity: wishlist
Fixed in version 30.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Emacs developers,
I hope this is the right channel to pose such a feature request,
especially concerning the secrets.el component. If not, please direct
me to the right venue.
I've been trying to switch my Secret-Service integration within Emacs
(used by magit via ghub via auth-source via secrets.el) from accessing
the GNOME Keying Daemon to KeePassXC as the backend.
It works in principle, but as soon as the option in KeePassXC "Confirm
when passwords are retrieved by clients" is activated, the credential
lookup fails silently. Normally, a graphical prompt should pop up from
KeePassXC to either allow or deny the request. That part works
perfectly using other methods such as secret-tool from the command line.
Some further investigation and a helpful ChatGPT interrogation pointed
toward the culprit here: Emacs' secrets.el simply doesn't implement the
unlocking workflow of that API. AFAIUI, the DBus call returns an error
code org.freedesktop.Secret.Error.IsLocked, and a Prompt object whose
"Prompt" method needs to be invoked via DBus to show the confirmation
popup. The same behavior can be reproduced using the "M-x
secrets-show-secrets" command.
Is there a chance this could be properly added to secrets.el? I
wouldn't even mind if the whole lisp execution got blocked while waiting
for a response to the popup.
Unfortunately, I have no experience at all in Emacs lisp development, so
I doubt I'd be able to provide a patch myself. Would be happy to test a
patch though, as long as it only needs a new version of secrets.el, not
a whole rebuild of Emacs.
I am running: GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.41, cairo version 1.18.0) of 2024-04-01, modified by Debian;
installed from the Ubuntu 24.04 packages.
Thanks in advance and kind regards
André
This bug report was last modified today.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.