Prerequisites: the Architecture overview and the How money works in the cloud primer, because every stage here is a cost decision.
Unfamiliar word or acronym? The Glossary defines it.
The environment grows one stage at a time. Each stage gets its own design, its own cost approval and its own guide before it costs anything. Working ceiling in the current phase: $30 per month. Every phase carries its own ceiling in docs/stages/approved.json, with a reason and a decision date, and a later phase can raise it on purpose (see the per-phase cost table below).
Work runs in two-week sprints, S1 to S8, from 2026-10-20 to 2027-02-08. The board is project 4 and its definition is board.yaml; How this project is planned explains the method. Agent-built work is planned ahead of the maintainer's hours: designs, flag-off code and mocked tests land early, and every apply stays gated on the maintainer. Status below is as of 2026-10-30, read from the issues; dates after S2 are indicative and move with what the maintainer decides.
| Sprint | Dates | Planned, and where it stands |
|---|---|---|
| S1 | 2026-10-20 to 2026-11-02 | Maintainer: AWS integration check (#76), unlock stacks and read the first plans (#77), secret-expiry calendar (#78); all three are still open on 2026-10-30. Review on 2026-11-02 (#134). Done in this sprint: stage 2 approved at the $30 ceiling and made the current phase (#319), the push policy and the plan policy attached in Spacelift (see Stage 1), the connector droplets rebuilt with the update, baseline, harden order and auditd -a rules (#235, #305). |
| S2 | 2026-11-03 to 2026-11-16 | Twingate 5.x plan read (#93, open), per-site telemetry accounts (done, #104), edge, honeypot and PeerTube designs written (#118, #120, #121; the maintainer's decisions are still owed), stage 2 guide verification (#106). Added: the cah-20-telemetry stack, locked (#98), connector telemetry one connector at a time (#100), the growth chart refresh (#328). |
| S3 | 2026-11-17 to 2026-11-30 | Stage 2 cloud-to-home path: home VLAN and allow-list (#97), Prometheus scrape through the headless client (#101), Wazuh agents pushing logs home (#102), audit logging on the droplets (#95), end-to-end confirmation (#105). Stage 3 start: Spaces bucket and state backend, audit logging, cross-site dashboards, stack factory, stage 3 cost approval. Added lesson: Hugo against WordPress, with a career section (#317). |
| S4 | 2026-12-01 to 2026-12-14 | Workload stack (flag off), Portainer hardening, headless client. Added lessons that need stage 2 running: the attack surface of this stack (#318), a basic Wazuh SIEM and data pipelines for logs and metrics (#321), Grafana basics and database connections (#322). |
| S5 | 2026-12-15 to 2026-12-28 | Cloud-optimized daemon install, Functions for timer jobs, throwaway AWS account. Added lesson: patch management and automatic security updates, which links the maintainer's Patch Gremlin project (#325). |
| S6 | 2026-12-29 to 2027-01-11 | DMZ stack (flag off), cloud reviewer recruiting. The Spacelift push policy that was listed here was pulled forward and is live (#86 is still open to be closed). Added lesson: the DMZ and hardening an internet-facing host (#324). |
| S7 | 2027-01-12 to 2027-01-25 | Azure and AWS Lambda work, Twingate apt key rotation, the cloud lessons. Added: the staging stack (#310), a separate stack under its own $20 per month ceiling, built only when the maintainer signs in and sets up its accounts. |
| S8 | 2027-01-26 to 2027-02-08 | GCP modules with mocked tests, buffer and retro. Added lesson: environments and promotion, taught after the features exist (#313). |
The staging ceiling is a maintainer decision (2026-10-30) that is not yet written into docs/stages/approved.json; the issue requires it there, and in the cost gate, before any resource exists.
The gate enforces the ceiling of the current phase (stage-3, $30). The other rows are proposals from the stage designs; none is approved until its phase becomes current. "Reference spend" is what the reference environment adds to the cloud bill; "extras" are optional builds for a learner or a later decision. Prices are in docs/cost-prices.json (DigitalOcean, retrieved 2026-10-10; the Spaces entry retrieved 2026-10-31), docs/cost-prices/aws.json (retrieved 2026-10-16) and the Spaces price read 2026-10-11 in docs/cost.md.
| Phase id | Status | Ceiling | Reference spend, with arithmetic | Optional extras |
|---|---|---|---|---|
stage-0 |
done | $30 | $0 | none |
stage-1 |
done | $30 | two s-1vcpu-1gb connectors, $6 + $6 = $12 |
none |
stage-2 |
done | $30 | $0 added: logs go to the on-prem SIEM, so still $12 | none |
stage-3 |
current | $30 | $12 connectors + $12 s-1vcpu-2gb droplet + $5 bucket = $29 ($1 left) |
a larger droplet or no bucket: $30 to $41 (see cost) |
stage-4 |
planned | $30 | $0 added: Grafana runs on-prem, so still $29 | none |
aws-twin |
planned | $30 | two t4g.micro: 2 x (730 h x $0.0084 + 730 h x $0.005 + 8 GiB x $0.08) = 2 x $10.42 = $20.84, applied only while the DigitalOcean connectors are torn down |
none |
edge |
planned | $35 | not costed: its design sets the number. The floor is $29 + one $6 droplet = $35 | placeholder only |
second-site |
planned | $41 | $29 + a second site's two connectors, $12 = $41 | a second AWS or DigitalOcean site |
learner-soc |
planned | $53 | the reference environment stays at $29 | a learner's cloud mini SOC: $29 + $6, $12, $18 or $24 = $35, $41, $47 or $53 (Build your own mini SOC) |
Reading the table: a ceiling may stay equal or rise from one phase to the next, and a decrease has to be written down as one ("lowers": true). The edge, second-site and learner-soc rows are the first places the ceiling rises past $30. To raise a ceiling: add or edit the phase entry (ceiling, reason, decided), set current_phase, and raise the provider approval separately; scripts/cost_raise.py prints the diff. Procedure in docs/cost.md.
Project, VPC, baseline tag and a baseline firewall with zero inbound rules, plus account hardening done by hand before any automation had credentials. Guide: docs/stages/00-foundation.md.
Two Twingate connectors, the connector firewall, an admin group and per-host SSH resources. Guide: docs/stages/01-access.md.
Open follow-ups from this stage:
metadata_lock, built and off by default, not yet tested on a real droplet).host_firewall, built and off by default, not yet tested on a real droplet; stage it one connector at a time).-a always,exit rules plus their 32-bit (arch=b32) twins on x86_64 (#235, #305, PR #320). The connector SSH resources moved to new private addresses.~> 5.0 on main. The issue is still open: the maintainer's read of the first tracked plan is not recorded anywhere I can check, so it is not claimed as applied. Expect no create, replace or destroy of Twingate resources beyond a schema refresh.ignore-pull-requests (Git push, Rego v1, auto-attached with the cah label) now carries the body of .spacelift/policies/push.rego. It ignores every event except a push to the stack's tracked branch that touches the stack root, modules/, scripts/spacelift/ or .spacelift/, so no pull request, fork or feature branch starts a run. The cah-plan plan policy (.spacelift/policies/plan.rego) is live too; it treats a prefix of /8 or shorter as world-open (PR #315). Known gap: the stacks cah-00-foundation and cah-10-access have no additional project globs, so a push that changes only a module starts no run; tracked in #326. The private stack factory still holds the older policy body, tracked in #316. Procedure and the free-plan fallback are in the secrets runbook, section 9.Stage 2 became the current phase on 2026-10-30 at the $30 ceiling (maintainer approval, issue #319, PR #323); it adds $0 to the cloud bill in the reference environment. Design draft: 2026-10-11 stage 2 logging. Prometheus pulls the cloud connectors over a Twingate headless client; one home connector per VLAN (logging, AI), with Twingate groups carrying identity-level segmentation and pfSense as a connector-level backstop; Wazuh agents push logs home over a second service account; both paths are single-port resources. Cloud cost $0 for the reference environment (home Grafana, nothing new in the cloud). The 2026-10-16 settings and mini SOC design first adds a settings layer (variables, example values, resource_key, site_name, a timezone variable) and stack instances for a second site in the cost gate; those are merged, and so is the cloud-side telemetry code that builds on them (below).
Build status: design merged, cloud side written and mock-tested, not applied. The stage 2 guide's verification section lists every post-apply check as not run yet and records what can be measured offline today (62 OpenTofu tests for the telemetry stack pass with mocked providers; none of it has run against live infrastructure). On main today: the settings layer, the cost gate's stack instances and the telemetry stack, which creates Twingate objects only behind two flags that default to false (stage 2 guide). On the connectors, all opt-in and off by default: the node exporter with metrics firewall rules (tag-sourced on DigitalOcean, security-group-sourced on AWS), connector telemetry options, and a Wazuh agent with auditd that pulls its enrollment secret from Doppler on first boot. The repository also ships site-aware Grafana dashboards (Grafana dashboards).
Still open, and the guide says so itself: nothing is applied, so none of this has run on a real machine. The Twingate headless client that would carry agent traffic home is not built. The home side (VLAN, firewall allow-list, headless client, target file) is not done, and no event has been seen in the SIEM. The memory the agent and exporter take on the 1 GB droplets is unmeasured, and the connector's metrics bind address is unverified. The guide's verification section lists the read-only checks to run after an apply, each marked not run yet, and the home-side runbook is the operator's side.
Design draft: 2026-10-11 stage 3 workloads. Approved by the maintainer on 2026-10-31 (full stage 3 scope): the phase is current at $30 and the cost gate prices a Spaces bucket at a flat $5, but nothing is built and the bucket stays switched off.
One workload droplet in the VPC running Docker Engine and Portainer CE, hardened by cloud-init like the connectors, with its own firewall (inbound only from the connector tag) and one narrow Twingate resource per port (SSH, Portainer). It carries the small always-on bots that run in the homelab today:
All of them are outbound-only pollers that read their secrets from Doppler, which is why they are a good first set. They were written for one Docker container on a Raspberry Pi, so the stage includes a "cloud-optimized install" for each: state moves from the container's disk into an S3-compatible bucket (DigitalOcean Spaces, $5 flat, versioning on), each gets a run-once mode, and the jobs that already run on a timer (the penguin-overlord runners, solarstorm_scout) move to DigitalOcean Functions, the Lambda equivalent, inside its free allowance. With state off the host the droplet is disposable and the thin size is enough.
Estimated cost: $12 for an s-1vcpu-2gb droplet plus $5 for the bucket, $17 in all, which brings the running total to $29 under the $30 ceiling proposed for the stage-3 phase with droplet backups off. Backups come from the versioned bucket and a nightly copy off the account instead. Larger droplets, a free-tier bucket at another provider and the costs of each are in the draft.
Depends on stage 2 for two things: the daemons reaching the on-prem Ollama server (until then the AI text is off or on Gemini), and the nightly copy of the bucket going home.
Dashboards for the cloud side, running on-prem next to the SIEM rather than as another paid cloud service. That is the reference environment, and it adds $0 to the cloud bill. A cloud Grafana (and, further on, a lab-scale Wazuh manager) is the learner's own build, not part of the reference: it adds $6 to $24 or more per month for one droplet and does not fit next to stage 3's $29 under the $30 ceiling. Build your own mini SOC has the options and the arithmetic (unverified draft).
Handoff: 2026-10-12 edge DMZ handoff. Design first, no implementation until the design and the cost decision are approved. Design draft with four costed options and a recommendation: 2026-10-19 edge DMZ design; the maintainer ruled on its decisions on 2026-10-19: option A (a 1 GiB droplet plus a reserved IP, memory measured first), a $35 ceiling (the $41 variant only if the memory measurement fails), stack name 50-edge, a private MQTT broker, and waiting for the earlier phases before touching tooling or ceilings. The separate-team question is still PROVISIONAL (same DigitalOcean team for now) and the ingest protocol is not ruled. Nothing is approved to build or spend yet.
rns-dmz, no peering to core) with one immutable droplet and a reserved IP, no SSH and no connector. It would run Reticulum transport with an LXMF propagation node, i2pd, a private Meshtastic MQTT broker over TLS and an authenticated iperf3 server, behind a tag-based Cloud Firewall and host nftables..spacelift/policies/plan.rego, now live as the cah-plan policy; see the secrets runbook, section 9a), an IPv6 check, an external zero-open-ports check and the metadata-endpoint restriction.edge phase holds a $35 placeholder (stage 3's $29 plus one $6 droplet) that the design replaces with a costed number.Rejected for now: a VPC NAT gateway is about $40 a month, which exceeds the whole ceiling, and it removes the Droplet Console. Revisit when the ceiling passes roughly $75 to $80, a static egress IP is needed, or a compliance reason appears. The reasoning is on the page Why not private droplets (yet).
Kubernetes, multi-region, load balancers, managed databases. Each would blow the budget or the complexity budget for what this environment needs. The layout does not block any of them; the cost gate will refuse them until someone prices and approves one on purpose.
Also later, not never: running at AWS. The AWS modules and the two AWS stacks are written and tested with mocked providers, but never applied, and the cost gate keeps AWS marked inactive because the $30 ceiling cannot hold it beside the DigitalOcean connectors. Azure and GCP have no code. Once an AWS account exists and is hardened (a project of its own), the stage 3 timer jobs that run as DigitalOcean Functions are candidates to move to Lambda with scheduled triggers, which OpenTofu manages fully and the cost gate can then see. The stage 3 design keeps the jobs portable for that: plain handlers, config from the environment, state in an S3-compatible bucket.
Kubernetes in particular is a cost decision, not a refusal. DigitalOcean's control plane is free, but the smallest sensible node is the $24 droplet and a second node doubles it, for the same six containers that fit on one $12 host. Stage 3 is shaped so the move is cheap when it comes: one image per service, configuration from the environment and Doppler only, state in a bucket rather than on the host, timer jobs already running as Functions, and nothing that depends on a Portainer-only feature. It gets revisited when the ceiling moves past $40, a workload needs more than one host, or a second operator wants declarative rollouts more than a web UI.
The core path ends here. Pick a track on the Reading order page: build it yourself, understand the design, security, detection, or other clouds.