homelab

Architecture

Three trust zones, no open doors.

Pangolin Cloud is the front door, AWS IAM Identity Center hands out cloud access, and two machines at home do the work. Every connection that crosses into the house is opened from the inside.

The network

Who talks to whom

Numbered lines are the only paths across a boundary. Arrows point the way the connection is opened.

Homelab network Visitors reach Pangolin Cloud over HTTPS. The HP server's Newt tunnel dials out to Pangolin. Orbital signs in to AWS IAM Identity Center for short-lived role keys. The HP server runs Arcane and the apps; the Unraid NAS runs Vigil and stores backups. Vigil checks Pangolin's API and Arcane's API. A Helm agent on the NAS dials out to the Helm hub. Other outbound calls go to outside services. Internet family, friends, me on a phone AWS SSO through Authentik role keys for sessions, ECR Pangolin Cloud TLS and single sign-on in front of every resource access logs · routes to sites through Newt Outside services models · code · CI · issues · alerts Home network · no inbound ports HP server Docker host Newt Docker helm-agent Arcane Orbital Lanthorn Wharf Coffer Saga Debrief Traffic Viewer Atrium Helm hub Everything else: media, home automation, dev stacks Vigil watches each container and compose project through Arcane Unraid NAS storage, and the watcher Vigil watches everything from outside the HP server Backups land here Saga snapshots Lanthorn database dumps Debrief audio archive app /data volumes helm-agent 1 2 3 4 5 6 7 8
  1. HTTPS in. Visitors reach Pangolin Cloud, which handles TLS and asks for single sign-on before a resource opens.

  2. Newt tunnel. Newt on the HP server dials out to Pangolin, so the router forwards nothing.

  3. Pangolin API. Vigil reads sites and resources and checks each public address. Traffic Viewer pulls the access logs.

  4. Arcane API. Vigil asks Arcane for hosts, containers and compose projects. Lanthorn uses it to find databases.

  5. Backups. Saga snapshots, Lanthorn dumps and Debrief's audio land on the NAS.

  6. Helm agent. The NAS's agent dials out to the Helm hub, and its local policy limits what the hub may run.

  7. AWS SSO. I sign in to IAM Identity Center through Authentik. Orbital holds that sign-in, and each session gets only short-lived keys for the roles it was given. Wharf lists ECR with signed requests.

  8. Outbound only. Model calls, GitHub, Linear and alerts leave the house. Nothing comes back in uninvited.

Trust zones

What lives where, and what crosses

Edge

Pangolin Cloud

Holds the public addresses, TLS certificates and the sign-in policy for every resource. Nothing reaches an app until Pangolin's single sign-on lets it through.

Holds
Resources, sites, access rules, request and access logs
Crosses in
Requests that passed sign-in, down the Newt tunnel the HP server opened
Script access
Only /api/v1/* paths bypass SSO, and those always take an app's own API key

Cloud identity

AWS IAM Identity Center

I sign in through Authentik, which IAM Identity Center trusts as its identity provider. Orbital signs in once; each coding session then gets only the roles it was given, as short-lived keys in the standard AWS files, renewed while it runs.

Holds
Accounts and permission sets; Authentik holds the identities
Crosses in
Nothing. Orbital fetches role keys outbound.
Never leaves
The SSO sign-in itself stays in Orbital and never reaches a session

Home

HP server and Unraid NAS

The HP server runs the apps under Arcane. The NAS stores everything and runs Vigil, so monitoring survives the server going down. Neither accepts a connection from outside.

Holds
App data in /data volumes, each app's master key, backups
Crosses out
Newt, model and API calls, alerts, Helm and backup traffic between the two boxes
Router
No port forwards

Sign-in

Four ways in, each for one kind of visitor

People, from anywhere

Pangolin's single sign-on in front of each resource. Apps that also speak OIDC (Vigil, Orbital, Lanthorn, Debrief) can use the same identity provider, so roles follow the person.

Scripts and CLIs

Hashed, scoped API tokens on /api/v1: coffer get, sagacp, the Debrief recorder. Only those paths skip the proxy's sign-in.

Agents

Helm agents enrol with a one-hour token, swap it for a per-server key and only dial out. Each server's policy limits what the hub may ask of it.

Coding sessions

Orbital gives each session a GitHub token, short-lived AWS role keys and its MCP secrets as files only that session's user can read.

Failure modes

When something breaks, who tells me

Monitoring sits on a different box from the apps, with a dead man's switch in case it dies too.

If this failsWhat stopsHow I hear about it
HP serverEvery app except VigilVigil on the NAS: one alert for the host, with every container listed under it
ArcaneContainer management, Lanthorn discoveryVigil: one alert for Arcane, with every container listed under it
Newt tunnel or PangolinAccess from outside; the lab still works at homeVigil: the site goes down, and the resources behind it are grouped under it
Unraid NASVigil, backupsThe heartbeat service notices Vigil's minute-by-minute pings stopped
Home internetEverything from outside, all outbound callsThe heartbeat service again: no pings arrive
AWS sign-in expiresNew role keys for Orbital sessionsOrbital puts "renew AWS sign-in" on my to-do list