MenuNetwork rules

Network rules

Covers: which hosts an instance may reach, the rules for a host, approving a refused request, and the keys a host takes.

For: Admins who set up what an agent may call, and developers whose agent was refused a host.

An instance's network is closed by default. Every request it sends out goes through poema's network gateway, which lets it through only to a host and method you allowed, adds the host's key if it has one, and lists what it refused for you to approve.

Swipe sideways to see all of it.

How a request leaves an instance: it goes through poema's network gateway, which lets it out only to an allowed host and method, adds the host's key if there is one, and lists a refused request under Blocked requests.

What an instance reaches

An instance's network is closed (Concepts): it reaches the hosts your plan allows, on port 443, and nothing reaches it from the internet. On New instance, the network card's All public hosts, read only (off at first) lets it send GET and HEAD to any public host over HTTPS, with no key, and gives it a network of its own: any other request still goes only to the hosts it lists, each as its rule allows.

The Network page

The Network page is one map: your instances on one side, the hosts they reach on the other, and a wire from each instance to each host it reaches. Many instances and many hosts stay readable, as groups: instances by network and by agent, hosts by domain, and groups open in place.

  • Blocked requests come first, as a section of the page (Blocked requests), and never fold away. They list the requests poema refused your instances, for their host or for a method its rule does not allow, each with its Allow. Allow lets one through for an instance it refused (whose network is then its own) or for every instance on your organization's network, with either the least access that would have let it through (Read only for a GET, else its method) or Full (any request).
  • To see what a host allows, open it on the map: its panel says what instances may send it, who set that and which instances and MCP servers reach it, and has Edit, Limit and Remove. Add host access adds your own host where your plan takes them, and Edit and Limit open one sheet, which says what saving does before you save.

Check a host answers whether your instances may reach a host and why; given a URL, it checks the host alone, as rules are per host. Export YAML downloads your organization's network as poema holds it: its Gateway, and those of its instances with a network of their own, one YAML document each. An instance's Network tab shows what it can reach now, host by host, with where each host's access is set and the way there.

Network: a table with one built-in row, Package registries and code hosts, allowing any request over HTTPS, set by your plan, with Export YAML and Add host access buttons.Tap to open full size

Call rules

A rule is for one host of your plan or your own hosts: an exact DNS name of two labels or more, on port 443. A rule holds the HTTP methods the instance may send that host, among GET, HEAD, POST, PUT, PATCH and DELETE, on any path or on the paths it lists (such as /repos/acme/**), and whether it may open WebSockets: poema checks each request on its way out. An instance with a network of its own takes the same rule, from the same editor, for a host it adds on its network card.

A rule applies to the instance's ordinary HTTPS requests to that host: nothing in the instance changes. The hosts that git and the package managers install from (github.com, codeload.github.com, objects.githubusercontent.com, raw.githubusercontent.com, gitlab.com, registry.npmjs.org, pypi.org, files.pythonhosted.org, proxy.golang.org, sum.golang.org, index.crates.io, static.crates.io, deb.debian.org) take no rule, and neither does a host poema's gateways keep for themselves, such as a model provider's API.

Adding an MCP server to the library does not create a host rule: its host must be allowed, and poema's gateway enforces the tools selected in its server sheet (The library). You can add a host rule separately on Network.

When a change applies

A change applies at once, to running instances too: poema binds the organization's network again to the instances running on it. An instance with a network of its own keeps the organization's rules as they were when its network was saved, until it is saved again: a rule changed on Network reaches it when you next save its network card. A change to an MCP server's address or selected tools in the library reaches existing instances only when Update recreates them (The library). A rule whose host is no longer on your list is marked inactive and ignored.

Keys for a host

A key of your organization's for an API, saved on Keys (Secrets and keys), is added by poema's gateway to each request your instances send that host: as Authorization: Bearer, as the password of Authorization: Basic with a username you give, or in a header you name. The instance never holds it, and whatever it sends in that header is replaced.

A host's key reaches an instance only once it is attached to it, on the instance's page; a model key and the GitHub token need no attaching (Secrets and keys). Once attached, it is added whatever methods a rule allows, and Network shows it on the host's panel. Setting Any request for a host keeps its key.

Keys are write-only: Replace or Remove one on Keys.

Exposed ports

New instance's network card takes Exposed ports, a name and a port a line, such as web 3000, up to 8. They are never open to the internet: reach one with poema forward NAME 3000, which needs Access from your machine.

Limits

  • A rule is your organization's, for every instance on its network. An organization holds 20 rules.
  • Hosts of your own: 3 on Free and 30 on Pro (Plans, limits and billing).

Last checked: unreleased checkout.