This topic describes how to switch an ApsaraDB RDS for PostgreSQL instance from the standard whitelist mode to the enhanced whitelist mode. The enhanced whitelist mode offers higher security than the standard whitelist mode.

Prerequisites

The RDS instance runs one of the following PostgreSQL versions and RDS editions:

  • PostgreSQL 10 on RDS High-availability Edition (with local SSDs)
  • PostgreSQL 9.4 on RDS High-availability Edition (with local SSDs)

Background information

RDS instances support the following two network isolation modes:

  • Standard whitelist mode

    A standard IP address whitelist can contain IP addresses from both the classic network and VPCs.

  • Enhanced whitelist mode

    An enhanced IP address whitelist can contain only the IP addresses from the classic network or VPCs. When you create an enhanced IP address whitelist, you must specify its network type.

Changes incurred

  • If the RDS instance resides in a VPC, an IP address whitelist of the VPC network type is created. The new IP address whitelist contains all the IP addresses from the original IP address whitelists.
  • If the RDS instance resides in the classic network, an IP address whitelist of the classic network type is created. The new IP address whitelist contains all the IP addresses from the original IP address whitelists.
  • If the RDS instance runs in hybrid access mode, two IP address whitelists are created: one with the VPC network type and the other with the classic network type. Both IP address whitelists contain all the IP addresses from the original IP address whitelists.
Note After you switch to the enhanced whitelist mode, the configured ECS security groups remain unchanged.

Precautions

  • After you switch the network isolation mode of your RDS instance to the enhanced whitelist mode, you cannot roll the instance back to the standard whitelist mode.
  • In enhanced whitelist mode, an IP address whitelist of the classic network type can also be used to allow access over the Internet. If you want to access your RDS instance from an on-premises host over the Internet, you must add the public IP address of the host to an IP address whitelist of the classic network type.

Procedure

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Data Security.
  3. On the Whitelist Settings tab, click Switch to Enhanced Whitelist (Recommended).
  4. In the dialog box that appears, click Confirm.

FAQ

  • My RDS instance runs in enhanced whitelist mode. If I want to access my RDS instance from an on-premises host over the Internet, how do I identify the IP address whitelist to which I need to add the public IP address of the host?

    If you want to access your RDS instance from an on-premises host over the Internet, you must add the public IP address of the host to an IP address whitelist of the classic network type.

  • What are the benefits of the enhanced whitelist mode compared with the standard whitelist mode?

    The enhanced whitelist mode allows you to distinguish IP addresses from the classic network and those from VPCs. If you add an IP address to an IP address whitelist of the VPC network type, the IP address is granted access to your RDS instance only within the specified VPC. However, the IP address is not granted access to your RDS instance over the Internet. This increases the security of your RDS instance.