Skip to content

clevis with sss using tpm2 and 3 tang servers does not unlock quickly while system is offline #534

@mknawabi

Description

@mknawabi

I have a system with Ubuntu 22.04 which has /dev/nvme0n1p3 LUKS encrypted, and clevis bound to slot1 with pins for tpm (pcr 7), and 3 tang servers.

I would like the system to unlock quickly when the system does not have network, and I am using t: 1. However, the system hangs for about 4 minutes and 30 seconds before the TPM unlocks. Is there a way to get the TPM to be looked at/prioritized when there is no network available?

GRUB_CMDLINE_LINUX="quiet splash ip:::::eno1:dhcp"

clevis luks bind -f -y -d /dev/sda3 sss '{"t":1,"pins":{"tpm2": {"pcr_ids": "7","pcr_bank":"sha256"},"tang":[{"url":"http://server1.fqdn:7500"},{"url":"http://server2.fqdn:7500"},{"url":"http://server3.fqdn:7500"}]}}'

Please let me know if any further information is needed. I have also tried to inject a curl timeout of 5 into /usr/bin/clevis-decrypt-tang and that also did not work (same 4min 30sec).

Last bit of information, eno1 is not plugged in at the moment.

Thanks much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions