-
-
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 age auto-unlock on login #2350
Comments
I'm afraid but that's not supported today. I haven't closely followed if age itself did add some kind of persistent agent support. But gopass had it for a while until I realized that it might be insecure so instead of shipping something which might be dangerous I removed it. We could make a new attempt, but we'll need to make some careful changes around that (e.g. who can talk to the agent, unlocked private key material should not leave the agent, ...). Also possibly issues w/ OS specific keychains. |
I have an work-in-progress branch that uses the OS keyring to cache the passphrase. But I'm not sure I'm happy with the currently indefinite caching. |
I have msmtp with three accounts and three different passwords, set to run every 5 minutes to check for my emails. That'd gotta be annoying to deal with. I think if we could make this a strictly opt-in feature, with a huge disclaimer "it's unsafe, do so at your own risk", it would be good for the users. |
Fixes gopasspw#2350 RELEASE_NOTES=[ENHANCEMENT] Use OS keychain for age passpharse caching (off by default). Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
I think we can add this as an optional feature (off by default) and let age adopters try and report feedback. |
* Use OS Keyring to cache age passphrases * Add askpass for age Fixes #2350 RELEASE_NOTES=[ENHANCEMENT] Use OS keychain for age passphrase caching (new config option, off by default).
Summary
I want to use gopass with age as my auth-source for managing my email passwords. I use mbsync/msmtp to read and send emails locally and I passed
gopass mail/whatever
as a command since the PassCmd option in both config accepts stdin and it works nicely, however age seems to forget the password every 5 minutes or so and I'm prompted with a pinentry dialog, which might be more secure but is bad UX since mbsync runs every 5 minutes to check for emails. Is there a solution to unlock age at login automatically (or just once per session?)Edit: Could I do the autounlock if I added an ssh key as a recipient and then dumped it into ssh-agent? Also would adding a recipient re-encrypt the whole store to use that key instead?
The text was updated successfully, but these errors were encountered: