]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptenroll: support for enrolling FIDO2 tokens in manual mode
authorKamil Szczęk <kamil@szczek.dev>
Fri, 7 Jun 2024 11:22:49 +0000 (13:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Jun 2024 12:26:24 +0000 (14:26 +0200)
commite262205eb728de09ec1e669d239275d605f200b4
tree2280bbd018bf2d909d78e07b3f29fa7473b3bee6
parentac6eb58f097de8839e5a9de7d581cd9f4ed0cfb0
cryptenroll: support for enrolling FIDO2 tokens in manual mode

systemd-cryptsetup supports a FIDO2 mode with manual parameters, where
the user provides all the information necessary for recreating the
secret, such as: credential ID, relaying party ID and the salt. This
feature works great for implementing 2FA schemes, where the salt file
is for example a secret unsealed from the TPM or some other source.
While the unlocking part is quite straightforward to set up, enrolling
such a keyslot - not so easy. There is no clearly documented
way on how to set this up and online resources are scarce on this topic
too. By implementing a straightforward way to enroll such a keyslot
directly from systemd-cryptenroll we streamline the enrollment process
and reduce chances for user error when doing such things manually.
14 files changed:
man/crypttab.xml
man/systemd-cryptenroll.xml
shell-completion/bash/systemd-cryptenroll
src/cryptenroll/cryptenroll-fido2.c
src/cryptenroll/cryptenroll-fido2.h
src/cryptenroll/cryptenroll.c
src/cryptsetup/cryptsetup.c
src/home/homectl-fido2.c
src/shared/cryptsetup-fido2.c
src/shared/fido2-util.c [new file with mode: 0644]
src/shared/fido2-util.h [new file with mode: 0644]
src/shared/libfido2-util.c
src/shared/libfido2-util.h
src/shared/meson.build