Tencent Container Registry (TCR) Enterprise Edition supports public network access control. An allowlist can be configured to restrict instance access by clients through the Internet, ensuring instance data privacy and security. When a TCR enterprise edition instance is created, the public network access entry is disabled by default. This means that you cannot use a development test server to push or pull images over the Internet.
This document describes how to configure public network access control for a TCR enterprise edition instance.
Before configuring public network access control for a TCR enterprise edition instance, you must first create a TCR enterprise edition instance.
Enabling the public network access entry
- Log in to the TCR console and choose Network ACL > Public network in the left sidebar.
- To change the instance, select the region where the desired instance is deployed and the desired instance name from the Instance Name drop-down list at the top of the "Public network" page.
- Select Open Internet Access Entry to enable the public network access entry.
When the status of this button changes from Opening to Close Internet Access Entry and Add a public IP to allowlist becomes selectable, the public network access entry has been successfully enabled, as shown in the figure below.
After the entry is enabled, all Internet access requests are still denied.
Configuring the access policy
- On the "Public network" page, click Add a public IP to allowlist and add the public IP address range and note in the window that appears, as shown in the figure below.
- Associated Instance: target instance, for which the public network access policy is configured. To change the instance, select the desired instance name from the "Instance Name" drop-down list at the top of the "Public network" page.
- Public IP Range: public IP address range that is allowed to access the instance. The value can be a single IPv4 address or CIDR, for example,
192.168.0.0/24. We do not recommend that you enter
0.0.0.0/0 to accept all Internet access requests to the instance.
- Note: notes about the access policy. This parameter is optional.
- Click OK. The public network access allowlist policy is added and takes effect.
- To change the allowlist information, delete the policy and create another one.
- If the public network access entry cannot be enabled or the allowlist policy cannot be created, submit a ticket.