Network configuration
When a digital employee runs tasks in the sandbox environment, external network access is blocked by default. When a digital employee needs to call third-party APIs, access a database at a specific IP address, or pull resources from the internet, you can configure a sandbox network policy to allow the necessary outbound connections by using a domain allowlist or an IP allowlist.
Configure a network policy
Before you begin, ensure that the following conditions are met:
-
STAROps is activated.
-
The current account has permissions to create or edit digital employees. For more information, see Digital employee permission configuration.
-
You have identified the target domain names or IP address ranges that the digital employee needs to access.
-
Log on to the STAROps console.
-
In the left-side navigation pane, click Digital employee.
-
In the digital employee list, find the target digital employee and click its name to go to the details page.
-
In the left-side pane, click Settings. On the General Settings tab, go to Network Configuration and turn on Outbound access control.
-
Configure the following parameters. Configure at least one of the domain allowlist and the IP allowlist. For more information, see Parameters:
-
In the Allowed FQDNs field, enter the domain names that the digital employee is allowed to access. Enter one domain name per line.
-
In the Allowed CIDRs/IPs field, enter the IP addresses or CIDR blocks that the digital employee is allowed to access. Enter one address per line.
-
-
After you confirm the configuration, click OK to complete the creation. In the Sandbox network policy section, confirm that the allowlist entries are updated.
Narrowing the allowlist scope may affect running tasks. Before you make changes, ensure that no task depends on the domains or IP addresses to be removed.
Delete a network policy
To restore the default isolation state of a digital employee, you can turn off the network policy.
-
On the digital employee details page, click the Settings tab.
-
In the Sandbox network policy section, turn off Outbound access.
-
Click OK. After outbound access is turned off, the digital employee reverts to the default isolation policy.
After you delete the network policy, the digital employee can no longer access the external services in the previous allowlist. If running tasks depend on these external services, the tasks may fail.
Parameters
|
Parameter |
Required |
Description |
|
Outbound access |
Yes |
Turn on to configure domain and IP allowlists. When turned off, the default isolation policy applies. |
|
Allowed FQDNs |
No |
A list of exact domain names that the digital employee is allowed to access. Only full domain name format is supported (for example, |
|
Allowed CIDRs/IPs |
No |
A list of IPv4 addresses or CIDR blocks that the digital employee is allowed to access. CIDR format (for example, |
You must configure at least one of the Allowed FQDNs or Allowed CIDRs/IPs fields. If both fields are empty when the toggle is turned on, an error is reported when you save the configuration.
Domain allowlist format examples
|
Input |
Valid |
Description |
|
|
Yes |
Exact domain name. Automatically converted to lowercase after saving. |
|
|
Yes |
The system automatically processes it as |
|
|
No |
Wildcards are not supported. |
|
|
No |
URL format is not supported. Enter only the domain name. |
|
|
No |
Port numbers are not supported. |
|
|
No |
Single-segment names are not supported. |
IP allowlist format examples
|
Input |
Valid |
Description |
|
|
Yes |
CIDR format. |
|
|
Yes |
Exact IP address format. |
|
|
Yes |
Allows access to the entire public internet. |
|
|
No |
IPv6 addresses are not supported. |
|
|
No |
Invalid IPv4 address. |
FAQs
The network policy is saved but does not take effect
Symptom: The network policy is saved on the console, but the digital employee still cannot access the domains or IP addresses in the allowlist.
Cause: The policy failed to be delivered to the sandbox cluster. This may be caused by network connectivity issues or temporary cluster unavailability.
Solution:
-
Wait 1 to 2 minutes and try again. The system automatically retries policy delivery.
-
If the issue persists, go to the digital employee details page and click OK again to trigger policy delivery.
-
If the issue is still not resolved, contact technical support and provide the digital employee ID.
DNS resolution fails for a domain in the allowlist
Symptom: A domain is configured in the allowlist, but the digital employee reports a DNS resolution failure when accessing the domain.
Cause: The network policy controls outbound network connections. DNS resolution is allowed by default. This issue is typically caused by a nonexistent domain or missing DNS records.
Solution: Verify that the domain name is correct and that the DNS records for the target domain are properly configured.
Difference between 0.0.0.0/0 and domain allowlists
-
Specifying
0.0.0.0/0in the IP allowlist allows the digital employee to access all public IP addresses. This is suitable when the digital employee needs to access a large number of undetermined external services. -
Domain allowlists provide fine-grained control over the target services that the digital employee can access, allowing only the necessary network connections.
If you can identify the specific services that the digital employee needs to access, use domain allowlists or IP allowlists instead of 0.0.0.0/0 to minimize network exposure.