Decision ADR-0008 · The Lighthouse
Ship releases through S3 + SSM. The server never talks to GitHub
Accepted ·
Context
- The instance has no public IPv4 address (ADR-0005).
- github.com has no IPv6, so the box cannot
git pullor install packages from GitHub. - GitHub-hosted runners can't SSH into a private instance.
- uWebSockets.js itself comes from GitHub (ADR-0002).
Decision
CI (GitHub Actions, using OIDC)
- Builds a self-contained artifact: the esbuild bundle, the Node 24 runtime, and
node_moduleswith the uWebSockets.js linux-arm64 binary. - Uploads it to
s3://…/releases/<sha>/. - Runs
ssm send-command.
On the box
- The deploy script downloads the artifact through the S3 gateway endpoint and verifies its checksum.
- It switches a symlink and restarts the service with a zero-kick drain.
Fallback
- A systemd timer polls S3 for
releases/current.json.
Consequences
- + No inbound access is needed, every artifact is versioned by git SHA, and rolling back is one command.
- − The artifact must match the server's CPU architecture and Node ABI. CI targets linux-arm64 and Node 24 explicitly.