gopassbridge icon indicating copy to clipboard operation
gopassbridge copied to clipboard

Pinentry failing on Firefox/Ubuntu

Open bendk opened this issue 3 years ago • 7 comments

Summary

I'm having issues with entering my password with the firefox addon on Ubuntu 20.10. When I click on the addon icon, I see the list of matching entries, but when I click on any of them (or the buttons), I see "Failed to get secret: failed to decrypt"

Steps To Reproduce

  • Click on gopass icon
  • Search for any gopass entry
  • Click on the entry

Expected behavior

pinentry-gnome3 pops up

Environment

  • OS: Ubuntu 20.10
  • OS version: Linux pitpat 5.8.0-28-generic #30-Ubuntu SMP Thu Nov 5 13:24:33 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • gopass Version: gopass 1.10.1+377d2ab8507ed6d0025a1d18acf390d38680d0aa (377d2ab8507ed6d0025a1d18acf390d38680d0aa) go1.14.2 linux amd64
  • Installation method: Deb package from the releases page

Additional context

  • pinentry works fine with gpg from the gnome terminal, and it pops up the gnome3 version.
  • I believe I'm using X11, not wayland. That's what it says in about:support at least.

I tried the solution from gopasspw/gopass#1165 of adding export $(dbus-launch) to my gopass_wrapper.sh and it seems to somewhat work. The pinentry does pop up, but after a significant delay. It's also odd because I know I have DBUS env vars set in the gopass_wrapper script. Here's the output of env inside the wrapper, before calling db-launch:

DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
DESKTOP_SESSION=ubuntu
DISPLAY=:0
force_s3tc_enable=true
GDMSESSION=ubuntu
GIO_LAUNCHED_DESKTOP_FILE_PID=15324
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/firefox.desktop
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_SHELL_SESSION_MODE=ubuntu
GPG_AGENT_INFO=/run/user/1001/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOME=/home/ben
IM_CONFIG_PHASE=1
INVOCATION_ID=25ad85601c2d45068668bc5ca9beede5
JOURNAL_STREAM=8:36591
LANG=en_US.UTF-8
LOGNAME=ben
MANAGERPID=1045
MOZ_APP_LAUNCHER=/usr/bin/firefox
MOZ_ASSUME_USER_NS=1
MOZ_CRASHREPORTER_DATA_DIRECTORY=/home/ben/.mozilla/firefox/Crash Reports
MOZ_CRASHREPORTER_EVENTS_DIRECTORY=/home/ben/.mozilla/firefox/xrlozeby.default-release/crashes/events
MOZ_CRASHREPORTER_PING_DIRECTORY=/home/ben/.mozilla/firefox/Pending Pings
MOZ_CRASHREPORTER_RESTART_ARG_0=/usr/bin/firefox
MOZ_CRASHREPORTER_RESTART_ARG_1=-new-window
MOZ_CRASHREPORTER_RESTART_ARG_2=
MOZ_CRASHREPORTER_STRINGS_OVERRIDE=/usr/lib/firefox/browser/crashreporter-override.ini
MOZ_LAUNCHED_CHILD=
NO_AT_BRIDGE=1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/ben/.config/gopass
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
SESSION_MANAGER=local/pitpat:@/tmp/.ICE-unix/1416,unix/pitpat:/tmp/.ICE-unix/1416
SHELL=/usr/bin/fish
SHLVL=0
SSH_AGENT_PID=1364
SSH_AUTH_SOCK=/run/user/1001/keyring/ssh
USER=ben
USERNAME=ben
_=/usr/bin/dbus-update-activation-environment
WINDOWPATH=2
XAUTHORITY=/run/user/1001/gdm/Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
XDG_CURRENT_DESKTOP=ubuntu:GNOME
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1001
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
XMODIFIERS=@im=ibus
XRE_BINARY_PATH=
XRE_PROFILE_LOCAL_PATH=
XRE_PROFILE_PATH=
XRE_RESTARTED_BY_PROFILE_MANAGER=
XRE_START_OFFLINE=
XUL_APP_FILE=

I added some logging to gpg-agent using this config file:

