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

Fallback password input if fail from yubikey #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wzssyqa
Copy link

@wzssyqa wzssyqa commented Dec 4, 2023

If we tried 3 times, and our yubikey has no response, let's fallback to password input.

If yubikey repsoned, while we cannot decrypt our disk with this response, let's ask for new password directly.

Background: I have 2 yubikey, and one is set to 1FA and another is set to 2FA. I wish that when the 1FA one can just work if I plug it in, and password is asked if I plug the 2FA one in instead.

If we tried 3 times, and our yubikey has no response, let's
fallback to password input.

If yubikey repsoned, while we cannot decrypt our disk with
this response, let's ask for new password directly.

Background: I have 2 yubikey, and one is set to 1FA and another
is set to 2FA. I wish that when the 1FA one can just work if I
plug it in, and password is asked if I plug the 2FA one in instead.
@wzssyqa
Copy link
Author

wzssyqa commented Dec 4, 2023

Use /run instead of /tmp, since the env of cryptsetup-suspend has /run only.

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.

1 participant