gopass: Failed to decrypt on Firefox addon
I’ve been using gopass for few months already. Unfortunately I’m not sure since when but gopass bridge is failing with failed to get secret: Failed to decrypt. I don’t recall playing with gpg lately. The gopass cli client works fine, and gopass bridge in Chromium works fine as well. Can’t figure out what might be the problem or how to fix that. I’d be happy if someone could help.
Versions:
- gopass 1.7.2 (39fb91ab96c8ba59b67c33d6b938a474dcbb5000) go1.10 linux amd64
- Mozilla Firefox 63.0
- gopass bridge 0.4.0, last updated November 5, 2018
- Ubuntu 18.04
- gpg (GnuPG) 2.2.4
- libgcrypt 1.8.1
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (9 by maintainers)
My first suspicion was that something related to pinentry is not handled correctly by
gopass jsonapi.So one problem here actually is that
gopass jsonapi listenwill use an empty string when the"entry"or"host"key is missing from the message, which made debugging this issue a bit confusing.@kleewho Could you please try the debugging command again with
'{"type":"getLogin","entry":"github.com"}'instead of'{"type":"getLogin","query":"github.com"}'? And if you still see the same error, could you please run it withexport GOPASS_DEBUG=trueand take a look at the log output? You can also post some of the debug logs here, but please check that there is not any sensitive information in them, that you might want to keep private. It might also be helpful to try these commands withGOPASS_DEBUG=true:gopass list --flatecho '{"type":"queryHost","host":"github.com"}' | ./test-client | gopass jsonapi listenecho '{"type":"query","query":"github.com"}' | ./test-client | gopass jsonapi listenecho '{"type":"getLogin","entry":"github.com"}' | ./test-client | gopass jsonapi listenThere is also some documentation here for the commands: https://github.com/gopasspw/gopass/blob/master/docs/jsonapi.md