Trusted LAN deployment
Status: Ready
Article ID: 010
Truth label: Limited
Audience: Agency operator
Reader outcome: Connect owned worker machines to Central without exposing the control plane to the public internet.
Related articles: 061, 064, 070
Target week: 04
Last verified: 2026-09-13
Technical reviewer: Codex source audit
Editorial reviewer: Codex editorial audit
Use a trusted LAN only when needed
The safest default is loopback. A trusted-LAN deployment is useful when Central, Brain, and Cortex run on one machine while workers execute projects on other machines you own.
Do not port-forward Brain, Forge, or Cortex to the public internet. The system does not provide customer login, public edge hardening, or complete role-based access control.
The topology
Trusted browser -> Cortex host :3000
-> Forge host :8080
-> Brain host :8081
Owned worker -> Forge host :8080
-> Brain host :8081
Workers connect outbound. They do not open an agent-execution port.
Configure the host boundary
The service host needs:
AA_BIND_HOST=0.0.0.0when LAN binding is intended- a strong
AA_API_TOKEN - an exact
AA_ALLOWED_ORIGINSlist for trusted Cortex origins SE_MANAGER_ALLOWED_PROJECT_ROOTSfor paths Central may register remotely- private-profile firewall rules limited to ports 3000, 8080, and 8081
Keep provider-key distribution disabled unless a worker has a reviewed need for those keys. That behavior requires its own explicit opt-in.
Store real values in .env. Never paste a live token into documentation,
shell history shared with others, or an Academy example.
Connect a worker
On the owned worker machine, start with the Central and Brain URLs:
./run-worker.sh http://central-host:8080 http://central-host:8081
The worker uses the fleet bearer for service access. On first credentialed registration, Central mints a worker credential and returns it once. The worker stores that credential locally and uses it for later registration, polling, and claim activity. A claim-bound run token authorizes writes for the specific task fence.
Verify the boundary
From a trusted machine:
- Open Cortex through the LAN host and enter the fleet bearer when prompted.
- Confirm Brain and Central health.
- Confirm the worker appears online with a recent heartbeat.
- Create a harmless task pinned to that worker.
- Verify the registered project path exists on that worker.
- Confirm unrelated origins, untrusted machines, and requests without the bearer cannot use protected routes.
Health routes remain public by design. A public health response is not proof that protected routes are open.
Cross-platform path limit
Central stores project paths literally. It does not map a Windows path to a macOS or Linux checkout. Pin each task to a worker whose filesystem can reach the registered path. Automatic per-worker path mapping is planned, not current behavior.
Current security limit
Worker credentials and run tokens protect important service paths, but the operator and service authority boundary is not complete. Execution children can also inherit more environment than a hostile repository should receive. Use trusted repositories, one confidentiality domain, and owned machines until the P0 audit findings are closed and tested.
Next lesson
Return to the Academy learning paths or choose a track from the article catalog.
Derivative map
- Weekly package: WEEK-04
- Long video: VIDEO-W04-LONG
- Shorts: SHORT-W04-PROBLEM, SHORT-W04-MECHANISM, SHORT-W04-WARNING
- Email: EMAIL-W04
- LinkedIn: LI-W04-A, LI-W04-B
- X: X-W04-A, X-W04-B
- Visual: VISUAL-W04
Review record
- Technical claims checked against the current canonical sources.
- Truth label and nearby limitations reviewed.
- Examples checked for secrets, client material, and private paths.
- Editorial structure, internal links, and repository voice reviewed.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13