Network
Your own domains, a fixed outbound address, your own proxy, home-connection addresses and your own private network
By default a sandbox's ports are reached at Pod's own addresses, and its outbound traffic leaves from Pod's. Your organization can change both:
- Custom domains. Serve a sandbox's port at a name of your own, or at a wildcard whose labels name sandboxes.
- Static addresses. Give a project one fixed outbound address at a site, for allowlists on the other end.
- Your own proxy. Send a project's or one sandbox's outbound traffic through a proxy you run or rent.
- Home-connection addresses. Lease an address on a home connection, resold by Pod from a provider, for one sandbox at a time.
- Private ranges. In a cell inside your own cloud account, let sandboxes reach ranges of your private network.
Every network call needs a key with network:read or network:write. A key made inside a sandbox can never hold them.
What your organization may use
Read the network settings to see each feature, whether your organization may use it, and why not:
curl "https://api.pod.mapier.ai/v1/network" -H "Authorization: Bearer $POD_API_KEY"| Feature | What it gives | Refused for | Where |
|---|---|---|---|
custom_domains | A customer's own names for a sandbox's ports, one name or a wildcard whose labels name sandboxes. | an account past due or suspended, an account not verified, the free plan | Every cell |
static_addresses | A fixed public address a project's sandboxes leave from, one per site. | an account past due or suspended, an account not verified, the free plan | Every cell |
own_proxy | A proxy of the customer's own that a project's or a sandbox's outbound traffic leaves through. | an account past due or suspended, an account not verified, the free plan, the patient-data setting | Every cell |
leased_home_addresses | An address on a home connection that Pod resells from a provider, for one sandbox at a time. | an account past due or suspended, an account not verified, the free plan, the patient-data setting | Every cell |
private_ranges | Ranges of the customer's own private network that sandboxes in its own cell may reach under a policy. | an account past due or suspended | Your own cell only |
A refused call answers the error of the first reason:
- An account past due or suspended:
account_restricted, withlimit: standing. Pay the open invoice and it lifts. - An account not verified, or on the free plan:
plan_required. Add a card in billing. - The patient-data setting:
conflict, withfield: patient_data.
Custom domains
Claim a domain for a sandbox's port. The answer holds the records to add at your DNS host:
- A TXT record at
verification.txt_namewithverification.txt_value, which proves the name is yours. Keep it in place. - A CNAME to
verification.route_host, or, at a zone's apex, A and AAAA records toverification.route_addresses. - For a wildcard, also a CNAME of
_acme-challengetoverification.acme_cname_target.
const domain = await pod.network.domains.create({
name: "app.example.com",
sandbox_id: sandbox.id,
port: 3000,
});
console.log(domain.verification);The domain then moves from pending_dns through issuing to active. Pod looks again on its own; check a domain to look now. A wildcard such as *.preview.example.com names no sandbox: the label sbx-<id> routes to that sandbox of the domain's project. A pending claim holds nothing, so whoever proves the name first holds it.
Static addresses
Take a static address for a project at a site the catalog lists. Every sandbox of the project at that site that follows its project leaves from it, unless the project has a default proxy. Releasing it lets it cool before anyone else may be given it; asking again at the same site meanwhile takes it back.
Your own proxy
Add a proxy that speaks HTTP CONNECT or SOCKS5. Its login is stored encrypted on the way in and never shown again. With default_for_project, every sandbox of the project that follows its project leaves through it.
A proxy that stops answering means refused connections. Pod never sends that traffic from its own addresses instead. For the same reason, replacing the project's default with default_for_project: false is conflict unless you also say clear_default: true, and the default can't be removed while it is the default.
A sandbox's way out
via: projectfollows the project: its default proxy, else its static address at the site, else Pod's own addresses. It is always allowed.via: proxynames one of the project's proxies.via: homeleases a home-connection address, sticky forsession_minutesor new per connection.
await pod.network.setExit(sandbox.id, { via: "home", home: { country: "US", sticky: true } });
const exit = await pod.network.exit(sandbox.id);
console.log(exit.route, exit.carrying);Read the way out to see where traffic leaves now. carrying: false means a home-connection route may not carry right now, and its traffic is refused.
The patient-data setting
If your organization handles patient data, turn on the patient-data setting with Update the network settings, or in the dashboard under Settings, Network. While it is on, your own proxies and home-connection addresses are refused with conflict on patient_data. Whatever already routes through one stops carrying at once, with refused connections. Nothing is deleted.
Only a signed-in owner or admin with a fresh second factor can change it. An API key answers person_required.
Private ranges in your own cell
In a cell inside your own cloud account, register a range of your private network at that cell's endpoint (customer_cells in the network settings names your cells). Sandboxes reach it only where a policy grants it too: either alone opens nothing. The range is canonical CIDR wholly inside a private network; the call's page lists which, and both SDKs check it before sending. Pod's own cells answer not_supported.
Limits
| Limit | What it counts | Feature |
|---|---|---|
max_domains | Custom domains an organization holds | custom_domains |
max_static_addresses | Static addresses a project holds at each site | static_addresses |
max_private_ranges | Private ranges an organization registers in its own cell | private_ranges |
max_proxies | Proxies a project holds | own_proxy |
max_leases | Leased home-connection addresses held at once | leased_home_addresses |
Not published yet
The starting values are published here before the network features open.
A create past a limit answers quota_exceeded with the limit's name in limit.