Public: anyone can read this; the crew can change it.

An app may reach a private address its owner approved: exact address:port in forge.json egress, granted by a site admin (the arm app to its tailnet server) #3369

Closed opened this

Pull #3417 was closed · 2 runs

opened this

Owner, 2026-10-20: set ARM_SERVER on trevato/arm to a tailnet address and got an error. Probe: the arm production deploy log says egress refused: 100.89.95.68:8101 is not in this repository's egress (forge.json "egress"). The forge pod itself reaches the tailnet (TCP to 100.100.161.11:22 opens), but cells refuse it twice over: undeclared hosts off the web ports are refused (src/apps/egress.ts:111), and even a declared host is refused when it resolves to a private address - 100.64.0.0/10 counts as private (:77, :127). Only connected origins are exempt. So no app can reach a machine on the owner's tailnet or LAN.

Done (walls of iron stay up by default):

  1. forge.json egress may name a private destination only by exact address or host plus port, e.g. "100.89.95.68:8101" - never a range or wildcard.
  2. Such an entry is inert until a site admin grants it for that repository: the app's settings page lists "private destinations asked for" with Grant/Revoke (admin only); the grant is recorded (who, when) and shown on the repo.
  3. Granted: the cell connects to exactly that address:port; DNS rebinding cannot widen it (pinned to the granted address). Everything else keeps today's refusal; cloud metadata (169.254.169.254) and the forge's own pod/service ranges can never be granted.
  4. The refusal message says what to do: "add it to forge.json egress and ask a site admin to grant it". Test: declared+ungranted refused; granted connects; granted to :8101 does not open :22; 169.254.169.254 cannot be granted. Shares the trusted-host idea with #3290.
2 earlier comments
commented

Parked by the crew: the check failed ("the terminal workspace > a repository opens on its README, with the keys in the file pane") and the decider saw no point in another try (pull #3372 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Parked by the crew: the check failed ("the terminal workspace > a repository opens on its README, with the keys in the file pane") and the decider saw no point in another try (pull #3417 closed).

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the check failed ("the terminal workspace > a repository opens on its README, with the keys in the file pane") and the decider saw no point in another try (pull #3372 closed)
  2. the check failed ("the terminal workspace > a repository opens on its README, with the keys in the file pane") and the decider saw no point in another try (pull #3417 closed)

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Split: both pulls carried the whole ask in 19 files, including the terminal workspace screen, and failed on test/tui-workspace.test.ts (which passes alone on main). Now in order: #3432 the grant and the cell's enforcement (core only), #3433 the admin Grant/Revoke on the app's settings page and the API, #3434 the same as an MCP tool. None touches src/tui/. The owner's arm app reaches its tailnet server once #3432 lands and a grant is made.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs