All Products
Search
Document Center

PolarDB:Disk Encryption

Last Updated:Mar 28, 2026

Disk encryption protects data at rest on PolarDB for MySQL clusters using Elastic Block Storage (EBS). Even if a data backup is leaked, its contents cannot be decrypted. The feature is free, requires no application changes, and automatically extends to all snapshots the cluster creates.

Note

You can only enable disk encryption when you purchase a cluster. It cannot be enabled on an existing cluster and cannot be disabled after it is enabled. Evaluate this setting before purchasing.

Prerequisites

Before you begin, ensure that a PolarDB service-linked role named AliyunServiceRoleForPolarDB exists in your Alibaba Cloud account.

To check and create the role:

  1. Log in to the RAM console with your Alibaba Cloud account. Go to Identity Management > Roles.

  2. Check whether a role named AliyunServiceRoleForPolarDB appears in the list.image

    • If it exists, no further action is needed.

    • If it does not exist, proceed to the next step.

  3. Click Create Role. On the Create Role page, click Create Service Linked Role in the upper-right corner.image

  4. Set Trusted Service to AliyunServiceRoleForPolarDB, then click Create Service Linked Role.image

Supported configurations

Disk encryption is available only on clusters with all of the following:

AttributeSupported values
EditionStandard Edition
Instance typeGeneral-purpose or Dedicated
CPU architectureYitian ARM or x86
Storage classPL0 ESSD, PL1 ESSD, PL2 ESSD, PL3 ESSD, or ESSD AutoPL disk

Limitations

LimitationDetails
Enable at purchase onlyYou can only enable disk encryption when you purchase a cluster. It cannot be enabled on an existing cluster.
Cannot be disabledOnce encryption is enabled, it cannot be turned off.
Default Service CMK onlyOnly the default service Customer Master Key (CMK) managed by Alibaba Cloud is supported. Custom Key Management Service (KMS) keys are not supported.
Snapshots inherit encryptionAll snapshots created by the cluster, and all Standard Edition clusters restored from those snapshots, are automatically encrypted with the same setting.

Billing

Disk encryption is free. There are no additional charges for read or write operations on encrypted disks.

Enable disk encryption

When purchasing a cluster that meets the supported configurations listed above:

  1. Select a storage class.

  2. Select Enable Disk Encryption.

  3. For the key, select Default Service CMK.

image

Verify disk encryption status

  1. Log in to the PolarDB console. In the left navigation pane, click Clusters. Select the region where your cluster resides, then click the cluster ID.

  2. In the left navigation pane, click Settings and Management > Security.

  3. Click the Cloud Drive Encryption tab. If Data disk encryption status: shows Encrypted, disk encryption is active for the cluster.