homelab

Security analysis · December 2026

What protects the lab, and what could still go wrong.

A review of my own setup: the controls in place, thirteen risks scored by likelihood and impact, and the order I'd fix them in.

0inbound ports at home
4 of 10apps sign in with OIDC
13risks tracked
2rated high

Security components

The controls, layer by layer

What's in place today, and which part of the lab provides it.

Identity

  • Authentik is the identity provider behind AWS IAM Identity Center.
  • Pangolin SSO in front of every public resource. Only /api/v1/* paths bypass it, and those require an app's own key.
  • OIDC in the app for Vigil, Orbital, Lanthorn and Debrief, with admin, member and viewer roles checked in the request hook and again in each handler.
  • Hashed, scoped tokens for scripts and CLIs, optionally read-only and expiring.

Network

  • No port forwards. Newt dials out to Pangolin; Helm agents dial out to the hub.
  • TLS at the edge, terminated by Pangolin Cloud.
  • Outbound-only integrations: Orbital polls Linear rather than taking webhooks.

Credentials

  • Short-lived AWS role keys for coding sessions, renewed while they run. My sign-in never reaches a session.
  • Hour-long GitHub App tokens where an organization allows apps but not personal tokens.
  • Coffer for team secrets, with every read logged and one-time links whose key never reaches the server.

Data

  • AES-256-GCM at rest in every app, with the row's id as associated data so ciphertext can't be moved between rows.
  • Never back to the browser: stored passwords, keys and tokens are write-only from the UI.
  • Read-only by default in Lanthorn: every query runs in a transaction that's rolled back.
  • Client-side encryption in Saga, so the server and its backups hold ciphertext.

Supply chain

  • No runtime npm dependencies in the core apps; crypto, SQLite, HTTP and SMTP come from Node itself.
  • Frozen lockfiles and checks, tests and a build on every pull request.
  • Least-privilege workflow tokens: contents: read, plus packages: write only where images are pushed.
  • Fork pull requests never run on the self-hosted runner.
  • Security gates on pull requests: Socket for dependencies, Semgrep and DryRun for code, GitGuardian for secrets.
  • Trivy scans images and dependencies for known CVEs.

Detection

  • Vigil on a different machine from the apps, with a dead man's switch for itself.
  • Traffic Viewer alerts on new countries, odd hours, single IPs and volume.
  • Audit trails: Coffer reads, Lanthorn queries, Helm runs and file edits, Wharf downloads.
  • Certificate expiry warnings in Vigil and Coffer.

Risks

Likelihood against impact

Each risk is placed by how likely it is in this lab and how bad it would be. Tap an id to jump to it in the register below.

High
Medium
Low
Low
Medium
High
Likelihood
High: fix first Medium: planned Low: accepted for now
RiskRatingWhat's in placeNext step
R2 · Prompt injection in agent sessionsIssue text, repo files or web pages steer an Orbital session that holds a GitHub token and AWS role keys.HighOne container per session, scoped tokens, short-lived AWS keys, skills pinned to their own branch, merging stays manualAn egress allowlist for session containers; read-only GitHub tokens and no AWS roles unless the repo needs them
R3 · CI supply chainA compromised action tag, base image or the self-hosted runner taints a release image.HighFrozen lockfiles, few dependencies, least-privilege workflow tokens, fork PRs on GitHub-hosted runners, Socket on every dependency change, Trivy on imagesPin actions by SHA, make the runner ephemeral, sign images with cosign and publish an SBOM
R1 · Docker socket is rootOrbital, Wharf and Lanthorn talk to the Docker socket; a flaw in any of them is root on the HP server.MediumAll three behind SSO, with roles; Orbital sessions in their own containersA read-only socket proxy for Wharf and Lanthorn; rootless Docker or a separate host for Orbital sessions
R4 · SSO bypass rules driftA Pangolin rule wider than /api/v1/* exposes an app's unauthenticated web API.MediumBypasses limited to key-protected paths, documented per appA Vigil HTTP check per resource that expects the sign-in page
R5 · Master keys travel with backupsAnyone holding a volume backup plus its key can read every stored credential.MediumKeys can come from the environment instead of /dataKeys in Coffer and offline; encrypt the NAS backup share
R8 · Remote execution through HelmA compromised hub runs commands on every agent.MediumEach agent's own policy caps the hub; agents only dial out; every run is recordedTighter default policies; confirmation on destructive actions
R9 · Sensitive data on the NASMeeting audio, transcripts and secrets in backups.MediumData stays on my hardware; Saga items can be client-encryptedRetention limits for Debrief audio; encrypted shares
R6 · The same API key in several appsPangolin's key lives in Vigil and Traffic Viewer, Arcane's in Vigil and Lanthorn.MediumSealed separately in each appOne scoped, read-only key per app, on a rotation schedule
R10 · Single points of failureThe HP server, Pangolin Cloud and the home connection.MediumMonitoring on the NAS, a heartbeat outside the houseA written restore runbook, and a restore drill twice a year
R11 · Leaks through docs and screenshotsPublic repos show real names, addresses or tokens. This review found some.MediumDemo data for new screenshots; GitGuardian catches secrets in commits, but not in imagesReplace the leaking images; generate screenshots in CI from demo data only
R12 · Unpatched images and dependenciesBase images and dev dependencies age between manual updates.MediumFew dependencies to begin with; Trivy flags known CVEsRenovate to act on what Trivy finds, with CI as the gate
R7 · Local logins without MFACoffer, Wharf, Helm, Saga and Traffic Viewer rely on their own passwords behind SSO.LowPangolin SSO in front of all of themOIDC through Authentik, starting with Coffer
R13 · Data sent to model providersDebrief summaries and Orbital sessions send text to Anthropic or another provider.LowOpt-in per app; audio and full transcripts stay homeNote per app what leaves, and keep a local-model option open

Strengths

What's working

  • The house has no open ports, so there's nothing to scan.
  • Credentials are encrypted the same way everywhere and never shown again once saved.
  • Cloud access is short-lived and tied to one identity provider.
  • Monitoring survives the machine it watches, and watches itself.
  • Few dependencies leave little to audit.

Weaknesses

What isn't yet

  • AI agents hold real credentials and can read untrusted text.
  • The build pipeline trusts tags, a long-lived runner and unsigned images, and Semgrep and Trivy don't cover the vitafortis repos yet.
  • Half the apps don't speak OIDC.
  • Keys, backups and restores have no written process.
  • Public screenshots weren't reviewed until now.

Recommendations

What I'd fix, in order

Ordered by how much risk each removes for the effort.

  1. Replace the leaking screenshots

    Re-shoot the Orbital, Debrief and open-PR images that show real names or addresses. It takes an afternoon and closes R11 today.

    R11
  2. Lock down the build

    Finish rolling Semgrep and Trivy out to the vitafortis repos, pin every action by SHA, make the self-hosted runner ephemeral, add Renovate, and sign images.

    R3 · R12
  3. Fence in agent sessions

    Default Orbital sessions to read-only tokens and no AWS roles, and give their containers an egress allowlist.

    R2
  4. OIDC through Authentik everywhere

    Start with Coffer, since it holds secrets, then Wharf and Helm.

    R7
  5. Take the socket away

    Put a read-only Docker socket proxy in front of Wharf and Lanthorn, and move Orbital sessions to rootless Docker.

    R1
  6. Keys, backups and a drill

    One scoped key per app, master keys out of the backups, an encrypted backup share and a restore drill.

    R5 · R6 · R10

For security professionals

A lab that behaves like production

The suite uses the controls I'd ask of a vendor: least privilege, short-lived credentials, encryption with associated data, hashed tokens, audit trails and agents that only connect outward. That makes it a decent practice range and a reasonable baseline for a small team.

Least privilege by default

  • Lanthorn runs every query in a read-only transaction that is always rolled back. It also generates the SQL for a least-privilege login.
  • Helm: each server's own policy limits what the hub may run, so a compromised hub can do no more than the agents allow.
  • Orbital gives sessions short-lived AWS role keys from IAM Identity Center. My own sign-in never reaches a session.

Secrets and PKI

  • Coffer issues CAs, X.509 certificates and SSH key pairs (Ed25519, ECDSA, RSA) using node:crypto alone, checked against openssl verify and ssh-keygen.
  • Each version of a secret is sealed with its own id as associated data, so ciphertext moved to another row won't decrypt.
  • Every read through the web app, CLI or extension is logged with the person and token.

Sharing without a trail

  • Coffer links keep their key in the URL fragment, which browsers never send. Neither the database nor proxy logs can open them.
  • Coffer, Wharf and Saga store only token hashes. A one-time claim is one atomic update, and opening one takes a POST, so chat link previews can't use it up.
  • Saga can encrypt on the device, so the server and its backups only ever hold ciphertext.

Exposure and detection

  • Traffic Viewer alerts on origin country, time of day, IP and volume for everything behind Pangolin.
  • Vigil warns before TLS certificates expire and pings a dead man's switch, so I hear about it if the monitor itself dies.
  • Public pages (status pages, share links) show only what they list. Saga rate-limits code guessing per IP.

AI agents under control

  • Orbital runs /security-review on a pull request in a throwaway container. Skills install from their own branch, so the PR under review can't rewrite the skill reviewing it.
  • Model credentials and MCP secrets reach a session as files only that session's user can read.
  • Debrief keeps audio and transcripts on my hardware. Only the summary request leaves, and only if I turn it on.

Supply chain and air gaps

  • Wharf inventories images across registries, searchable by digest, label or source. Downloads are verified blob by blob.
  • The core apps have no runtime npm dependencies, which leaves much less to audit.
  • Multi-arch images that run as non-root

Gaps and dependencies

What it leans on, and what's next

As of December 2026. Some gaps are deliberate; most are just next in line.

security or availabilityfrictioncosmetic

Dependencies

Pangolin

The front door and SSO for everything public. Vigil and Traffic Viewer read its API, and access logs need Pangolin Cloud or Enterprise. If Pangolin is down, nothing is reachable from outside.

The Docker socket

Orbital starts containers through it, and Wharf and Lanthorn read from it. Socket access is root on that host, so those three always sit behind SSO.

One master key per app

Each app seals its credentials under its own key. Lose the key and those credentials are gone. Store it apart from the volume backups, or anyone holding a backup can read them.

Arcane 3.x

Vigil's container and compose-project monitoring and Lanthorn's discovery both use Arcane's agent API.

Node 24

The built-in node:sqlite needs Node 24 or later. The images include it; running from source needs it too.

Outside accounts

Orbital needs a model provider and GitHub. Debrief's automatic summaries need an Anthropic key. Linear, Slack and Akiflow are optional.

Gaps

SSO isn't everywhere

Vigil, Orbital, Lanthorn and Debrief support OIDC. Coffer, Wharf, Helm, Saga and Traffic Viewer rely on local logins or Pangolin's SSO in front of them.

The same key in several places

The Pangolin key is stored in Vigil and Traffic Viewer, and the Arcane key in Vigil and Lanthorn. Coffer deliberately never pushes, and nothing pulls from Coffer yet, so rotating a key means updating every copy.

Alerts set up three times

Vigil, Lanthorn and Traffic Viewer each keep their own Slack and ntfy settings. Routing the other two through Vigil would put quiet hours and grouping in one place.

Backups are uneven

Saga snapshots and Lanthorn's dumps go to the NAS on a schedule. For the rest, I back up the /data volume myself.

Stack outliers

Helm, Traffic Viewer and Debrief look like the rest but are built differently, so changes to the shared pieces don't reach them for free.

Names and hues

Helm lives in the server-control repo. Saga and Lanthorn share violet, and Helm borrows Orbital's blue.