-
Notifications
You must be signed in to change notification settings - Fork 80
Password decryption appears not to be attempted #266
Comments
The native app just calls the Things to try: run Firefox from terminal, see if you get some extra error logs. Try unlocking the gpg-agent beforehand, see if Firefox able to fill passwords when gpg doesn't need passphrase anymore. |
If I unlock the gpg key in advices it does seem to work; I'm not seeing any error messages from firefox on the command line. Do you have any advice on how to debug this further? Given it works on chrome my first suspect is firefox isn't setting the host-app's environment 'correctly' |
Hmm, this sounds extremely suspicious that your Firefox can make gpg to get the password, but not to show the pinentry dialog. What is the location of your |
Yeah. Very suspicious. I have no gpg-agent.conf ; just the attached gpg.conf (it's pretty ancient)
Path to gpg is /usr/bin/gpg |
I've checked the communication both ways on both firefox and chrome; also chcked the environment with a wrapper script around the host app. While chrome is sending autoSubmit:True; and firefox autoSubmit:False; I don't t think this is relevant as I can send the firefox request verbatim to the host app (using a python repl to ensure the binary length field is not corrupted.) and I get the password unlocked correctly. I no see an error being returned form the hsot app in failure cases "exit status 2\ngpg: decryption failed: No secret key\n" ; but it doesn't show on the UI Could there be some sort of very small timeout in firefox which I am hitting in some manner? I have also tried debian's firefox 52.8.1_esr-2; and mozilla binaty download of firefox 60.0.2. |
The reason I asked about
Wow this is very difficult case... One more idea, try to see if you can get to a browser console, or developer tools in chromium, and see maybe browserpass is writing some error logs there. I think the link to devtools is somewhere in Addons > Debug addons. |
Ok; I'm seeing the following when it fails
(Sorry about the formatting - it's just cut and pasted from the add-on debugger console) I'm intrigued by 1) The NS error is shown after the status - but it does have an earlier timestamp. If I unlock the password key and try I get the following:-
|
I'm having exactly the same issue with PureOS (Debian-based). This seems to be an issue with gnome-shell. The following shows up in
It's a pretty weak workaround at the moment, but pinentry-gnome will let you register your GPG password with the gnome keychain. |
Unfortunately I don't know how I can help, it does seem the pinentry you are using is buggy. If you can set a different pinentry in
|
General information
Compiled myself; -v = "Browserpass host app version: 2.0.19"
from commit id #4ca5c7c0d557f4aece063da54683eb04436d59be
Install from the extensions tab and seaching by name inside firefox.
browserpass-ce 2.0.21
Exact steps to reproduce the problem
What should happen?
I would expect gpg to ask me for my passphrase (via the gnome-sessions gpg-agent feature) ; then the password to be decoded and filled into the password on the current page.
What happened instead?
I got busy logo for a few seconds and then the dialog box disappeared. I didn't get any gpg passphrase prompts at all.
Some notes;
This version of the Native host app works fine with the same extension under google-chrome. I updated the native host helper app to commit id #62bda2a62348be40ab64b2a603ae756fb5f7b869 (2.0.21+) as part wrting this bug report and I still have the same behaviour
The text was updated successfully, but these errors were encountered: