This topic describes how to modify the value of the #no_loose_check-whitelist-always parameter to use the whitelist even when the password-free access feature is enabled.

Background

After password-free access is enabled, ApsaraDB for Redis does not restrict access from other services in the same Virtual Private Cloud (VPC) network based on the whitelist. For more information, see Enable password-free access. If password-free access is enabled but you want to allow only specified resources, such as a specified Elastic Compute Service (ECS) or RDS instance, to access your ApsaraDB for Redis instance, you need to modify the value of the #no_loose_check-whitelist-always parameter.

Specify the parameter in the ApsaraDB for Redis console

  1. Log on to the ApsaraDB for Redis console.
  2. On the top of the page, select the region where the instance is deployed.
  3. On the Instances page, click the target instance ID or click Manage in the Actions column.
  4. In the left-side navigation pane of the Instance Information page, click System Parameters.
  5. On the System Parameters page, find the #no_loose_check-whitelist-always parameter and click Modify in the Actions column.
    Figure 1. Specify the #no_loose_check-whitelist-always parameter.
  6. In the dialog box that appears, set the parameter to yes and click OK.
    Figure 2. Set the #no_loose_check-whitelist-always parameter to yes.
    Note To disable the forcible whitelist authentication, set this parameter to no.

Call API operations to set parameters

You can also call the ModifyInstanceConfig operation to set parameters.