gopass show doesn't display password, even with -C

Created on 11 May 2020  Â·  8Comments  Â·  Source: gopasspw/gopass

Summary

Latest release doesn't show the password anymore, even when called with -C.

  • OS: Arch
  • OS version: Latest
  • gopass 1.9.1
can-not-reproduce

Most helpful comment

Thank you all for reporting on this issue.

In https://github.com/gopasspw/gopass/issues/1323#issuecomment-623656339 I have listed the intended behaviour and verified that HEAD still works that way. So the current implementation is working as intended.

However there seem to be two issues here:

  • the default for autoclip used to be true and was only recently changed to false. Whoever started using between 1.4 and 1.8 likely has autoclip set to true. In #1327 the previously inconsistent behaviour of autoclip was fixed leading to surprising behaviour for some users. This was definitely not intended, I'm afraid. However now I don't see any clean way to go back.
  • autoclip interacts poorly with non-interactive usage. This can probably be improved. This should be tracked in #1352.

For now please make sure to use gopass show -f in your scripts.

All 8 comments

Sorry, I can't reproduce this.
For me it's working with either autoclip true or false.

Do you have more information to reproduce?

I can reproduce it and actually came here because of the same problem.

$ pass twitter.com/MetalMatze 
✔ Copied twitter.com/MetalMatze to clipboard. Will clear in 10 seconds.
$ pass show twitter.com/MetalMatze
✔ Copied twitter.com/MetalMatze to clipboard. Will clear in 10 seconds.
$ pass show -o twitter.com/MetalMatze                                                                                                                                                
✔ Copied twitter.com/MetalMatze to clipboard. Will clear in 10 seconds.
XXX

As you can see only show -o actually outputs the contents of the password.
This is also a breaking change in the API, which I noticed because I started piping Copied twitter.com/MetalMatze to clipboard. Will clear in 10 seconds. into my password fields:

gopass ls --flat | dmenu | xargs --no-run-if-empty gopass show | head -n 1 | xdotool type --clearmodifiers --file -

Running on Arch Linux:

gopass version 
gopass 1.9.1 (2020-05-10 11:42:40) go1.14.2 linux amd64
<root>     - gpg 2.2.20 - git 2.26.2 -   fs 0.1.0
Available Crypto Backends: age, gpgcli, plain, xc
Available RCS Backends: gitcli, noop
Available Storage Backends: fs, inmem

After updating on Arch to
gopass 1.9.1 (2020-05-10 11:42:40) go1.14.2 linux amd64
My autoclip settings was suddenly set to true. After changing it, it works as expected and does print the password when issuing gopass my/secret

Same here, -c stopped working with latest update I got
1.9.0-2
EDIT: well, maybe not the same, I can get the password on the commandline, it just doesn't copy to the clipboard
EDIT2: Only --alsoclip option works and updates my clipboard

@chama-chomo you do not have the latest version. The latest is 1.9.1, where the issues you are describing have been solved

After updating on Arch to
gopass 1.9.1 (2020-05-10 11:42:40) go1.14.2 linux amd64
My autoclip settings was suddenly set to true. After changing it, it works as expected and does print the password when issuing gopass my/secret

This was My case as well the autoclip was set true in *$XDG_CONFIG" config.yml
which broke rofi_pass and other scripts I have pulling passwords..

Had exactly the same problem, flipped autoclip to false and passwords showed up again.
In the meantime it broke my scripts too, not a big deal, but I was quite perplexed at first xD

Thank you all for reporting on this issue.

In https://github.com/gopasspw/gopass/issues/1323#issuecomment-623656339 I have listed the intended behaviour and verified that HEAD still works that way. So the current implementation is working as intended.

However there seem to be two issues here:

  • the default for autoclip used to be true and was only recently changed to false. Whoever started using between 1.4 and 1.8 likely has autoclip set to true. In #1327 the previously inconsistent behaviour of autoclip was fixed leading to surprising behaviour for some users. This was definitely not intended, I'm afraid. However now I don't see any clean way to go back.
  • autoclip interacts poorly with non-interactive usage. This can probably be improved. This should be tracked in #1352.

For now please make sure to use gopass show -f in your scripts.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dragetd picture dragetd  Â·  3Comments

gnosthi picture gnosthi  Â·  5Comments

doronbehar picture doronbehar  Â·  4Comments

dominikschulz picture dominikschulz  Â·  5Comments

sevenmaxis picture sevenmaxis  Â·  4Comments