-
I'm trying to use gopass via an age backend to store chezmoi secrets. I initialised and configured gopass/age using a password-protected key. When I type I'm experiencing a usability issue when gopass is used through chezmoi: Every time I invoke This works better when gopass uses a gnupg backend because it has an agent that stores the password once and remains active for a (configurable) amount of time. Is there some setting I'm missing to avoid this repetitive password asking under these conditions? Or the only way to solve this would be to have an age key w/o password using a technique similar to what is suggested in the user guide? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Apparently gopass does not accept using keys w/o password protection (which cannot be empty). This kind of rules out the suggestion above... Alternatively, it is possible to use the form |
Beta Was this translation helpful? Give feedback.
-
As far as I can tell, gopass doesn't provide any time-limited session where you only have to type in your passphrase every N minutes when using the age backend. I think you get this when using the GnuPG backend as the passphrase is store in GnuPG's agent. As an alternative, #4190 adds a builtin mode for gopass, similar to what chezmoi already offers for KeePassXC. Would you be able to test this? You'll need to build chezmoi from PR #4190 and set |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. I'm on it. |
Beta Was this translation helpful? Give feedback.
-
@twpayne: the patch works like a charm 🚀 . It only asks me for the password once, and also solves another annoyance by by-passing pin entry issues with the terminal client I'm using (Kitty)! So, many thanks! Is a release with this fix coming soon? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@twpayne: could the same rationale be applicable to the Looking at the user guide, it seems that the built-in age support will not accept passphrases because "chezmoi needs to decrypt files regularly". If attainable, avoiding the repetition within the same call could improve this workflow a bit? |
Beta Was this translation helpful? Give feedback.
As far as I can tell, gopass doesn't provide any time-limited session where you only have to type in your passphrase every N minutes when using the age backend. I think you get this when using the GnuPG backend as the passphrase is store in GnuPG's agent.
As an alternative, #4190 adds a builtin mode for gopass, similar to what chezmoi already offers for KeePassXC.
Would you be able to test this? You'll need to build chezmoi from PR #4190 and set
gopass.mode
tobuiltin
in your configuration file, and then it should Just Work (tm).