default-cache-ttl 300
max-cache-ttl 999999
log-file /home/ben/gpg-agent.log
max-cache-ttl 0
debug-level guru
debug-pinentry
debug 1024

Here's the logs from the failed attempts (without the extra dbus-launch hack)

2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 -> OK Pleased to meet you, process 30450
2020-11-12 09:54:25 gpg-agent[30450] DBG: chan_6 <- OK Pleased to meet you, process 30450
2020-11-12 09:54:25 gpg-agent[30450] DBG: chan_6 -> BYE
2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 <- BYE
2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 -> OK closing connection
2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 -> OK Pleased to meet you, process 30464
2020-11-12 09:54:25 gpg-agent[30464] DBG: chan_6 <- OK Pleased to meet you, process 30464
2020-11-12 09:54:25 gpg-agent[30464] DBG: chan_6 -> BYE
2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 <- BYE
2020-11-12 09:54:25 gpg-agent[26257] DBG: chan_10 -> OK closing connection
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK Pleased to meet you, process 30482
2020-11-12 09:54:26 gpg-agent[30482] DBG: chan_6 <- OK Pleased to meet you, process 30482
2020-11-12 09:54:26 gpg-agent[30482] DBG: chan_6 -> BYE
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- BYE
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK closing connection
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK Pleased to meet you, process 30495
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- RESET
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION ttyname=not a tty
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION display=:0
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION xauthority=/run/user/1001/gdm/Xauthority
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION putenv=XMODIFIERS=@im=ibus
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION putenv=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION putenv=QT_IM_MODULE=ibus
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION lc-ctype=en_US.UTF-8
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION lc-messages=en_US.UTF-8
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- GETINFO version
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> D 2.2.20
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION allow-pinentry-notify
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- OPTION agent-awareness=2.1.0
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- HAVEKEY 09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- HAVEKEY 979C4F0F7D6B918ECF61C9903067CEC9C2EDEAF5 09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C 7485C84007B22895CCAB7310F31B89079B06CB4F DFA1FFF2F8DC46DBC9367D399D3E119480A8F960
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- HAVEKEY 09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- RESET
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- SETKEY 09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- SETKEYDESC Please+enter+the+passphrase+to+unlock+the+OpenPGP+secret+key:%0A%22Ben+Dean-Kawamura+<[email protected]>%22%0A2048-bit+RSA+key,+ID+9572B0E8345F901C,%0Acreated+2012-03-27+(main+key+ID+B0F8C5A1EDDA3AED).%0A
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- PKDECRYPT
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> S INQUIRE_MAXLEN 4096
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> INQUIRE CIPHERTEXT
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- [ 44 20 28 37 3a 65 6e 63 2d 76 61 6c 28 33 3a 72 ...(275 byte(s) skipped) ]
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- END
2020-11-12 09:54:26 gpg-agent[26257] DBG: keygrip: 09 B8 5C A2 F4 C5 CE 35 98 B0 B9 A5 E2 DB 8E CC E3 78 AC 9C
2020-11-12 09:54:26 gpg-agent[26257] DBG: cipher:  28 37 3A 65 6E 63 2D 76 61 6C 28 33 3A 72 73 61 28 31 3A 61 32 35 36 3A 1C B4 E8 CA 86 35 26 10 A4 EE EC 82 BB 7E AE A9 B7 2D E6 2B 86 CE B7 48 09 59 DF 68 C8 C7 18 1E 4D B7 1E 75 76 E6 02 1C 32 B3 49 4B 9F 06 8F C3 A2 AF 8A E3 41 FF A3 23 AE 7F ED E0 2D BF 47 9F FA C6 59 9F 59 0E A9 15 EB 1E 45 E4 CE 41 1E 9B F8 EE 53 DB F0 5D 74 5F 9F B8 B9 D2 7C FC DA A1 EA 3D AE 03 34 28 73 70 BF ED 87 C8 A4 AF B3 E0 18 A6 79 A9 F0 79 30 3C D3 F1 E2 97 29 03 B8 FC 6D 28 02 10 10 F4 F5 99 A9 0D 8B 1A 1F 2C 95 F7 2C D8 21 9A 52 4D 34 8D 97 CD D3 2A 20 3E 6D 60 96 2C F0 C3 4D 9F 09 C2 6B B7 70 F8 30 D0 55 3F B6 B1 5C 07 56 BB E3 48 5B 63 91 8D 9B 0A 8A 8A E0 1D 24 C6 BA 59 44 84 89 F1 1B 59 9E 53 0E A0 39 5C 55 A2 57 CA CA 1F 59 0D 17 31 04 76 7B E4 4B C8 74 19 C8 61 43 8A 31 9E E3 C7 45 3C BA D4 D8 84 5D 44 7D 6D 6F E9 F2 BA CF 4C AD A3 F3 D4 29 29 29
2020-11-12 09:54:26 gpg-agent[26257] DBG: agent_get_cache '09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C'.0 (mode 2) ...
2020-11-12 09:54:26 gpg-agent[26257] DBG: ... miss
2020-11-12 09:54:26 gpg-agent[26257] DBG: agent_get_cache '09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C'.0 (mode 2) (stored cache key) ...
2020-11-12 09:54:26 gpg-agent[26257] DBG: ... miss
2020-11-12 09:54:26 gpg-agent[26257] starting a new PIN Entry
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK Pleased to meet you, process 26257
2020-11-12 09:54:26 gpg-agent[26257] DBG: connection to PIN entry established
2020-11-12 09:54:26 gpg-agent[26257] DBG: pinentry: atfork used setenv(XAUTHORITY,/run/user/1001/gdm/Xauthority)
2020-11-12 09:54:26 gpg-agent[26257] DBG: pinentry: atfork used setenv(XMODIFIERS,@im=ibus)
2020-11-12 09:54:26 gpg-agent[26257] DBG: pinentry: atfork used setenv(DBUS_SESSION_BUS_ADDRESS,unix:path=/run/user/1001/bus)
2020-11-12 09:54:26 gpg-agent[26257] DBG: pinentry: atfork used setenv(QT_IM_MODULE,ibus)
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION no-grab
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION ttyname=not a tty
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION lc-ctype=en_US.UTF-8
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION lc-messages=en_US.UTF-8
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION allow-external-password-cache
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-ok=_OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-cancel=_Cancel
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-yes=_Yes
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- ERR 83886254 Unknown option <Pinentry>
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-no=_No
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- ERR 83886254 Unknown option <Pinentry>
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-prompt=PIN:
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-pwmngr=_Save in password manager
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-cf-visi=Do you really want to make your passphrase visible on the screen?
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-tt-visi=Make passphrase visible
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION default-tt-hide=Hide passphrase
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION touch-file=/run/user/1001/gnupg/S.gpg-agent
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> OPTION owner=30495 pitpat
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> GETINFO flavor
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- D gnome3
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> GETINFO version
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- D 1.1.0
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> GETINFO ttyinfo
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- D not a tty - :0
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> GETINFO pid
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- D 30498
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> INQUIRE PINENTRY_LAUNCHED 30498 gnome3 1.1.0 not a tty - :0
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- END
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> SETKEYINFO n/09B85CA2F4C5CE3598B0B9A5E2DB8ECCE378AC9C
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> SETDESC Please enter the passphrase to unlock the OpenPGP secret key:%0A%22Ben Dean-Kawamura <[email protected]>%22%0A2048-bit RSA key, ID 9572B0E8345F901C,%0Acreated 2012-03-27 (main key ID B0F8C5A1EDDA3AED).%0A
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> SETPROMPT Passphrase:
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- OK
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> [[Confidential data not shown]]
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 <- [[Confidential data not shown]]
2020-11-12 09:54:26 gpg-agent[26257] DBG: error calling pinentry: Operation cancelled <Pinentry>
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_12 -> BYE
2020-11-12 09:54:26 gpg-agent[26257] failed to unprotect the secret key: Operation cancelled
2020-11-12 09:54:26 gpg-agent[26257] failed to read the secret key
2020-11-12 09:54:26 gpg-agent[26257] command 'PKDECRYPT' failed: Operation cancelled <Pinentry>
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 -> ERR 83886179 Operation cancelled <Pinentry>
2020-11-12 09:54:26 gpg-agent[26257] DBG: chan_10 <- [eof]

bendk avatar Nov 12 '20 15:11 bendk

One more thing: If I have my credentials cached, everything seems to work fine. In fact, right now I'm using a workaround where I map a keyboard shortcut to run gpg --decrypt, which causes the pinentry to open. I can get things working by runing that command, then opening gopass-bridge.

bendk avatar Nov 12 '20 15:11 bendk

One more datapoint is that the pinentry does work for sites that are requesting credentials via HTTP basic auth. I'm not sure why that would be different, maybe it's a window management issue where firefox is causing the pinentry window to be closed.

bendk avatar Nov 13 '20 16:11 bendk

Any progress on that? I've got the exact same problem (dbus-launch helps, it works with HTTP basic auth, etc.) and it is quite disturbing.

@bendk Can you please try to run the command with type "getLogin" given at the end of https://github.com/gopasspw/gopass/issues/1037#issuecomment-451760918 (ofc with an entry that does exist in your gopass) to check if it is gopassbridge that is causing the problem?

This one?

echo '{"type":"getLogin","entry":"github.com"}' | ./test-client | gopass jsonapi listen

It works fine, except I need to change gopass jsonapi to gopass-jsonapi (and change the entry to something in by store).

BTW, I've been dealing fine by using the gpg --decrypt hack, maybe it could work for you:

  • Bind a keyboard shortcut to gpg --decrypt [path-to-some-encrypted-file]
  • Whenever you want to get something from go pass, just remember to start by hitting the keyboard shortcut and entering your password. They keyboard shortcut is a bit weird, but it's not any more work because you need to switch to your keyboard anyways to start the password input.
  • Once you enter your password, it should be cached for a bit and you can use the gopass-bridge menu without issues.

bendk avatar Dec 11 '20 15:12 bendk

I'm experiencing the exact same issue. Currently, I'm using the workaround suggested by bendk as well (thanks for that btw.)

Environment:

  • OS: Ubuntu 20.04
  • OS version: Linux version 5.4.0-58-generic (buildd@lcy01-amd64-004) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
  • gopass version: gopass 1.10.1+377d2ab8507ed6d0025a1d18acf390d38680d0aa (377d2ab8507ed6d0025a1d18acf390d38680d0aa) go1.14.2 linux amd64
  • Installation method: Deb package from the releases page

The jsonapi test command works without complaints on my machine as well:

echo '{"type":"getLogin","entry":"github.com"}' | ./test-client | gopass-jsonapi listen

SwamyDev avatar Dec 12 '20 09:12 SwamyDev

Same issue here with Firefox 86 on Ubuntu 20.04 with gnome and X11. Tried the workaround with export $(dbus-launch) leading to the same results @bendk had.

When debugging the extension I get the following error on the console:

Promise rejected after context unloaded: Actor 'Conduits' destroyed before query 'RuntimeMessage' was resolved
_onEntryAction moz-extension://fa31890c-89f4-4093-a3f0-f7ae1838c29b/search.js:192

The weird thing is that it worked once when I set a breakpoint (in background.js line 66) and stepped through the code... After that it didn't even stop at the breakpoints anymore.

Maybe anyone knows what this is about or has an Idea how this can be solved?

nexx512 avatar Mar 15 '21 21:03 nexx512

I found another "workaround" that avoids the long delay coming with the modified wrapper script. According to the statement on https://github.com/browserpass/browserpass-extension#faq that firefox has issues with pinentry-gnome3, I compiled and installed pinentry without gnome3 support manually from https://gnupg.org/download/index.html. After that firefox used the gtk2 pinentry dialog. Before installing pinentry I also updated gpg to version 2.2.29 but the error still existed. So I don't think that updating gpg is necessary. I assume that pinentry without gnome3 should be enough.

nexx512 avatar Jul 08 '21 06:07 nexx512