-
-
Notifications
You must be signed in to change notification settings - Fork 501
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 init --crypto age fails if pgp tools are not installed. #1655
Comments
Seems this is currently by design:
We use pinentry to ask for passwords. Now the question becomes: should we have an alternative that allows to not have pinentry? |
suggest using this : github.com/Songmu/prompter looks battle tested: https://github.com/search?l=Go&q=github.com%2FSongmu%2Fprompter&type=Code is cross platform also |
FWIW, pinentry-mac does not require gpg and aside from using Assuan as the protocol, is a fairly independent tool. https://formulae.brew.sh/formula/pinentry-mac yubikey-agent also depends on pinentry-mac and doesn't use PGP. |
According to my understanding, pinentry and gpg/pgp are completely independent. The implementation of finding the BTW: Whereas : for |
pinentry is important for several core use cases, but falling back to reading a password from the command line might be an option. Not sure if I want to add that complexity, but we can consider it. We wouldn't need to use prompter, we have a helper lib that does the same thing already. But if prompter (or some other lib) proves to be more robust refactoring that might be a new cleanup, too. |
Then the easiest would be to have this as a fallback if no pinentry is found. No need to get new dependencies if something exist. |
Fixes gopasspw#1655 RELEASE_NOTES=[ENHANCEMENT] Add Pinentry CLI fallback Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Fixes gopasspw#1655 RELEASE_NOTES=[ENHANCEMENT] Add Pinentry CLI fallback Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
I have created #1697, but I'm still not sure if I want to merge this. Let me know what you think. |
Fixes gopasspw#1655 RELEASE_NOTES=[ENHANCEMENT] Add Pinentry CLI fallback Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Fixes #1655 RELEASE_NOTES=[ENHANCEMENT] Add Pinentry CLI fallback Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
@dominikschulz some late feedback!
I looked at #1697 and looks very good to me! |
Fixes gopasspw#1655 RELEASE_NOTES=[ENHANCEMENT] Add Pinentry CLI fallback Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Summary
gopass init --crypto age fails if pgp tools such as pinentry-mac are not installed.
I am using age because for end users its so much easier for them, in that pinentry-mac is not needed.
How about
Steps To Reproduce
Expected behaviour
Should not require the user to have pinentry-mac, since they are not using pgp as the basis of their crypto.
Environment
OS: Mac OS X Big sur
OS version:
uname -a
Darwin x-MacBook-Pro.local 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
gopass Version:
gopass --version
gopass 1.10.1-git+HEAD go1.15.5 darwin amd64
Installation method: source
Additional context
Am integrating gopass with sops and age.
The text was updated successfully, but these errors were encountered: