systemd-creds: TPM and host-key binding protect against different theft scenarios
Encrypted service credentials on systemd systems can be protected with a TPM2-derived key, a host file key, or a combination of both, and each choice defends against different attackers. A host key stored on the file system protects against casual inspection of units or backups but offers no protection if an attacker obtains both the encrypted file and the key. TPM2 binding ties decryption to the local chip, so credentials fail on other machines, but PCR policies can make them unavailable after firmware or boot changes, creating availability risks for unattended services. The article advises documenting consumers, policies, and recovery behavior, testing restoration in target environments, and failing closed rather than silently falling back to weaker protection. It also stresses that decrypted credentials remain exposed at runtime and that rotating the encryption key and rotating the underlying service credential are separate operations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in