Network configuration

Updated at:

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

Note

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.

  1. Log on to the STAROps console.

  2. In the left-side navigation pane, click Digital employee.

  3. In the digital employee list, find the target digital employee and click its name to go to the details page.

  4. In the left-side pane, click Settings. On the General Settings tab, go to Network Configuration and turn on Outbound access control.

  5. 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.

  6. After you confirm the configuration, click OK to complete the creation. In the Sandbox network policy section, confirm that the allowlist entries are updated.

Note

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.

  1. On the digital employee details page, click the Settings tab.

  2. In the Sandbox network policy section, turn off Outbound access.

  3. Click OK. After outbound access is turned off, the digital employee reverts to the default isolation policy.

Important

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, api.example.com). Wildcards, URLs, ports, and paths are not supported. Enter one domain name per line. The system automatically converts entries to lowercase and removes duplicates.

Allowed CIDRs/IPs

No

A list of IPv4 addresses or CIDR blocks that the digital employee is allowed to access. CIDR format (for example, 10.0.0.0/24) and bare IP addresses (for example, 8.8.8.8) are supported. Enter one address per line. Specifying 0.0.0.0/0 allows access to the entire public internet.

Note

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

api.example.com

Yes

Exact domain name. Automatically converted to lowercase after saving.

API.Example.com

Yes

The system automatically processes it as api.example.com.

*.example.com

No

Wildcards are not supported.

https://api.example.com

No

URL format is not supported. Enter only the domain name.

api.example.com:8080

No

Port numbers are not supported.

localhost

No

Single-segment names are not supported.

IP allowlist format examples

Input

Valid

Description

1.2.3.0/24

Yes

CIDR format.

8.8.8.8

Yes

Exact IP address format.

0.0.0.0/0

Yes

Allows access to the entire public internet.

2001:db8::/32

No

IPv6 addresses are not supported.

256.1.1.1

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:

  1. Wait 1 to 2 minutes and try again. The system automatically retries policy delivery.

  2. If the issue persists, go to the digital employee details page and click OK again to trigger policy delivery.

  3. 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/0 in 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.