All Products
Search
Document Center

ApsaraDB RDS:Enable the always-confidential database feature

Last Updated:Mar 28, 2026

The always-confidential database feature encrypts sensitive data columns in your ApsaraDB RDS for PostgreSQL instance. This prevents unauthorized users from accessing the plaintext of the protected data columns by using software and tools in the cloud platform, while ensuring that the sensitive data columns remain available but invisible to database users. By default, the feature is integrated with ApsaraDB RDS for PostgreSQL, but you must complete the required configurations before you can use it. Enable the feature by installing the EncDB extension on each database you want to protect.

Supported instance types

The feature is supported on all standard RDS instances. Two editions are available:

EditionInstance family
Basic editionAll instance types except Intel SGX-based security-enhanced
Hardware-enhanced edition (Intel SGX-based)Intel SGX-based security-enhanced instance types

For a detailed comparison of security levels, see Security levels provided by the always-confidential database feature.

Note

Serverless RDS instances and YiTian RDS instances are not supported.

Intel SGX-based security-enhanced instance types

The hardware-enhanced edition requires an Intel SGX-based instance. These are available in the following regions and zones:

RegionZone
China (Hangzhou)Hangzhou Zone K
China (Shanghai)Shanghai Zone B and Shanghai Zone L
China (Beijing)Beijing Zone I and Beijing Zone K
China (Hong Kong)Hong Kong Zone B and Hong Kong Zone D

The following instance types are available under the Intel SGX-based security-enhanced instance family (RDS High-availability Edition):

Instance typeCPU cores / MemoryEncrypted memoryMax connectionsStorage capacity
pg.x4t.medium.2c2 cores, 8 GB4 GB400PL1 ESSD: 20 GB–64,000 GB; PL2 ESSD: 500 GB–64,000 GB; PL3 ESSD: 1,500 GB–64,000 GB; General ESSD: 10 GB–64,000 GB
pg.x4t.large.2c4 cores, 16 GB8 GB800Same as above
pg.x4t.xlarge.2c8 cores, 32 GB16 GB1,600Same as above
pg.x4t.2xlarge.2c16 cores, 64 GB32 GB3,200Same as above
pg.x4t.4xlarge.2c32 cores, 128 GB64 GB6,400Same as above

For the full list of instance types, see Primary ApsaraDB RDS for PostgreSQL instance types. For IOPS values by instance type, see IOPS.

Prerequisites

Before you begin, make sure you have:

Enable the always-confidential database feature

  1. Create a database on your RDS instance. See Create a database.

  2. Connect to the database using your privileged account. See Connect to an ApsaraDB RDS for PostgreSQL instance.

  3. Install the EncDB extension:

    -- Install the EncDB extension.
    CREATE EXTENSION encdb;

    The always-confidential database feature is now enabled on this database.

What's next

Before using the feature, define which columns to protect based on your business requirements. See Define sensitive data.