this post was submitted on 31 Jul 2026
21 points (100.0% liked)

Linux

66746 readers
922 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

Which approach do you think is better, and why?

  1. FIDO2
  2. HMAC-SHA1
  3. OpenPGP (alternative guide)

Or do you think there is an even better way to use a hardware security token to unlock drives having LUKS full disk encryption?

top 11 comments
sorted by: hot top controversial new old
[–] modem_down@thebrainbin.org 2 points 16 hours ago

Progress report 1

  • I'm ruling out HMAC-SHA1, because:
  • If using systemd, pick FIDO2:
    • Avoids flaws of HMAC-SHA1.
    • Native support in systemd, so "future-proof".
    • Wider support than OpenPGP. More HST vendors to choose from, including cheaper options than NitroKey or Yubikey: useful if each sysadmin (or colleague, or relative) needs an HST.
    • Compatible with QubesOS.
  • Otherwise, OpenPGP:
    • Like FIDO2, solves HMAC-SHA1 flaws.
    • However:
      • smartcard-key-luks seems unmaintained on GitHub and on GitLab.
      • LUKS with OpenPGP isn't well-documented for non-Debian-based distros.
  • TBD: Clevis/Tang:
    • Remote/network-based unlocking.
[–] utopiah@lemmy.ml 2 points 1 day ago (1 children)
[–] modem_down@thebrainbin.org 1 points 16 hours ago

Thank you for this! That thread is helpful in itself, and also links to other relevant resources - including by Lennart Poettering (controversial guy, but the canonical source on systemd).

[–] eldavi@lemmy.ml 1 points 1 day ago (2 children)

wouldn't doing this require that building a ram disk image with the yubikey software included?

[–] kayohtie@pawb.social 4 points 1 day ago

All 3 mechanisms are native to a yubikey, and do not require yubikey-specific software/drivers to function as they use USB standards like FIDO2, keyboard for HMAC, and PIV/CCID for OpenPGP.

FIDO2 is built-in out-of-the-box, HMAC just requires adding the key to HMAC on slot 1 or 2 (tap vs long-hold key-inputs) using the personalization tool, or using gpg(2) to card-edit for OpenPGP.

None of these require YK software to operate.

[–] modem_down@thebrainbin.org 2 points 1 day ago (1 children)

Which of the 4 recipes I posted are you referring to as "this"?

[–] eldavi@lemmy.ml 2 points 1 day ago (1 children)

read them and you will see that only ones mentions initrd at all.

[–] modem_down@thebrainbin.org 2 points 1 day ago (1 children)

I read them before writing my OP. I'm still not sure what you're getting at.

Perhaps you could say what you mean, instead of initiating an oblique guessing game.

[–] eldavi@lemmy.ml 1 points 1 day ago (2 children)

instead of initiating an oblique guessing game.

i don't understand the hostility.

i asked a question about needing yubikey software in a ramdisk image to enable decryption at boot time and most of the sources you provided don't mention it at all.

[–] floquant@lemmy.dbzer0.com 3 points 23 hours ago

It's not mentioned because it's not required, yubikeys in general mostly leverage pre-existing "smartcard" facilities

[–] kkremitzki@lemmy.ml 3 points 1 day ago

i don’t understand the hostility.

Bystander observation: you were asked to clarify but essentially refused in a way that took more effort than simply doing so.