Security overview¶
This document provides an overview of the security features and practices implemented in the Livepatch Client. It describes the built-in protections and points to more detailed documentation for specific cryptographic approaches and operational guides.
Built-in protections¶
The Livepatch Client incorporates several mechanisms to ensure the integrity and authenticity of patches and the security of communication:
Patch verification: Patches undergo verification using SHA256 checksums to confirm file integrity after download. For more details, see the Patch security reference.
Patch signatures: All Linux kernel modules distributed as patches are cryptographically signed by Canonical using SHA512 with RSA. This verifies authenticity and prevents the installation of malicious patches. For more information, see the Patch security reference.
TLS communication: The Livepatch Client uses HTTPS with TLS v1.2 or higher for secure communication with the Livepatch Server, using host machine CA certificates and additional fixed certificates for server authentication. For details on TLS communication, see the Patch security reference.
Risks¶
While the Livepatch Client is designed with security in mind, be aware of the following potential risks:
TLS enforcement (on-premises deployments): The Canonical hosted Livepatch Server redirects HTTP to HTTPS, but there is no client-side enforcement for TLS usage in on-premises deployments. Forgoing TLS in such deployments is not recommended.
Privileged access to auth tokens: Authentication for the Livepatch Client can be established using Auth tokens or Resource tokens. After successful client registration, a machine token is issued to the client for subsequent authentication. Control privileged access to this token to prevent use by a malicious third party.
Data at rest: The Livepatch Client does not encrypt its data at rest. All client data is stored in the
$SNAP_COMMONand$SNAP_DATAdirectories. The Livepatch Client snap ensures only the root user has read and write access to sensitive data in these directories. Maintain strict privileged access controls to prevent unauthorized access to snap data.