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

Don't prompt to retype password unnecessarily with age backend #1983

Merged
merged 1 commit into from Sep 12, 2021

Conversation

duxovni
Copy link
Contributor

@duxovni duxovni commented Aug 28, 2021

When gopass can't find a pinentry binary to use for prompting for a password to unlock an age keyring, it uses its own barebones fallback pinentry mechanism to prompt for a password in the terminal. This fallback pinentry always asked the user to retype their password and required the passwords to match, even when decrypting a file using an already-existing password. I've updated it to only prompt for a repeat when necessary, and also made the password prompt messages less awkward.

RELEASE_NOTES=[BUGFIX] Don't prompt to retype password unnecessarily with age backend when pinentry binary is unavailable.

Signed-off-by: Faye Duxovni duxovni@duxovni.org

When gopass can't find a pinentry binary to use for prompting for a
password to unlock an age keyring, it uses its own barebones fallback
pinentry mechanism to prompt for a password in the terminal.  This
fallback pinentry always asked the user to retype their password and
required the password match, even when decrypting a file using an
already-existing password.  I've updated it to only prompt for a repeat
when necessary, and also made the password prompte messages less
awkward.

RELEASE_NOTES=[BUGFIX] Don't prompt to retype password unnecessarily
with age backend when pinentry binary is unavailable.

Signed-off-by: Faye Duxovni <duxovni@duxovni.org>
@dominikschulz dominikschulz self-requested a review August 28, 2021 17:32
pkg/pinentry/cli/fallback.go Show resolved Hide resolved
@dominikschulz dominikschulz merged commit 566d227 into gopasspw:master Sep 12, 2021
sthagen added a commit to sthagen/gopasspw-gopass that referenced this pull request Sep 12, 2021
Don't prompt to retype password unnecessarily with age backend (gopasspw#1983)
kpitt pushed a commit to kpitt/gopass that referenced this pull request Jul 21, 2022
…spw#1983)

When gopass can't find a pinentry binary to use for prompting for a
password to unlock an age keyring, it uses its own barebones fallback
pinentry mechanism to prompt for a password in the terminal.  This
fallback pinentry always asked the user to retype their password and
required the password match, even when decrypting a file using an
already-existing password.  I've updated it to only prompt for a repeat
when necessary, and also made the password prompte messages less
awkward.

RELEASE_NOTES=[BUGFIX] Don't prompt to retype password unnecessarily
with age backend when pinentry binary is unavailable.

Signed-off-by: Faye Duxovni <duxovni@duxovni.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants