The homelab

A small cluster at home runs a software factory: agents take work from a tracker, open pull requests, and ship what passes review. This page is the current overview. The detail lives in the repository, and the history lives in the blog.

Reviewed · Source in the repository

How it fits

Home cluster
Three small servers run the factory and its tools. Everything on them is deployed from Git.
Cloud hub
The older cluster in the cloud. Its services are moving to the home cluster one at a time.
This site
Static files served by a Cloudflare Worker. No script runs per request, and no public request reaches a cluster.

Three paths that matter for safety

A visitor reads a page

Static files on Cloudflare. No request reaches a cluster.

  1. Visitor
  2. Cloudflare
  3. Static site

A change reaches the cluster

What merges is what runs, so the merge is the guarded step.

  1. Pull request
  2. Checks and independent review
  3. Merge queue
  4. main
  5. ArgoCD
  6. Cluster

An agent does a task

The agent holds placeholders. Real credentials are added outside the sandbox.

  1. Task from the tracker
  2. Sandboxed agent
  3. Egress gateway
  4. Scoped credential
  5. GitHub

Containing a threat

The design assumes something will go wrong: an agent reads hostile text, a dependency is compromised, a token leaks, a bad change merges. The question for each is how far it can reach. Controls are layered so that one failure stays in one place.

  1. Nothing listens openly

    Services reach the internet only through an outbound Cloudflare tunnel. The servers drop inbound traffic by default. Sign-in is enforced at the gateway for every browser app, and the one public API is a recorded decision.

  2. Agents hold nothing worth stealing

    Each agent runs in a gVisor sandbox with no cluster identity and only placeholder credentials. Outbound calls pass an egress gateway that adds the real credential. A token names one repository and its permissions, so a hijacked agent can act on that repository and nothing else.

  3. One merge is not enough

    The main branch needs passing checks and an independent review on the exact commit, through a merge queue. The reviewer is read-only and takes its rules from the base commit, so a change cannot loosen the rules that judge it. Only CI can raise deployment pins.

  4. Each service reaches only what it needs

    Network policy denies by default. Each service has its own database credentials. Storage is claimed by namespace, and admission policies decide which namespaces may attach routes or claim buckets.

  5. Untrusted text is data

    Issue text, web pages and logs are treated as hostile input. An agent that reads them gets narrow tools. The reviewer's agent is read-only.

  6. Public output goes through one door

    The site publishes an allowlist of objects, and a CI check rejects internal addresses and credentials in public docs. Agent memory and tracker text are private and stay out of the public repository and site.

  7. Operators get short, narrow credentials

    Operator sessions use scoped, short-lived tokens. The admin certificate is for break-glass use only. Nodes hold no registry credentials, and a host firewall limits who can reach them.

  8. Recovery is part of the design

    The cluster tolerates the loss of one server. Databases replicate and archive continuously, and a failed change rolls back by reverting it.

How far each position can reach

By design. These are claims about the design, not test results.

Anonymous internet
Sign-in pages and one public API. There are no open inbound ports.
A prompt-injected agent
One sandbox, the egress gateway and DNS. It can open a pull request, which still needs review.
A compromised dependency
It can only arrive in a pull request, so it meets the same checks and review.
One bad merge
The cluster, because what merges is what runs. This is why the merge is the most guarded step. A revert rolls it back.
A compromised pod
Its own network position, identity and data. Policy denies the rest by default.
A device on the home network
The host firewall drops inbound traffic, and operator credentials are short-lived.

What this does not cover

  • The factory does not have its own STPA security analysis yet. It is planned.
  • Findings from audits are tracked privately and fixed through the normal path. They are not listed here.

Method

Deep analysis uses STPA, which starts from the losses that matter and asks how each control could fail, including the ones that look sound. The monolith and the retired EmberVM sandbox each have one. The factory's is next.

Threat model · Security controls

Projects

Each name links to the project's directory, where its README or architecture notes live.

The factory

  • Takes work from the tracker, runs coding agents in sandboxes, and reviews and lands pull requests.

  • The three-server home cluster: its nodes, edge, storage, recovery and the platform apps ArgoCD deploys.

  • The snapshot contract and fixtures behind the public Factory page.

  • Forecasts memory use for the reviewer pool.

Public apps

  • This site, built as static files and served by a Cloudflare Worker.

  • hikesLive

    Scottish walks with their weather windows.

  • Dark-sky sites and the nights worth going out.

  • Walk and stargazing answers for AI assistants, over a public MCP endpoint.

  • tripsMoving

    Trips day by day, with photos.

  • grimoireMoving

    A reader and campaign manager for open tabletop rules.

The cloud hub

  • monolithRetired

    The personal knowledge graph, chat agent and tools behind most of the older services.

  • mcpRetired

    The gateway that lets AI clients reach the monolith's tools with one sign-in.

Tools and experiments

  • sextantRetired

    Generates type-safe Go state machines for Kubernetes operators, so an invalid transition is a compile error.

  • Serves a 125B-parameter model from a 24 GB GPU. See the blog post.

  • operatorsRetired

    Keeps the OCI model cache operator, which mounts Hugging Face models from a registry. It has no deployment today.

  • Screened budget models on tasks from this repository. Production trials replace it.

  • embervmRetired

    Firecracker orchestration, a private Lambda on owned metal. Retired in November 2026. The blog keeps its story.