This topic describes how to configure instance-level and tenant-level allowlist groups to control client access to tenants in a cluster instance.
Background information
Instance-level IP allowlist groups
OceanBase Cloud supports IP allowlist groups for cluster instances. Before connecting to and using an instance for the first time, configure its IP allowlist. You can add up to 10 groups. Group names must be unique, and groups cannot be empty. Each group can contain up to 40 IP addresses or ranges. Allowlist groups protect access to cluster instances. We recommend maintaining them regularly.
IP allowlist groups for tenants
OceanBase Cloud also supports tenant-level IP allowlists, which specify the IP addresses allowed to access a tenant. Each tenant can have up to 30 allowlist groups.
Tenant allowlists include custom allowlists and the system default allowlist. Both determine which IP addresses are allowed.
Custom allowlists
You manage the IP addresses or ranges allowed for your application clients. Group names must be unique, and each group must contain 1 to 40 IP addresses or ranges. If you remove an IP address from a custom allowlist but the system default allowlist still includes it, the address will still pass the allowlist check.
System default allowlist
The system manages the IP addresses or ranges required for communication between internal services. You can view the ranges currently in effect on the tenant's allowlist page, but you cannot edit the addresses directly.
Note
- Expanding the ranges: When internal services require broader IP ranges, the added ranges take effect after the system default allowlist is successfully updated. You can view the ranges currently in effect on the tenant's allowlist page and click View history to view update records.
- Narrowing the ranges: To apply narrower IP ranges, contact technical support to enable updates, and then update the allowlist manually. Before submitting an update, check the IP addresses of your application clients. If an address is allowed by the system default allowlist but falls outside the updated ranges, add it to a custom allowlist first.
Considerations
- All tenants in an instance inherit its instance-level allowlist groups. You can view these groups on each tenant's allowlist page.
- If you use Huawei Cloud and connect to the database over a private network, neither instance-level nor tenant-level OceanBase Cloud allowlists can control access. To control access, use Huawei Cloud security groups on your endpoint.
Set instance-level allowlist groups
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances to find your target instance and go to the Overview page.
In the left-side navigation pane, click Security.
Click Allowlists to open the allowlist tab.
Use either of the following methods to add allowlist groups.
Add allowlist groups manuallyImport allowlist groupsClick Add Allowlist.
In the dialog box, configure the following parameters.
ParameterDescriptionGroup Name The name must start with a lowercase English letter and end with a lowercase English letter or a digit. It can contain only lowercase English letters, digits, and underscores, and must be 2–32 characters long. IP Address - Enter an IP address (such as
192.0.2.1) or an IP range (such as192.0.2.0/24). - Separate multiple IP addresses or ranges with commas, for example,
192.0.2.1,192.0.2.0/24. - With
0.0.0.0/0, the allowlist accepts any source IP address. - Each group can contain up to 40 IP addresses or ranges.
- Enter an IP address (such as
Click OK.
Click Import allowlist groups.
In the Import allowlist groups dialog box, configure the following parameters to reuse allowlist groups from other instances in the current project.
ParameterDescriptionSource instance Select the source instance from the drop-down list. Allowlists After you select a source instance, the list displays its allowlist groups and their IP addresses. Select the groups to import. Click OK.
Note
If a selected group has the same name as an existing group in the current instance, a second confirmation prompt appears. Once you confirm, the system appends
_copyto the duplicate name. If the resulting name still exists, the system keeps appending_copyuntil the name is unique. Existing groups are not overwritten.
After adding allowlist groups, you can perform the following operations as needed.
- Edit: Click the edit icon next to a group, modify its IP addresses or ranges, and click OK.
- Copy: Click the copy icon next to a group to copy its IP address entries to the clipboard.
- Delete: Click the delete icon next to a group, and then click Delete in the confirmation dialog box.
Set tenant-level allowlist groups
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances to find your target instance and go to the Overview page.
In the left-side navigation pane, click Tenants to open the tenant list. Click the target tenant to open its Overview page.
In the left-side navigation pane, click Security.
Configure allowlist groups or associate security groups for the tenant as needed.
Note
- Allowlists: Specify the IP addresses or ranges allowed to access the current tenant.
- Security groups: Associate an Alibaba Cloud Elastic Compute Service (ECS) security group. ECS instances in the associated group can then access the current tenant over the private network.
Configure allowlistsConfigure security groupsClick the Allowlists tab.
Click Add Allowlist.
In the dialog box, configure the following parameters.
ParameterDescriptionGroup Name The name must start with a lowercase English letter and end with a lowercase English letter or a digit. It can contain only lowercase English letters, digits, and underscores, and must be 2–32 characters long. IP Address - Enter an IP address (such as
192.0.2.1) or an IP range (such as192.0.2.0/24). - Separate multiple IP addresses or ranges with commas, for example,
192.0.2.1,192.0.2.0/24. - With
0.0.0.0/0, the allowlist accepts any source IP address. - Each group can contain up to 40 IP addresses or ranges.
- Enter an IP address (such as
Click OK.
Note
- Allowlist groups inherited from the instance are marked (Inherited from instance). Hover over the label to view the explanation. To modify an inherited group, click Allowlists in the tooltip. This opens the owning instance's Security page in a new browser tab with the Allowlists tab selected.
- For a group added to the current tenant, click the edit icon next to the group to add or remove IP addresses or ranges, and then click OK. To delete a group, click its delete icon and then click Delete in the confirmation dialog box.
Note
- The security group feature is supported only for users who access OceanBase Cloud through Alibaba Cloud Marketplace.
- Before associating a security group, make sure the tenant has a private network connection and you have permission to perform the operation.
- Security groups apply only to private network connections. Configuration changes take about 5 minutes to take effect, including associating or disassociating security groups and changing instances in a security group.
Click Security Groups to open the security group tab.
Click Associate Security Groups. If the message Unauthorized Alibaba Cloud account appears, click Authorize to complete authorization in the Alibaba Cloud console.
In the Associate Security Groups dialog box, select the target security groups and move them to the selected list on the right. You can select up to 3 security groups.
Click OK to submit the associations.
To disassociate a security group, click the delete icon next to it on the Security Groups tab, and then click Delete in the confirmation dialog box.
Note
This operation removes only the association with the current tenant. It does not delete the security group in Alibaba Cloud.
Manage the system default allowlist
Before updating or rolling back the system default allowlist, make sure your account has permission to modify allowlists.
View the system default allowlist
Go to the target tenant's Overview page.
In the left-side navigation pane, click Security, and then click the Allowlists tab.
View the IP ranges currently in effect in the System default allowlist section.
Click View history to view the time, type, and IP ranges of each configuration change.
Records are listed from newest to oldest. The In effect label identifies the current configuration.
Update the system default allowlist
Note
- To update the system default allowlist manually, contact technical support to enable updates.
- Once updates are enabled, you can proceed when the page indicates that the system default allowlist has changed and the Update button is available. If the page prompts you to contact an administrator, ask an administrator with permission to modify allowlists to perform the update.
- Before submitting an update, check your application clients' IP addresses against the ranges in "Scope after update". If a client IP address is currently allowed by the system default allowlist but falls outside the updated ranges, add it to a custom allowlist first to prevent the client from losing access to the database.
On the target tenant's Security > Allowlists page, click Update in the System default allowlist section.
In the Update system default allowlist dialog box, review the changes.
ItemDescriptionCurrent scope IP ranges currently in effect in the system default allowlist. To be removed IP range entries that will be removed by this update. Shown only when entries will be removed. To be added IP range entries that will be added by this update. Shown only when entries will be added. Scope after update System default allowlist ranges that will take effect after the update succeeds. Note
Ranges listed under "To be removed" may be consolidated into broader ranges that still allow the same IP addresses. Check "Scope after update" as well to determine whether an address will still be allowed.
If any IP range entries will be removed, first confirm that all application IP addresses have been added to custom allowlists. Then, in the Confirm update section, select I confirm that all application IP addresses have been added to the custom allowlist.
Click OK to submit the update task.
When the message The task to update the system default allowlist has been submitted. appears, wait for the task to finish. If No update is needed for the system default allowlist. appears, no further submission is needed.
After the update finishes, check that the ranges in the System default allowlist section match your expectations. Click View history to confirm that the updated configuration is in effect.
Roll back the system default allowlist
Note
- Rollback requirements: The most recent successful change must be an update performed manually by a user, and the configuration from before that update must still be available. The Roll back to this version button must be available for that configuration's history record.
- Available version: You can restore only the configuration from immediately before that update. After a rollback, you cannot roll back further to an earlier version.
- Scope: A rollback changes only the system default allowlist. Custom allowlist groups are unaffected.
On the target tenant's Security > Allowlists page, click View history in the System default allowlist section.
In the eligible history record, click Roll back to this version.
In the confirmation dialog box, check the time and IP ranges of the target configuration, and then click Roll back.
When the message The task to roll back the system default allowlist has been submitted. appears, wait for the task to finish. If No rollback is needed for the system default allowlist. appears, no further submission is needed.
After the rollback finishes, check that the ranges in the System default allowlist section match the target configuration. Click View history to view the rollback record.