Skip to main content

Understand the local-first API boundary

Status: Ready

Article ID: 061

Truth label: Current

Audience: Operator

Reader outcome: Explain loopback defaults, bearer access, and health-route exceptions.

Related articles: 010, 020, 070

Target week: 25

Last verified: 2026-09-13

Technical reviewer: Codex security source audit

Editorial reviewer: Codex editorial audit

Name the actor and asset​

The intended actor is a trusted operator using Cortex or a direct API client. The protected assets include tasks, results, project paths, knowledge, traces, and control-plane actions. A random network peer is not an intended user.

Locate the boundary​

Launch scripts bind services to loopback by default. Loopback reduces network reachability, but a process on the same host can still call the service. A co-hosted execution child must therefore be treated as inside the network perimeter, not automatically trusted.

Understand bearer capability​

When a fleet token is configured, non-health routes require the bearer for non-loopback access. Exact CORS origins constrain browser calls. These controls support a trusted local or private-LAN deployment.

Health routes are intentionally easier to reach so monitors can report service status. Do not put sensitive task or configuration data in those responses.

Apply the safe-use rule​

Keep the APIs on loopback for a single host. For a trusted LAN, use a random token, exact origins, restricted firewall sources, and a private network or TLS gateway. Never expose the ports directly to the public internet.

Current limits​

The fleet bearer is not complete role separation. Browser storage, co-hosted processes, chat attachment paths (AA_ATTACHMENT_ROOTS), voice pack prompt authority (VOICE_PACK_DIR), and operator routes create additional authority risks. Network access control does not provide confidential multi-client isolation.

Next lesson​

Continue with Worker credentials and run tokens.

Derivative map​

  • Weekly package: WEEK-25
  • Long video: VIDEO-W25-LONG
  • Shorts: SHORT-W25-PROBLEM, SHORT-W25-MECHANISM, SHORT-W25-WARNING
  • Email: EMAIL-W25
  • LinkedIn: LI-W25-A, LI-W25-B
  • X: X-W25-A, X-W25-B
  • Visual: VISUAL-W25

Review record​

  • Actor, assets, boundary, and bearer capability checked against current source.
  • Health-route and loopback limits stated next to the instructions.
  • Public exposure and tenant-isolation claims rejected.
  • Internal links and repository voice reviewed.

Review completed: 2026-09-03

Re-audited against the running product: 2026-09-13