-
Notifications
You must be signed in to change notification settings - Fork 80
Firefox plugin not prompting for gpg password #23
Comments
Same here, but on Nightly I get a different output in the browser console.
|
I have the same problem. |
I also have this problem. I think there must be something different about the environment available to the browserpass program when invoked by firefox vs. when invoked by chrome because I was able to confirm that if I run the browserpass command directly in a terminal and feed it the input it expects to get to be asked to retrieve a password, it does pop up the gpg-agent passphrase dialog and retrieve the password. Somehow the pass command when run by browserpass run by firefox isn't able to find the agent to trigger the passphrase request and thus the pass command fails and browserpass returns an error to firefox I'm not sure what is different about the environment when firefox is running browserpass that triggers this nor whether there is anything that the extention author can do to fix it beyond failing a more specific bug with the firefox team. |
The reason why I think this may be different is that the passff implementation explicitly passes the environment variables firefox knows about to the pass executable in the params to
If I run these commands in the same terminal without the |
Oh interesting, that makes a lot of sense. |
Can someone please try manually building the Browserpass binary with 343722b to see if that fixes anything? It invokes the gpg command directly instead of invoking pass. If it still doesn't trigger the GPG agent, can you please invoke Chrome from the command line using:
That should enable logging and show all logging statements from Browserpass too which would be super helpful here. :) |
Alright, I built the binary
Just to be clear, the I haven't tested FireFox yet, which this ticket was originally about, but I can do that too if you want @dannyvankooten. I think the issue might lie in the broken directory outputted in the second last line. |
Interesting..
The password dialog will pop up occasionally, but not all of the time -- I haven't yet figured out why -- and when the password dialog does show up, it unlocks but I have to fill the field a second time. |
Interestingly enough, I noticed that I experience the same issue when using Gnome as desktop environment, but not on Unity (same machine for both cases, Ubuntu 16.04 with Firefox 52). |
@Railslide interesting, could it be related to gnome-keyring? https://wiki.gnupg.org/GnomeKeyring |
I've checked but it doesn't seem to be related to the issue described there (i.e. gnome-keyring hijacking gpg-agent) - it uses gpg-agent in both cases @marceloneil |
Can still reproduce this error. |
Is there any method where I can fix this temporarily? I have Ubuntu Gnome 17.04. I have tried to do "PASSWORD_STORE_DIR=/home/USER/.password-store firefox" in the terminal, but no luck. |
@cowai You can unlock your key before by executing |
@Thor77 After I use |
@mandarvaze no, you don't. Are you prompted for your password after executing the pass-command and if not, are you sure your gpg-agent is setup correctly? |
Hm, is your gpg-agent set up in a non-standard way? |
@Thor77 I don't know (whether it is set in a non-standard way) I didn't do any explicit setup for this ? I just executed following commands
Currently the following command is listed in the output of
How can I check whether |
I started a thread about this issue at https://mail.mozilla.org/pipermail/dev-addons/2017-July/002966.html. |
I also started a thread about this issue on the gnupg mailing list: https://lists.gnupg.org/pipermail/gnupg-users/2017-July/058660.html |
I just noticed it seems to be working now with the latest Nightly ( |
@Thor77 I have exactly the same Nightly but I still don't get the pinentry. I get this instead in the console:
|
Hm, you're right. On my laptop with the exact same setup it doesn't work either. |
I played with the environment variables and made sure the command |
Can you please try to add the following to your
then kill you gpg-agent
and try to use browserpass in Firefox? What happens? Do you see a pinentry window? I would also be interested in your desktop environment and operating system. |
@DamienCassou I'm on macOS, firefox 55.0 (64-bit) |
Mandar Vaze <notifications@github.com> writes:
@DamienCassou I'm on macOS, firefox 55.0 (64-bit)
do you have the problem with Firefox not showing the pinentry? Is there
another pinentry binary you could use?
…--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
|
@DamienCassou I am not sure when the pinentry is supposed to be shown. If I've "unlocked" the password from the terminal, then "search" works. "auto-fill" does not work.
|
A There is a PR #159, that also fixes gpg discovery, could be relevant. Who can still reproduce this issue? Could you try the code from #159 (there are binaries attached) together with configuring the GUI pinentry, and confirm if there is still an issue? |
Awesome news! I merged #159. I'll keep this bug open until I make a new release, please let me know if anyone still reproduces this issue on the latest |
Fixed in v2.0.0! 🎉 |
browserpass: v1.0.1
browserpass plugin: v1.0.2
pass: v1.6.5
firefox: 50.1.0
linux: x86_64 Linux 4.8.13-1-ARCH
I've been using the chrome plugin with no problem, but I've been experiencing a slight issue with the firefox plugin. Whenever I try to use the plugin when the password for my gpg key has NOT been cached, the plugin immediately closes and I get this error. I am not prompted for the password like in chrome.
When the password is cached (ie. I recently used the chrome plugin/pass), the firefox plugin works fine and enters in my password. I still get this output however:
Let me know if there is anything else I can do to resolve this bug.
Thanks,
Marcel
The text was updated successfully, but these errors were encountered: