gopasspw / gopass-jsonapi

Gopass Browser Bindings
MIT License
48 stars 17 forks source link

Gopass Bridge cannot handle tilde in Gopass path #60

Open cloudlena opened 2 years ago

cloudlena commented 2 years ago

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.

martinhoefling commented 2 years ago

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

cloudlena commented 2 years ago

@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.

martinhoefling commented 2 years ago

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?

cloudlena commented 2 years ago

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

martinhoefling commented 2 years ago

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

cloudlena commented 2 years ago

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