gopass-jsonapi icon indicating copy to clipboard operation
gopass-jsonapi copied to clipboard

Gopass Bridge cannot handle tilde in Gopass path

Open cloudlena opened this issue 3 years ago • 6 comments

In my Gopass config, I'm using a ~ to specify the path: https://github.com/cloudlena/dotfiles/blob/main/gopass/.config/gopass/config.yml#L2

This works fine with the gopass command, but Gopass Bridge cannot handle it. Everything works fine if I replace ~ with /home/lena though.

cloudlena avatar Dec 07 '21 08:12 cloudlena

Can you point out what you replace where in gopassbridge and what the expected result is?

martinhoefling avatar Apr 08 '22 20:04 martinhoefling

@martinhoefling, I don't understand your question.

My gopass config is the one I posted above. In its path, it contains a ~, which represents my home directory. gopass itself parses that correctly and it all works. gopass bridge, however, doesn't parse my config correctly and doesn't work.

gopass itself used to have the same problem, and it was fixed by https://github.com/gopasspw/gopass/pull/1713. However, gopassbridge hasn't fixed the issue yet.

cloudlena avatar Apr 09 '22 08:04 cloudlena

Are you talking about the gopass-jsonapi that is used for communication with gopass? I don't see how the browser plugin uses the tilde. What gopass and gopass-jsonapi versions are you using?

martinhoefling avatar Apr 09 '22 15:04 martinhoefling

Thanks, @martinhoefling! From your answer, I'm guessing that the same path I'm putting in the config is also exposed via jsonapi, yes.

cloudlena avatar Apr 09 '22 19:04 cloudlena

Seems like this is an issue with the json API. Can you post the exact version of your binaries (gopass and gopass-jsonapi)?

martinhoefling avatar May 02 '22 07:05 martinhoefling

gopass 1.14.0 go1.18.1 linux amd64 gopass-jsonapi version 1.11.1

cloudlena avatar May 02 '22 08:05 cloudlena