Skip to content

Conversation

@danielinux
Copy link
Contributor

Instead of a password, a fido2/ctap2 hardware passkey can be used to lock/unlock tombs.

When using --fido2 option, keys are forged as usual, but they prompt automatically detected fido2 hardware keys when a password should be supplied. The .key file with metadata does not contain any secrets.

The option is also used for lock/open operations. Password interactions are replaced with FIDO2 passkey interaction (requiring a pin to unlock the token).

Instead of a password, a fido2/ctap2 hardware passkey can be used to
lock/unlock tombs.

When using `--fido2` option, keys are forged as usual, but they prompt
automatically detected fido2 hardware keys when a password should be
supplied. The .key file with metadata does not contain any secrets.

The option is also used for lock/open operations. Password interactions
are replaced with FIDO2 passkey interaction (requiring a pin to unlock
the token).
tomb Outdated
return 0 }

if option_is_set --fido2 && [[ $TOMB_FIDO2 == 0 ]]; then
_failure "This key is missing FIDO2 metadata. Re-forge the key with --fido2 or use a non-FIDO2 workflow."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

best written "This key was not forged using --fido2"

to suggest reforging a key may confuse neofites trying it out and then deleting and redoing keys...

@jaromil
Copy link
Member

jaromil commented Dec 15, 2025

Many thanks for this amazing feature! long due...

@jaromil jaromil merged commit 21b75d6 into dyne:master Dec 15, 2025
2 checks passed
@jaromil
Copy link
Member

jaromil commented Dec 15, 2025

There is a regression in the way key headers are parsed in case of KDF https://github.com/dyne/tomb/actions/runs/20250237728/job/58140360492#step:9:1739

@Narrat
Copy link
Collaborator

Narrat commented Dec 16, 2025

Minor remark that there are now two translateable strings where the variable is directly in the string:
https://github.com/dyne/tomb/blob/master/tomb#L1512
https://github.com/dyne/tomb/blob/master/tomb#L1579

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.

3 participants