Source Access Control
Source access control manages an environment's access source policies, including public access control and source VPC restrictions. The two policies apply independently and can be configured separately.
Access Paths
After public access is disabled, the controlled entry points no longer accept public requests, and only VPC access remains (except for legacy domains that use the old CDN). Requests follow the paths below:
Solid lines are allowed traffic; dashed lines are denied traffic or traffic that bypasses the gateway.
| Path | Flow | Policy that applies |
|---|---|---|
| Public access | Public user → default or custom domain → CloudBase gateway → environment resources | Public access switch; once disabled, requests are denied at the gateway and never reach environment resources |
| VPC access | In-VPC client → Private Link endpoint → CloudBase gateway → environment resources | VPC allowlist; disabling public access does not affect this path |
| Legacy CDN | Public user → legacy CDN → environment resources | Does not pass through the CloudBase gateway, so the switch has no effect |
Both controlled paths pass through the CloudBase gateway: public requests are allowed or denied by the "Public Access" switch, while requests from a VPC are validated against the source VPC allowlist. In-VPC access relies on an existing private link; source access control itself does not establish a connection.
Configuration Entry
Select the target environment in the CloudBase console, then go to "Environment Management → Network Access".
Public Access Control
The "Public Access" switch controls whether the environment can be accessed through public entry points, including default and custom domains:
| Switch State | Access Rule |
|---|---|
| On | Allows access to the environment through public entry points |
| Off | Disables public entry points governed by this policy while retaining VPC access; the legacy domains using the old CDN listed below are exceptions |
Turn off "Public Access" in the "Public Access Control" section to restrict public access through the governed entry points.
Default domains in some legacy environments use the old CDN, and their requests bypass the CloudBase gateway. These domains are not governed by the "Public Access" switch and remain publicly accessible when it is off.
| Resource (Using the Old CDN) | Default Domain Pattern |
|---|---|
| Legacy Static Hosting | *.tcloudbaseapp.com |
| Legacy Cloud Storage | *.tcb.qcloud.la |
Whether the switch applies depends on the request path, not just the domain suffix.
Turning off this switch does not disable public access to all resources or replace their resource-level access permission settings.
Disabling public access blocks existing public requests governed by this switch. Establish a VPC access connection first and verify that access works from within the VPC.
Disabling public access does not automatically establish a VPC connection. For private connectivity options, see Access CloudBase from Your Private Network.
VPC Access Control
The source VPC allowlist restricts which VPCs can access the environment. It controls access sources but does not establish network connections.
| Allowlist State | Access Rule |
|---|---|
| Disabled | Does not restrict source VPCs; VPCs with established access connections can access the environment |
| Enabled | Only source VPCs in the allowlist can access the environment; requests from other VPCs are denied |
Configure the Allowlist
- Click "Add VPC" in the "VPC Access Control" section.
- Add the source VPCs that are allowed to access the environment and verify their VPC IDs in the list.
- Turn on "Enable Allowlist" to apply the source restrictions.
Manage the Allowlist
- Delete: Click "Delete" for a VPC to remove its entry.
- Clear: Click "Clear" to remove all VPCs from the list.
- Disable: Turn off "Enable Allowlist" to stop restricting source VPCs.
While the allowlist is enabled, removing a VPC revokes access from that source. Before removing a VPC, confirm that it no longer hosts workloads that need to access the environment.
Policy Combinations
The table below applies only to entry points governed by the network policies. The legacy domains listed above that use the old CDN and bypass the CloudBase gateway remain publicly accessible.
| Public Access | VPC Allowlist | Access Scope |
|---|---|---|
| On | Disabled | Allows public access without restricting source VPCs |
| On | Enabled | Allows public access; VPC access is limited to allowlisted sources |
| Off | Disabled | Disables governed public entry points without restricting source VPCs |
| Off | Enabled | Disables governed public entry points; only allowlisted source VPCs can access the environment |
Allowing network access does not bypass authentication or resource permission checks. Requests must still meet the existing authentication and authorization requirements after the network policies allow them.
Configure via API
Besides the console, you can change an environment's access control settings with the CloudBase API, which suits automation pipelines:
| Capability | API |
|---|---|
| Public access switch, source VPC allowlist | ModifyEnvAccessControl |
Limits
Available only on the CloudBase Enterprise plan or higher; environments on other plans cannot configure it.