To make sure that a Container Registry Enterprise Edition instance can be accessed from the Internet with security, you must configure a whitelist for the Internet.
Prerequisites
By default, Container Registry Enterprise Edition instances cannot be accessed over the Internet. Therefore, you must enable access over the Internet before you configure the access control policy for Internet access.
After you enable access over the Internet, the Classless Inter-Domain Routing (CIDR) block 127.0.0.1/32 is automatically added to the whitelist.
Procedure
- Log on to the Container Registry console.
- In the top navigation bar, select a region.
- On the Instances page, click the Enterprise Edition instance that you want to manage.
On the management page of the Container Registry Enterprise Edition instance, choose in the left-side navigation pane.
NoteIf you want to configure access control for Helm charts, choose
.On the Access Control page, click the Internet tab.
On the Internet tab, click Add Internet Whitelist.
In the Add Internet Whitelist dialog box, specify the CIDR block that is allowed to access the Container Registry Enterprise Edition instance and the description.
Click OK.
After the CIDR block is added, Elastic Compute Service (ECS) instances whose IP addresses belong to the CIDR block can access the Container Registry Enterprise Edition instance.
ImportantYou may want to allow all ECS instances to access the Container Registry Enterprise Edition instance over the Internet. To achieve this purpose, you can enable access over the Internet and delete all IP addresses from the whitelist for Internet access. After you perform the preceding operation, the Container Registry Enterprise Edition instance is completely exposed to the Internet and may be attacked. Proceed with caution.