Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gopass Bridge cannot handle tilde in Gopass path #60

Open
cloudlena opened this issue Dec 7, 2021 · 6 comments
Open

Gopass Bridge cannot handle tilde in Gopass path #60

cloudlena opened this issue Dec 7, 2021 · 6 comments
Labels

Comments

@cloudlena
Copy link

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 cloudlena changed the title Gopass Bridge cannot handle tildae in Gopass path Gopass Bridge cannot handle tilde in Gopass path Mar 21, 2022
@martinhoefling
Copy link

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

@cloudlena
Copy link
Author

cloudlena commented Apr 9, 2022

@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 gopasspw/gopass#1713. However, gopassbridge hasn't fixed the issue yet.

@martinhoefling
Copy link

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
Copy link
Author

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 martinhoefling transferred this issue from gopasspw/gopassbridge May 2, 2022
@martinhoefling
Copy link

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

@cloudlena
Copy link
Author

cloudlena commented May 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants