Skip to content
Microsoft Azure Database for PostgreSQL Blog· PieterVanhove·· 3d ago

Azure HorizonDB previews customer-managed keys for encryption at rest

Encryption at rest with customer-managed keys in Azure HorizonDB (Preview)

Brief · Based on the source excerpt

Azure HorizonDB now offers a preview of customer-managed keys (CMK) for encryption at rest, letting users protect clusters with keys they own in Azure Key Vault.

Why It Matters

The encryption mode must be chosen at cluster creation and cannot be changed later; CMK adoption requires a same-region Key Vault, a 4,096-bit RSA/RSA-HSM key, and a user-assigned managed identity.

Technical Breakdown · Distilled from the original source

Two encryption modes

  • Service-managed keys (SMK) are the default: the service manages keys and rotation via Azure Storage encryption, requiring no action.
  • Customer-managed keys (CMK) are in preview; users own and manage the key in Azure Key Vault, with storage-layer encryption for WAL and page-level encryption for page servers.
  • The encryption mode is selected at cluster creation and cannot be changed later.

Why use CMK

  • Fully control the key life cycle, including rotation, to align with corporate policies.
  • Centrally manage and organize encryption keys in your own Azure Key Vault instances.
  • Revoke the cluster's access to the key, making encrypted data inaccessible.
  • Implement separation of duties between security officers, database administrators, and system administrators.

Prerequisites and setup

  • An Azure Key Vault in the same region and Microsoft Entra tenant as the cluster.
  • An asymmetric 4,096-bit RSA or RSA-HSM key in the Enabled state.
  • A user-assigned managed identity (UAMI) for the cluster with access to the key.
  • In the Azure portal Security tab, select Customer-managed key for Data encryption key, then choose the UAMI and key; via Azure CLI, pass the managed identity and versionless key URI at cluster creation.
Source: Microsoft Azure Database for PostgreSQL Blog· techcommunity.microsoft.com

PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.

Read Official Source

Related PostgreSQL Reference