You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following information is not stored permanently at the moment:
nvindex used: We'd need to store this information somewhere on disk since it can't be derived from the TPM (short of trying all defined NV indices, which doesn't seem feasible). Maybe we could parse the kernel command line /proc/cmdline for the tpm2_totp_nvindex/rd.tpm2totp.nvindex=index argument to cover at least the initramfs use case? I'm not sure if people really use this feature at all (though it might possibly make sense if you store multiple different TOTP secrets, possibly for different operating systems).
label: the --label argument is only used during generation of the QR code containing the TOTP secret. It might make sense to store it in the NV index as well to make resealing easier, but it currently is a variable-length string, so not a good fit for a fixed-size index. We could limit it to e.g. a maximum of 32 characters though.
Having a sub-command à la
tpm2-totp status
to show the currently enrolled configuration would be helpful and very much appreciated.Infos to display could include:
man 1 systemd-cryptenroll
has a nice summary)Possibly/Optionally in YAML format.
The text was updated successfully, but these errors were encountered: