Skip to content

Isolation and egress report

First edition, tested 2026-11-24 on the deployed Portward on the web: engine image portward-engines:4419a51@sha256:f3fa96d2510c9b7f25ab188114341c9eb8d14ad050db264c076d4f9434ff1e92 (the image every engine ran that day), router and account service from main 4419a51.

Second account and Free limits added 2026-11-25 and 2026-11-26 on the deployed service at main dbc020b and bf1ce0a, with a second test account Portward owns (deleted afterwards).

This report checks four promises Portward on the web makes, on the running service rather than in tests alone:

  • One account can’t reach another’s data. Your engine is yours: nobody else’s sign-in reaches it.
  • Private addresses are refused. Your engine connects only to databases on the public internet, never to an address inside Portward’s host.
  • An engine can’t reach other engines or Portward’s systems. Engines share a private network, and that network doesn’t let one engine open a connection to another.
  • Free limits hold. One connection, 200 questions in 7 days, 200 rows per answer.

Each case below says what was tried, what came back, and pass or fail. Every live case is a script in the repository that you can read: scripts/isolation_live.sh with scripts/isolation_probe.py (inside Portward’s host), and scripts/isolation_public.sh (from the internet). Each case is also a test that runs on every change.

Summary: every case run live passed. The cross-account case and two of the three Free limits were run live on 2026-11-25 and 2026-11-26 with a second test account. The second-connection limit is still in tests only, because the test account connected no database; it is marked not run live yet.

Inside Portward’s host (Fly.io), a throwaway app was made on the engines’ private network with two Machines, both from the engine image above: a “victim” that listens for connections the way an engine does, and a “probe” that tries to reach it, a live engine and the router, and runs the engine’s own address check. The probe sees the network as a compromised engine would. A live engine and the router only ever got a TCP connection attempt, never a request, so nothing on them changed. The throwaway app was deleted the same minute, and the organisation’s app list afterwards showed only Portward’s two apps.

From the internet, requests a stranger could send (no account, made-up tokens) went to the connector address, an engine’s own address and the account service.

1. One account can’t reach another’s data

Section titled “1. One account can’t reach another’s data”
CaseWhat came backResult
Connector address, no tokenHTTP 401pass
Connector address, a token shaped like Portward’s that Portward never issuedHTTP 401pass
Connector address, a malformed tokenHTTP 401pass
An engine’s own address, asked for MCP (the connector moved to the shared address)HTTP 404, answered by the router; the engine was not woken (it stayed suspended)pass
An engine’s own address, with a token meant for the shared addressHTTP 401, answered by the routerpass
An engine id that doesn’t existHTTP 404pass
Account service: an account’s hosted settings, routes, and AI-log reads, without a sign-inHTTP 401 eachpass
Account service: what an engine asks for (its bundle, its MCP check, its receipts upload), without the engine’s tokenHTTP 401 eachpass
Account service: an account’s report records, without a sign-inHTTP 401pass
A second account lists, queries or reads receipts of the first account’s connection, through the connector and the account serviceRun live 2026-11-25: pass. The second account’s browser, opening the first account’s engine pages, was sent to its own sign-in with “This sign-in didn’t work. Open the setup page again from Portward.”; asking the connector, signed in as the second account, to query or describe the first account’s connection by name answered “no source named …” and wrote a refusal receipt on the second account only. Also in tests: an access token goes only to its own account’s engine (tests/test_engine_router_front_door.py::test_a_token_is_replayed_to_its_accounts_engine_only, ::test_headers_cant_send_a_token_to_another_engine, ::test_a_shared_token_on_another_accounts_engine_address_is_refused); another account’s engine refuses the token (tests/test_control_front_door.py::test_another_accounts_engine_refuses_the_token, tests/test_control_personal_mcp.py::test_another_accounts_token_is_refused); an engine may ask the account service only about its own address (tests/test_control_free_accounts.py::test_an_engine_may_only_ask_about_its_own_address)pass

Run inside Portward’s host by the engine’s own code (the same check every database connection on an engine goes through), on Fly’s real DNS. Each host was tried as a PostgreSQL and as a MySQL connection: 38 cases.

Host the connection namedWhat came backResult
169.254.169.254 (cloud metadata) and ::ffff:169.254.169.254refused: resolves to a private addresspass
10.0.0.1, 172.16.0.1, 192.168.0.1 (private ranges), 100.64.0.1 (carrier NAT)refused: private addresspass
127.0.0.1, ::1, localhost (loopback)refused: private addresspass
fd00::1 (unique-local IPv6)refused: private addresspass
A live engine’s private address, and its private namerefused: private address (while the engine was suspended its name had no address, and the connection was refused as not found)pass
The private names of every engine, of the router, and of Fly’s Machines API (_api.internal)refused: private addresspass
The probe’s own private address (fly-local-6pn)refused: private addresspass
Public names that resolve to private addresses: localtest.me (loopback), 169.254.169.254.nip.io, 10.0.0.1.nip.iorefused: private addresspass
Control: example.compassed the address check, then “the server didn’t answer” (nothing listens there)pass

The refusal happens before anything is dialled, and when the address is public the engine connects to the exact address it checked, so a name can’t answer differently in between (free/tests/test_hosted_egress.py, 59 tests).

3. An engine can’t reach other engines or Portward’s systems

Section titled “3. An engine can’t reach other engines or Portward’s systems”
CaseWhat came backResult
Control: a service listening on IPv6, reached over the private networkconnectedpass (the network works)
An engine-like listener (port 8080, IPv4 only, as engines listen) over the private networkconnection refusedpass
The same listener on its private IPv4 addressno answer (not routed between Machines)pass
A live engine’s port 8080 over the private network, while it was runningconnection refusedpass
A live engine’s private nameIPv6 address only, no IPv4pass
The router’s port 8080 over the private networkconnection refusedpass
Fly’s Machines API on the private network, with no token (engines hold none)HTTP 401pass
The Machine’s own Fly API socket, asked to list MachinesHTTP 403pass
Fly’s own SSH service on each Machine’s private address (port 22)answers; it takes only sign-in keys Fly issues to Portward’s organisation, which an engine has no token to getrecorded
What an engine can learn: the private addresses of the running engines (a DNS name)listedrecorded: knowing the address doesn’t open the port
Outbound to the internetallowed, from Fly’s shared outbound addresses, not a fixed onerecorded

Fly has no outbound firewall, so what keeps an engine from reaching other engines is that engines listen on IPv4 only while the private network carries IPv6 only (free/tests/test_engine_listens_ipv4.py), and that every database connection goes through the address check above. Outbound connections to the internet are allowed by design: your database is on the internet.

CaseResult
A second connection is refused on Free, and replacing the first is notNot run live yet. In tests: free/tests/test_hosted_free_limits.py::test_a_second_web_connection_is_refused_and_replacing_the_first_is_not passes
The 201st question in 7 days is refused, saying when the next one is allowedRun live 2026-11-26: pass. After 200 questions in 7 days the next was refused: “This account has asked 200 questions in the last 7 days, and Free on the web answers 200 in any 7 days. The next question can be asked from 2 December 21:34 UTC.”, with a refusal receipt. Also in tests: ::test_questions_past_the_weeks_limit_are_refused_saying_when_and_counted, ::test_two_questions_at_once_at_the_limit_run_only_one pass
An answer reads at most 200 rows and says so (the 201st row is never read)Run live 2026-11-26: pass. A query with more than 200 result rows returned 200, marked truncated, saying “Free on the web reads at most 200 rows per result”; asking for more rows of that answer sent none. Also in tests: ::test_a_result_reads_at_most_the_rows_per_result_and_says_so passes
  • The second-connection limit is in tests only: the test account connected no database. The next edition runs it live.
  • Team workspaces (another workspace’s members, results and setup links, and the shared outbound address) are in the second edition.

The scripts are in the repository. scripts/isolation_live.sh needs a Fly sign-in for Portward’s organisation, and scripts/isolation_public.sh needs nothing but the internet. The query guard has its own report: attack tests on the query guard.