homelab

Homelab · architecture and risk

Building my own tools without making my lab easier to break into.

Most of my gripes with existing tools came down to cost, missing features or how they looked. So I used Claude Code to build tools that fit how I work, instead of changing how I work to fit the tools. This site is mostly about how that’s put together: the architecture, what I deliberately leave to someone else, and the risks that are still open.

0inbound ports at home
13risks tracked
2rated high, with fixes ranked
5security tools on every change
10apps I built and run

Architecture

The lab in one picture

Two machines at home and a tunnel. Every connection across the edge of the home network is opened from the inside, and monitoring runs on a different machine from the apps it watches.

The lab in one picture Visitors reach Pangolin Cloud over HTTPS and sign in. The home network opens an outbound tunnel to Pangolin, so nothing comes in uninvited. The HP server runs nine of the apps under Arcane; the Unraid NAS runs Vigil and holds the backups. Orbital gets short-lived AWS keys through IAM Identity Center and Authentik. Visitors family, friends, me Pangolin Cloud TLS and single sign-on in front of every app AWS short-lived keys via SSO Home · no inbound ports HP server Arcane · Docker · Newt nine apps, one container each NAS Vigil watches the server from outside it + every backup HTTPS tunnel out Orbital

Build, run or pay for it

Most of the lab isn’t mine

Building was never the default. Where a tool already does the job, has good support and keeps getting better, I run it as is. Anything whose failure would stop me hearing about a failure, like the edge, alerts and email, I pay someone else to run.

NeedWhat I useRun byWhy I kept it
Public edge, TLS, SSOPangolin CloudPaid serviceToo critical to run myself. No upkeep, a fair price, and disaster recovery is their job. The tunnel dials out, so nothing at home is open.
AlertsSlackPaid serviceIf the lab is down, the alert still has to get out.
EmailResendPaid serviceSame reason. I don’t want to run mail delivery for alerts that have to arrive.
The modelClaudePaid serviceI can’t self-host it. Each session sees one repo.
Source control, CIGitHubPaid serviceMature, and the security checks run there.
Issue trackingLinearPaid serviceLow sensitivity. Orbital polls it from inside, so there are no webhooks.
Identity providerAuthentikMe, in AWSToo central to hand over, and not something to write myself.
Container managementArcaneMe, at homeGreat features and active support. My apps build on its API.
Server monitoringBeszelMe, at homeDoes the job well and keeps improving.
Network discoveryScanopyMe, at homeDoes the job well and keeps improving.
Storage and backupsUnraidMe, at homeMature, and it’s where the backups live.
Uptime monitoringVigilBuiltI tried Uptime Kuma and Peekaping. Both needed every monitor added by hand, and neither matched the rest. Vigil’s alerts still go out through Slack and Resend.
Everything elseNine more appsBuiltWhere nothing fit how I work. Each one is below.

Risk

What protects it, and what’s still open

I hold the lab to the controls I’d ask of a vendor. Thirteen risks are scored by likelihood and impact, and two are rated high: agents reading untrusted text while holding real credentials, and a build pipeline that still trusts tags and a long-lived runner.

Least privilege

Read-only database sessions, per-server policies the hub can't override, and short-lived AWS keys instead of my own sign-in.

Secrets sealed to their row

AES-256-GCM with the row's id as associated data, token hashes only, and credentials that never go back to the browser.

Agents in a box

Each session runs in its own container with a scoped token, and security reviews run on a skill the pull request can't change.

How it gets built

Claude Code builds it, and I merge it

A labelled issue starts a Claude Code session. CI and five security tools check its pull request, and app code reaches main only when I merge it. After that, it builds, deploys and is watched without me.

How a change ships Swimlanes for me, Orbital, GitHub and the homelab. I write a labelled Linear issue; an Orbital rule starts a Claude Code session, which opens a pull request. GitHub Actions CI, Socket, Semgrep, DryRun and GitGuardian check it; findings go back to the session. I review and merge. Actions builds the image, Trivy scans it and it is pushed to GHCR. Arcane deploys it on the HP server and Vigil watches it; if it fails I get an alert, which becomes a new issue. Plan Code Verify Review Build Release Deploy Operate Meplan · merge Orbitalon the HP server GitHubActions · apps HomelabArcane · Vigil Issuewith a label Rule firesstarts a session Claude Codeopens a PR PR checksCI and 4 gates Reviewsquash, merge Build, scanBuildx · Trivy GHCR:latest + tag DeployArcane recreates WatchVigil checks it Alertonly if it fails pull request findings all green merge to main new image down or unhealthy the alert becomes a new issue runs on its own only when something fails a lane is who, or what, does the step