ZFS-FIDO2-ADD-BACKUP(8) | System Manager's Manual | ZFS-FIDO2-ADD-BACKUP(8) |
zfs-fido2-add-backup
—
allow another FIDO2 device to unlock ZFS dataset
zfs-fido2-add-backup |
dataset |
After
zfs-fido2-change-key(8)
derives the key for a dataset from a FIDO2 device,
zfs-fido2-add-backup
may be executed to extend this
to any number of additional devices.
First, the wrapping key is extracted as normally during
zfs-fido2-load-key(8),
then a credential is made as-if during
zfs-fido2-change-key(8)
(except the "primary" device and all the ones holding backups are
excluded from the search); however, the
‘hmac-secret
’ is instead used as a
symmetric AES-256-GCM
(EVP_CIPHER-AES(7ssl))
key to encrypt the wrapping key directly with a random IV.
This turns the
xyz.nabijaczleweli:tzpfms.key
variable into a
dot-separated list of device bundles:
:
credential-ID:
credential-public-key[.
backup-salt:
backup-credential-ID:
backup-credential-public-key:
IV:
encrypted-key]…zfs-fido2-load-key(8) shops assertions around devices in a device-major order — depending on device numbering, a backup may be loaded even if the primary device is present.
TZPFMS_PASSPHRASE_HELPER
TZPFMS_PASSPHRASE_HELPER
is set and nonempty, it
will be run via /bin/sh
-c
to provide each passphrase, instead.
The standard output stream of the helper is tied to an anonymous file and used in its entirety as the passphrase, except for a trailing new-line, if any. The arguments are:
If the helper doesn't exist (the shell exits with 127), a diagnostic is issued and the normal prompt is used as fall-back. If it fails for any other reason, the prompting is aborted.
FIDO_DEBUG
When creating, the first device which supports the
‘hmac-secret
’ extension is used. When
loading, the assertion yielding the key is shopped around to every such
device.
The libfido2 documentation at https://developers.yubico.com/libfido2/.
To all who support further development, in particular:
https://todo.sr.ht/~nabijaczleweli/fzifdso
~nabijaczleweli/tzpfms@lists.sr.ht, archived at https://lists.sr.ht/~nabijaczleweli/tzpfms.
March 11, 2024 | fzifdso 0.4.1 |