Clouds Against Humanity
A small, cheap, locked-down DigitalOcean environment built with OpenTofu, applied by Spacelift, fed secrets by Doppler, and reached only through Twingate. Nothing in it listens on the public internet. It is a real extension of a homelab and, just as much, a teaching repository: every decision is written down along with the reason for it, including the ones that turned out wrong the first time.
Pick a path
Wondering why this exists, who it is for and where I am coming from? Read Why this exists first; it is a short side page, not part of the core path.
The full tables, with page order, time estimates and checkpoints, are on Reading order. Every page of the wiki, grouped by theme with a line on what it is for, is on Contents. The short version:
| You are... |
Start with |
Then |
| New to cloud, Terraform or zero trust |
Start here if you are new |
The eight primers, then the core path from the Architecture overview |
| An engineer who knows Terraform and wants the design |
Architecture overview |
Understand the design: OpenTofu, Terraform reference, Spacelift, Doppler, CI, then Trace one change |
| Building your own copy |
The core path through CI and the cost gate |
Build it yourself: Fork and private stacks, Labs, Build it, Settings reference |
| Security-minded |
Threat model exercise |
Security and threat modeling: Threat model, Threat Dragon exercise, Threat frameworks |
| Hearing "change ticket", "CAB" or "freeze" at work |
Enterprise change management for beginners |
What those words mean, and why this project uses none of them |
| Wondering how a company would do this, or how it would be watched |
A small example: the enterprise landscape |
Detection, Wazuh and the landscape |
| Wanting the enterprise side: corporate networks, infrastructure, identity, and the careers around them |
Enterprise networks |
Enterprise infrastructure, identity and secrets at scale, careers and what to learn next |
| Wanting to understand cloud telemetry, run more than one site, or build a small cloud SOC (unverified drafts) |
Cloud telemetry: what and why |
Multiple sites, the trust boundary, reading a dashboard, the synthetic monitoring lab, then build your own mini SOC |
| Curious how AWS, Azure and GCP differ (unverified drafts) |
Why the clouds differ |
Other clouds: AWS, then Azure, then GCP |
| Looking something up |
Glossary, Troubleshooting index |
Settings reference, Terraform reference, Project status (where the work stands now), Repository growth (stars, forks and weekly work) |
If you only read one page, read Why ZTNA and not a VPN: it is the reason the whole thing is shaped the way it is. It is step 11 of the core path, long and opinionated, so newcomers are better off after the primers and the Architecture overview, which come first there.
Every page, by theme
All 176 pages of this wiki, grouped the way Contents groups them, with one line on what each is for. Pages marked draft, est. steps or unbuilt say so in their own banner; Contents explains the markers.
Start here, by kind of reader
Start here, by topic track and by goal
- Track 1, Foundations: OS, networking, identity, code and web hosting: Git from zero
- Track 2, Defend and detect: defense, honeypots and monitoring: Packet filters compared
- Track 3, Privacy, anonymity and cryptocurrency: Cryptography fundamentals
- Track 4, GRC and law: risk, privacy law, continuity and backups: The CIA triad
- Track 5, Build and operate: stages, other clouds, enterprise practice: Fork, private stacks, the pipeline
- Privacy and anonymity: Privacy, security and anonymity
- Cryptocurrency, for people in IT: Blockchain fundamentals
- Compliance and privacy law: GRC in plain terms
Start here
- Home: The front door: what the project is, which path fits you, and a short diagram of how it fits together.
- Contents: Every wiki page once, grouped by theme, with what it is for and who it is for.
- Reading order: The core path and every other track as numbered tables with time estimates and checkpoints, for anyone choosing what to read next.
- Why this exists: The author's reasons for building open zero trust education, for anyone who wants to know where it comes from.
- Give feedback: How to report a mistake, an outdated claim or a command that failed, for any reader who spots one.
Core path: read in this order
- Start here if you are new: Maps homelab ideas to cloud ideas and sets where zero is, for readers new to cloud, Terraform and zero trust.
- What is the cloud: What you rent in the cloud, why it has a public address and who is responsible for what, for newcomers.
- Networking basics: Addresses, ports, firewalls and why a machine can have a public address and still be unreachable, for newcomers.
- Identity, secrets, zero trust: What passwords, tokens and keys are, why they leak and the habits that stop it, for newcomers.
- Infrastructure as code: Why infrastructure is written as code, with plan, apply, state and drift, for anyone who has rebuilt a machine by hand.
- Git and pull requests: How a change is proposed, checked by automated tests, reviewed and merged, for newcomers to git.
- Containers and Docker (optional): The ideas under Docker and why moving Pi-style containers to the cloud exposes hidden assumptions; optional, for stage 3 readers.
- How money works: What costs money, how bills get out of hand and how the cost gate prevents it, for anyone about to rent cloud resources.
- Enterprise habits: Why a tiny lab does things the hard way and which habits to take home, for readers finishing the primers.
- Architecture overview: The data plane and the control plane and which arrows carry secrets, for anyone starting the core path proper.
- Why ZTNA and not a VPN: Why this project has no VPN, bastion or open port, and where that reasoning stops holding, for anyone weighing the choice.
- Twingate: The connectors, resources and groups that are the only way into a droplet here, and why there are two connectors.
- DigitalOcean network and firewalls: Why a droplet's public address cannot be removed and how a tag-attached cloud firewall makes it silent from first boot.
- Droplet hardening: What cloud-init does to a connector on first boot, before any human could log in, so the firewall is never the only control.
- OpenTofu, stacks and modules: Why every resource is declared in OpenTofu and why the code is split into layered stacks and modules.
- Spacelift: Where plan and apply actually run, who approves them, and why nothing applies from a laptop or from GitHub Actions.
- Doppler and secrets: Where every real value lives, how it reaches a run and how to rotate it, because nothing in the repository is a credential.
- CI, tests and the cost gate: The checks every pull request runs, the single CI green gate that guards merging, and the cost gate that stops surprise bills.
- Threat model: The assets, adversaries, trust boundaries and deliberately accepted risks, sized to a one-operator lab.
- Lessons learned: What broke during the build, what was really going on and what fixed it, for anyone who wants to skip the lost evenings.
- Roadmap: The stages from 0 onward, what is built and applied, what is built but unapplied and what is deliberately not planned.
Track 1: Foundations
- Git from zero: Make an account with a second factor, then clone, branch, commit, push and open your first pull request; for people who have never used git.
- The terminal and your first script: What a terminal, shell and command are, moving around files safely and chaining commands into a first script, for beginners on any operating system.
- Linux for enterprise beginners (est. steps): The Linux families, package managers, services, permissions and logs you meet at work, for beginners; commands were not run by the author.
- First hour on a new system: The order of a new machine's first hour: updates, automatic updates, a baseline, then everything else, for anyone setting up a system.
- Patch management and automatic security updates: What unattended-upgrades does, how to configure it, where updates are logged, which four events deserve an alert, reboots, testing and rollback, for anyone running a Debian or Ubuntu host.
- Red and blue, and choosing your lab OS: Red, blue and purple teams, the written permission you need before any test, and setting up a lab computer you can safely break.
- Virtual machines and hypervisors: desktop to datacenter (draft): What a virtual machine is, type 1 and type 2 hypervisors, the desktop and server options, a dated account of the VMware licensing changes, and a first VM with QEMU, for learners who need a lab.
- Device firmware security: Intel ME, AMD PSP, MINIX and kernel design (draft): What the Intel Management Engine and AMD Platform Security Processor are, the MINIX and kernel-design background, the backdoor claim sorted into evidence and argument, and a read-only check of your own machine.
- Virtual machines, containers and cloud service models: What a virtual machine and a container each isolate, and who patches what under IaaS, PaaS and SaaS, for readers whose terms blur.
- Kubernetes for beginners (draft): What Kubernetes adds over Docker and Compose: pods, deployments, services, the control plane, managed versus self-run, Helm, secrets, RBAC, the cost, and when Compose on one droplet is enough. Free kind exercise.
- Choosing a container engine: Docker, Podman, Kubernetes, Portainer and Cockpit (draft): Docker Engine versus Podman versus Kubernetes: daemon or daemonless, root or rootless, Compose, Quadlet, pods and GPU access, plus what Portainer and Cockpit manage and how each is exposed. Free two-engine exercise.
- Self-hosting AI: Ollama, vLLM and the GPU stack (draft): When to self-host a model, VRAM math, Ollama, FrankenLLM, vLLM, the PyTorch, CUDA, ROCm and Intel stack, securing a model API and using an assistant safely. Free one-model exercise.
- Windows, Active Directory and macOS: Domains, Active Directory, Group Policy, Kerberos and managed Macs, for readers heading to help desk or systems administration.
- Cron, systemd timers and init scripts versus systemd (draft): How to read a crontab line, write a systemd timer, translate one to the other, which distributions still install cron, and why systemd replaced init scripts, for learners who schedule jobs on Linux.
- How a web request works: One HTTPS request from DNS to TLS to the page, and how to read a certificate, for readers after networking basics.
- DNS, Cloudflare and hosting your own website: Who owns what in DNS, the common record types, TTL and putting a site behind Cloudflare, for learners hosting their own website.
- Subnets, NAT and firewalls by hand: Working out subnets by hand, public versus private addresses, NAT and a default-deny firewall in a local lab, for learners after networking basics.
- Behind a CDN: real client IPs and OSI basics: Why a server behind a CDN sees the proxy's address, how the real client address is passed on, and the OSI layers, for people running sites behind one.
- IPv6 adoption and handling it safely: IPv6 addressing, why adoption is slow, why this project is IPv4-only and how to handle IPv6 safely in a lab.
- APIs and tokens from zero: What an API is, how to read a request, a response and JSON, and what a token is, for readers new to all three.
- Hashing, encryption and keys: What encoding, hashing, encryption and signing each give you and what they do not, for readers who lump them together.
- Secrets from day one: A password manager, Doppler for every asset and the .env rules, as personal habits for anyone about to start writing code.
- Password managers and passkeys (draft): How a vault works, hosted versus self-hosted versus offline, passkeys, TOTP, recovery and what a manager does not protect, with a free KeePassXC build-break-restore exercise.
- Disk and file encryption: VeraCrypt, TrueCrypt, BitLocker, FileVault, LUKS (draft): What encryption at rest stops and does not, BitLocker, FileVault and LUKS, VeraCrypt in depth, the TrueCrypt shutdown, audit and fork, and a free VM exercise, for learners protecting laptops and portable files.
- Enterprise identity: SSO, SAML and OIDC: Directories, identity providers, SSO, SAML, OAuth and OIDC in plain words, for readers heading into enterprise identity.
- Hardware security keys: YubiKey, Nitrokey, PIV (draft): FIDO2, U2F, OTP, OpenPGP card and PIV in plain words, what YubiKey and Nitrokey do, two-key habits, and the YubiKey 5 side-channel flaw and the firmware that cannot be updated.
- Data formats: JSON, YAML, HCL: How to recognize, read and write JSON, YAML and HCL and spot the classic mistakes, for readers before the code starts to look like noise.
- OpenTofu from zero: Lesson 1 of the infrastructure as code track: init, plan, apply and destroy on your own machine, for first-time users.
- OpenTofu plans, state, drift and recovery: Reading a plan like a reviewer, what state is, how drift happens and how to recover, for learners after OpenTofu from zero.
- Ansible: configuration management versus provisioning (draft): What Ansible does that OpenTofu and cloud-init do not: agentless push over SSH, inventory, playbooks, idempotence, check mode, roles, Vault and ansible-pull, with a free playbook-run-twice exercise.
- Native IaC versus open standards (draft): CloudFormation (AWS only), ARM and Bicep (Azure only), Google's Deployment Manager ending, against OpenTofu, Pulumi and Crossplane: the lock-in tradeoff, the limit of portable, and a free lint-only exercise.
- Spacelift from zero: What a hosted infrastructure runner adds to plan and apply, its plan limits and a first stack run and teardown, for learners.
- Build and destroy: one stack per service: Why a bigger environment is split into one stack per service, with its costs and benefits, for learners finishing the infrastructure as code track.
- Environments and promotion (unbuilt): What local dev, staging and production are for, why each gets its own stack, secrets and cost ceiling, and how a change is promoted; staging is planned and not built.
- LAMP and LEMP from zero: What a web server, an application runtime and a database each do in a LAMP or LEMP stack, for readers who are new to web hosting.
- WordPress and PHP security, WAFs and static sites: Why plugins carry most of a WordPress site's risk, what to harden and what a web application firewall does; also why static sites often win.
- Static against dynamic: Hugo, WordPress and recon (draft): A static and a dynamic site that look the same, how to tell them apart from outside with curl, page source and WhatWeb, what each leaks, and a career note on public work.
- WordPress at scale: CDN, WAF, caching and CI: The path from one web server to a scaled design, with caches, a CDN, a WAF and a pipeline, for engineers who run web fleets.
- Autoscaling and elasticity (draft): Horizontal and vertical scaling, target tracking, step and scheduled policies, cooldowns, flapping, stateless design, health checks, scale to zero, Kubernetes HPA, cost caps and a free local load test.
Security tools and threat modeling
- Threats in plain words: Vulnerabilities, exploits, phishing, malware and compliance told apart with real dated cases, for readers who meet these words as noise.
- Security tools: Nmap, OpenVAS, Burp, Metasploit: The rules for using Nmap, OpenVAS, Wireshark, Burp, ZAP and Metasploit, and what each one is for, for learners in an isolated lab.
- Memory forensics with Volatility 3 (draft): Why RAM matters, getting an image from a lab VM, symbol tables, Volatility 3 plugins and their limits, and a free exercise that finds a process you started, for a learner with a VM.
- Email security: How a message travels, the DNS records and gateways that protect it and whether to run your own mail server, for learners.
- Threat model exercise: Build your own threat model of this repository before you open the worked one, for security-minded readers.
- Threat Dragon exercise: Draw this pipeline's trust boundaries in OWASP Threat Dragon and attach threats to them, for security-minded readers.
- Threat frameworks: STRIDE, ATT&CK, ATLAS: The same pipeline viewed through STRIDE, MITRE ATT&CK and MITRE ATLAS, with files to open them, for security-minded readers.
- Disk forensics with Autopsy and The Sleuth Kit (draft): What The Sleuth Kit and Autopsy are, disk images and hashing first, file systems, deleted files and carving, hash sets, keyword search, timeline, reports, limits, and a free exercise on an image you build.
Track 2: Defend and detect
- Packet filters compared: Lesson D1: stateless versus stateful filtering, then iptables, nftables, UFW and BSD pf compared, for learners with a basic firewall idea.
- IDS and IPS: Snort and Suricata: Lesson D2: what an IDS and an IPS are, where a sensor can watch and why an IPS is riskier, for learners.
- File integrity and alerting: Lesson D3: file integrity monitoring, baselines and what to watch, with Tripwire, AIDE, Wazuh, auditd and fail2ban, for learners.
- Rate limiting at every layer: Lesson D4: the main limiting algorithms, what to count by and what each layer can see, for learners who run a service.
- Plan for failure: blast radius and assuming breach: Blast radius, assume breach and defense in depth as one mindset question to ask of any system.
- Attack surface: list, shrink, measure (draft): How to list every inbound port, address, account, token, dependency and person, how this project shrinks each, how to measure from outside, and what to log and alert on.
- Attack surface map: layer by layer (draft): The cloud account, Spacelift and CI, Doppler, Twingate, droplets, telemetry, edge and web tier: what to aim at, the control, the test, and what to log.
- The DMZ and hardening an internet-facing host (draft): What a DMZ is, what may talk to what in this project's unbuilt edge design, how to harden a public host, and what to log and alert on.
- DMZ hardening checklist (draft): A one-page printable checklist for hardening an internet-facing host, each line naming the repository check that covers it, plus what to log and what should alert.
- Deception and honeypots: start here: The hub for the deception track: what it covers, the three tracks of lessons and the safety rules that come first.
- What deception is (est. steps): Lessons 1 and 2: decoys, lures, honeytokens and honeypots, and low versus high interaction; reading and paper exercises only.
- Deception safety and law (est. steps): Lesson 6: the eight minimums for running a decoy that attracts real attackers; read it before any hands-on lesson. Not legal advice.
- Plant a canary token: Lesson 3: build a local tripwire with a bait document, a link and a fake login and trip it yourself.
- Honeyfiles on a host you own: Lesson 4: build a decoy file and a watcher that alerts when it is touched, on a host you own.
- Deception alerts in the SIEM: Lesson 5: write detection logic over synthetic honeypot events and map it to ATT&CK, for learners wiring decoys into a SIEM.
- Design a honeynet: Lesson 10: design an isolated honeynet segment on paper and in a checker before installing anything, for home lab owners.
- T-Pot at home (est. steps): Lesson 11: what the T-Pot honeypot bundle contains and how to keep it internal-only on your own hardware; nothing here was run.
- Anatomy of a cloud honeypot (est. steps): Lesson 7: what a small internet-facing honeypot in your own cloud account needs to be safe; written from reading, nothing built.
- Cloud Cowrie for a weekend (est. steps): Lesson 8: build, run and tear down a small Cowrie honeypot in your own cloud account for a fixed window; cloud steps were never run.
- Read what arrived: Cowrie logs: Lesson 9: read Cowrie logs with jq or PowerShell, count what visitors tried and spot a visitor who touched your decoy.
- A small example: the enterprise landscape: What this two-machine example leaves out and how a company would answer the same questions, for readers asking how it would be watched.
- Logs, SIEM and detection basics: What a log, a metric, a trace and an alert are, and how a log line becomes a rule, for learners new to detection.
- Detection, Wazuh and the landscape (unbuilt): Detection after prevention fails, with Wazuh and the wider tool landscape; shipping logs is stage 2 and not built.
- Wazuh SIEM and data pipelines (est. steps): What the Wazuh agent, server, indexer and dashboard each do and how a log line becomes an alert, with a free toy pipeline; the Wazuh parts were written from reading.
- Detecting Tor, I2P and VPN on a network (draft): Page 7 of the VPN, Tor and I2P series: where a network can watch, the public signals and their limits, list matching, blocking as a policy choice and a detection as a lead, with five diagrams and a free script.
- Cloud telemetry: what and why (draft): Logs, metrics and traces, and why telemetry crosses a trust boundary; an unverified draft for engineers planning stage 2.
- Multiple sites and identity (draft): What a site is, what breaks at two, and why a new site should be a settings file and not new code; an unverified draft for engineers.
- Telemetry crosses the trust boundary (draft): How telemetry moves between the cloud and the home SIEM without breaking the no-listener promise; an unverified draft for engineers.
- Reading a dashboard as an operator (draft): Ask what question each panel answers and what it would look like if the answer were bad; an unverified draft for operators.
- Grafana basics from a blank page (est. steps): What a data source is, connecting Grafana to Prometheus, SQL and OpenSearch with a read-only account, then one panel and one alert; written from reading, not run.
- Grafana dashboards: The three dashboards this repository ships and which question each answers; only tried with synthetic data.
- Lab: synthetic multi-site monitoring stack: A hands-on synthetic multi-site monitoring stack where you predict what a silent site does, for builders.
- Build your own mini SOC (draft): A springboard for building a small cloud security monitoring stack with a cost ceiling you set; an unverified draft for builders.
- DFIR toolkits and live triage (draft): SIFT, CAINE, Velociraptor, KAPE, FTK Imager and plaso from the owners' pages, live triage against dead-box imaging, an incident response workflow, and a free triage exercise on your own machine.
- Stage 2 home-side runbook (unbuilt): What must exist at home before the cloud sends anything, for operators; the design is merged and nothing is applied.
- Open firmware and trustworthy hardware (draft): What firmware is, coreboot, Heads with a Nitrokey, what a TPM and Secure Boot do not prove, and what Novacustom, System76, Purism and Tuxedo claim about the Intel ME, each dated, with a free read-only exercise.
- Digital forensics foundations (draft): Evidence handling, chain of custody and the order of volatility from RFC 3227, NIST SP 800-86 and SWGDE, with a free hash, image and verify exercise on a file you make.
- Network, log and timeline forensics (draft): Preserving a packet capture as evidence, what a pcap can and cannot prove, streams with tshark, log reliability and tampering, clock skew, time zones and a plaso super timeline, with a free container exercise.
Track 3: Privacy, anonymity and cryptocurrency
- Cryptography fundamentals (draft): Symmetric and asymmetric keys together, MACs, signatures, PKI, at rest versus in transit, key custody, NIST defaults and post-quantum planning, with a free drill.
- Privacy, security and anonymity (draft): Who can see in, who can get in, who can tell it is you: the data you hand out, correlation, a matrix of six tools, the same behavior over a different pipe, and three imaginary people, with six diagrams.
- Privacy versus security (draft): Privacy as blinds and security as locks, Monero as a worked example, privacy law basics, physical security and why lockpicking is a hobby, with a free audit of your desk.
- Tor, I2P and the darknet without the myths (draft): How Tor and I2P work, who uses them, Tor Browser, Tails, Whonix and Qubes compared, and a Monero node as the privacy-versus-security example.
- How a VPN works (draft): A packet with and without a VPN, WireGuard, OpenVPN and IPsec in plain terms, what a VPN moves and does not hide, DNS and IPv6 leaks, what no-logs claims and audits prove, with seven diagrams and two free exercises.
- How Tor works in depth (draft): Circuits, the three hops, guards, directory authorities and the consensus, bridges, onion services and the dated weaknesses, with six diagrams, for readers who want the machinery under Tor.
- How I2P works (draft): One-way tunnels, garlic routing and cloves, the network database and floodfills, reseeding, outproxies, the research on its weak points and an honest comparison with Tor.
- The browsing setups compared (draft): Tor Browser, Brave's Tor window, Whonix, Tails and Qubes with Whonix: trust boundaries, threat models, a matrix of nine threats, Kali and ParrotOS, and the maintainer's view, with six diagrams.
- OPSEC for Tor and I2P (draft): The four layers of an identity, the Tor Project's browsing rules with their reasons, compartments, logins, file metadata, three documented cases, two checklists and where at-risk people can get help, with four diagrams.
- Hands-on Whonix and Qubes OS (draft): Whonix in an isolated lab and Qubes OS compartments, disposables and policy prompts, each step marked run or not run, a reading path if Qubes will not run on your hardware, and a paper exercise joining the two.
- The darknet landscape: markets, OPSEC and layering (draft): Documented darknet market history and why most fail, the OPSEC trap, clearnet versus onion services, and layering Tor, I2P and a VPN, for learners; educational and defensive only.
- Lab: publish a web server as an onion service and an I2P site (draft): A time-boxed lab: one static web server behind a Tor onion service and an I2P site on a VM or Pi, an audit for the mistakes that expose it, a tear-down, and a default-off OpenTofu flag; written from reading.
- Blockchain fundamentals (draft): Page 1 of 5 on cryptocurrency: hashes, blocks, nodes, a transaction's life, proof of work and stake, forks, full nodes and what a blockchain is not, with a dated read of the first two Bitcoin blocks.
- How Bitcoin works (draft): Page 2 of 5 on cryptocurrency: keys, UTXOs and change, fees, mining and confirmations, and why Bitcoin is pseudonymous and traceable, with documented tracing cases and a clustering exercise.
- How Monero works (draft): Page 3 of 5 on cryptocurrency: Monero's ring signatures, stealth addresses and hidden amounts, Ethereum, DeFi, mixers, Bitcoin-Monero atomic swaps and ransomware, with dated public cases.
- Wallets and key custody (draft): Page 4 of 5 on cryptocurrency: hot and cold wallets, the threat model, hardware wallets and a disclosed Trezor affiliate link, recovery phrases, Shamir, multisig, custody, and a no-funds exercise.
- Paper wallets and offline key generation (draft): An addition to the cryptocurrency set: what a paper wallet is, why the advice changed, how to judge a generator, offline generation with Tails, Electrum and Monero, and a checklist exercise.
- Running Monero properly (draft): Page 5 of 5 on cryptocurrency: a hardware wallet with Monero, the Qubes and Whonix offline-wallet design, PiNodeXMR as an always-on node and how to secure it, with a paper exercise.
- Radio and off-grid communication (draft): What still works when the internet and power are down: LoRa mesh, amateur radio, GMRS, FRS and CB, a legal-first SIGINT overview, and what a radio fallback could do for this project.
- Hardware security modules and building your own with pico2hsm (draft): What an HSM protects against, PKCS#11, key custody, cloud HSM and KMS against a device in your hand, TPM, smart card and security key, FIPS 140 and Common Criteria, then pico2hsm on a Pico 2 with an untested exercise.
Track 4: GRC and law
- The CIA triad (draft): Confidentiality, integrity and availability in plain words, how real failures map to each, and this project's controls checked against all three.
- GRC in plain terms (draft): Page 1 of 3 on GRC: the governance, risk and compliance loop, laws versus frameworks versus attestations, SOX, PCI DSS, HIPAA, GLBA and FISMA in brief, roles, evidence, and a CM-3 exercise.
- US privacy law and the patchwork (draft): Page 2 of 3 on GRC: what the Constitution says about privacy, the federal and state patchwork, data brokers, Social Security numbers and license plate readers, with dated sources and a labeled opinion section.
- Privacy law around the world (draft): Page 3 of 3 on GRC: the GDPR, PIPEDA, POPIA and the PIPL compared with the United States, with breach clocks, transfers, dated cases and a four-region exercise.
- Cross-tenant data flows, governance, retention and DLP: Tenants, governance, retention, purge and DLP when data crosses an account boundary, for engineers.
- Business continuity and disaster recovery (draft): BCP versus DR, business impact analysis, RTO and RPO per system, recovery strategies, runbooks, tabletop exercises, postmortems and a worked plan for this project, for learners planning for the day something big breaks.
- Backups, recovery and patching: Snapshot versus backup, RPO and RTO, the 3-2-1 rule and patch cadence, for beginners deciding what to protect and how.
- Backups deep dive (draft): 3-2-1-1-0, immutable and offline copies, backup key custody, restore testing and what this project would have to back up, with a free restore drill.
- RAID: continuity, not a backup (draft): RAID as a business continuity control and not a backup: levels, parity, the write penalty, rebuilds, the write hole and a computed six-drive exercise, with a free parity drill.
Track 5: Build and operate
- Fork, private stacks, the pipeline: Make your own private copy, learn which settings are demo values and where the pipeline starts; step 1 of the build track.
- Labs: break it on purpose: Five labs where you weaken a safety property on your computer and predict which check will object, for builders.
- Build it: zero accounts to stage 1: The stage guides put in order, with accounts named early and a check at each step, ending in teardown; for learners replicating the build.
- Variables, tfvars and secrets: Where each value belongs: a variable, a tfvars file, Doppler or the cost file, for builders.
- Teardown checklist: The order of destruction, what survives it and the checks that prove the bill is zero, for builders.
- Self-hosting: when and why, with SearXNG (draft): The honest trade of running a service yourself, who sees a search query on four paths, a ten-row checklist and a SearXNG lab on loopback, for builders deciding what to host.
- Twingate service accounts in CAH: Where this project uses a Twingate service account and which plan each use needs; nothing was run against an account.
- Zero trust at home: two connectors and failover: A home lab with two outbound-only connectors that stays reachable when the internet fails over; nothing was tested for this page.
- Why not private droplets (yet) (draft): The honest reason the connector droplets have public addresses and what going private would change; an unverified draft.
- Why I picked these tools: Which tool choices are personal picks and where each would change at work, for engineers weighing alternatives.
- From commit to pipeline: What CI, CD, DevOps and DevSecOps mean here and which gate stops what, for engineers.
- Trace one change end to end: One real pull request followed through every gate of the pipeline, for engineers.
- Why the clouds differ (draft): The three differences between AWS, Azure and GCP that change the bill and the design; an unverified draft.
- AWS: account preparation (draft): Finish with an AWS account that is protected, empty and watched, before any infrastructure; an unverified draft.
- AWS: the same four pieces (draft): The network, firewall, machine and machine identity built on AWS; an unverified draft.
- AWS: where the money goes (draft): The AWS charges that surprise learners, the arithmetic, and how to prove the bill is back to zero; an unverified draft.
- Azure: account preparation (draft): Finish with an Azure subscription that is protected, empty and watched, before any infrastructure; an unverified draft.
- Azure: the same four pieces (draft): The network, firewall, machine and machine identity built on Azure; an unverified draft.
- Azure: where the money goes (draft): The Azure charges that surprise learners, the arithmetic, and how to prove the bill is back to zero; an unverified draft.
- GCP: account preparation (draft): Finish with a Google Cloud project that is protected, empty and watched, before any infrastructure; an unverified draft.
- GCP: the same four pieces (draft): The network, firewall, machine and machine identity built on GCP; an unverified draft.
- GCP: where the money goes (draft): Why GCP's no-public-address design can be cheaper, where that stops being true and how to prove the bill is back to zero; an unverified draft.
- Enterprise networks: campus, branch, data center, cloud: How companies build campus, branch, data center and cloud networks compared with this one VPC, for engineers.
- Enterprise infrastructure differences: How large organizations run infrastructure differently from this one-account project, for engineers.
- Enterprise change management (not used here): Change tickets, CABs and freezes explained for readers who hear them at work; this project uses none of it.
- Enterprise identity and secrets at scale: Where this project's Doppler and Twingate choices sit next to enterprise identity and secrets practice, for engineers.
- Working in a company: tickets, change, on-call, documentation: Write a ticket, a change request and a runbook for a real merged change, for learners preparing for company work.
- Careers, roles and what to learn next: Roles that surround this work and what to learn next, for readers choosing a direction.
- How this project is planned: The written backlog, sprints and definition of done this project uses, for readers curious how the work is run.
- Project status: Open issues and pull requests by state, generated from GitHub; a reference page, not a lesson.
- Repository growth: Stars, forks and weekly merged work drawn from GitHub data, with the as-of date printed.
- Screenshots policy: What may be pictured in the wiki and how to review a picture before it leaks something, for contributors.
Reference
- Glossary: Every term the wiki uses in plain language with a pointer to the page that explains it, for all readers.
- Settings reference: Every tunable setting, where it lives and what values it accepts; generated from docs/settings.json.
- Terraform reference: Every variable, resource, data source, module call and output, file by file with the reason it exists, for engineers.
- Troubleshooting index: A lookup table from a symptom or error message to the page that has the fix, for anyone stuck.
- Cost: The recorded prices and the monthly ceiling behind the cost gate; lives in the repository, not the wiki.
- Secrets runbook: Where each secret is created and wired into Spacelift and Doppler; lives in the repository, not the wiki.
- Stage 0 guide: The author's operating record for stage 0 (project, network, firewall); lives in the repository, not the wiki.
- Stage 1 guide: The author's operating record for stage 1 (Twingate access and two connectors); lives in the repository, not the wiki.
New to cloud, Terraform or zero trust? Start from zero
If words like "VPC", "Terraform", "CI" or "secrets manager" are new to you, the pages below assume too much. Start here if you are new maps homelab ideas to cloud ideas and then walks through eight short primers, each ending with where that idea lives in this repository. The capstone is the first page of the build track and comes after the core path:
| # |
Page |
One idea, explained from zero |
| 1 |
What is the cloud |
What you are renting, why it has a public address, who is responsible for what |
| 2 |
Networking basics for this project |
Addresses, ports, firewalls, and why "no inbound" still works |
| 3 |
Identity, secrets and zero trust basics |
Passwords, tokens, keys, MFA, least privilege, and what zero trust means |
| 4 |
What is infrastructure as code |
Terraform and OpenTofu, plan and apply, state, drift, and how to read the code here |
| 5 |
Git, GitHub and pull requests |
How a change is proposed, checked by robots, reviewed and merged |
| 6 |
Containers and Docker basics |
Containers versus VMs, state, and what makes a Pi app cloud-shaped |
| 7 |
How money works in the cloud |
What costs, how bills get out of hand, and how the cost gate works |
| 8 |
Enterprise engineering habits |
Why a tiny lab does things the hard way, and which habits to take home |
| Build track, step 1 |
Fork, private stacks and the pipeline |
Making your own private copy, which settings are demo values, and where the pipeline starts |
After those, continue with step 10 of the core path below.
This is a small example. Two machines, one person, one cloud account. A company answers the same questions with different and often several products (other ZTNA and SSE platforms, tunnels, next-generation firewalls, identity providers, privileged access management, other secrets managers). A small example: the enterprise landscape maps this project's choices to what you may meet at work.
What you get out of this wiki
- How each component works, what it is responsible for, and why it was picked over the obvious alternative.
- Flowcharts for the network path, the deploy pipeline, the secrets path and the trust boundaries.
- The threat model, written out, including the risks that were accepted on purpose.
- The things that broke during the build and what fixed them, so you do not have to rediscover them.
- Springboards: pointers to other things worth trying, because I want you thinking outside the box instead of only following steps. Suggestions for more are welcome anywhere in the project.
The core path
Read these in this order. Each page ends with a Next line that names the following step, and Reading order has the same list with time estimates and checkpoints, plus every other track. Steps 1 to 9 are the start-from-zero pages above.
| # |
Page |
What it answers |
| 10 |
Architecture overview |
What talks to what, and which arrows carry secrets |
| 11 |
Why ZTNA and not a VPN |
Why there is no VPN, no bastion and no open port |
| 12 |
Twingate |
Connectors, resources, groups, and why there are two connectors |
| 13 |
DigitalOcean network and firewalls |
VPC, tag-based firewalls, and why tags beat addresses |
| 14 |
Droplet hardening |
What cloud-init does to a connector before anyone logs in |
| 15 |
OpenTofu, stacks and modules |
Why OpenTofu, and why the code is split into layered stacks |
| 16 |
Spacelift |
How a change gets from a pull request to real infrastructure |
| 17 |
Doppler and secrets |
Where every secret lives and how it reaches a run |
| 18 |
CI, tests and the cost gate |
What runs on every pull request and why the bill cannot surprise anyone |
| 19 |
Threat model |
Assets, adversaries, trust boundaries, accepted risk |
| 20 |
Lessons learned |
What broke and why |
| 21 |
Roadmap |
Stages 0 through 4, the public edge (DMZ) and what is deliberately not planned |
Then pick a track on Reading order: build it yourself (fork, labs, build, settings), understand the design (Terraform reference, trace one change), security and threat modeling, detection and monitoring, or other clouds (unverified drafts). For lookups: Glossary, Troubleshooting index, Settings reference, Project status. How the work itself is organized (board, sprints, sizes, definition of done) is on How this project is planned.
The short version

Diagram source (Mermaid)
```mermaid
flowchart LR
you["You, with the
Twingate client"]:::you
net["Public internet"]:::ext
tg["Twingate
control plane + relays"]:::ctrl
subgraph do["DigitalOcean VPC"]
ca["connector a"]:::cloud
cb["connector b"]:::cloud
host["private hosts
(stage 3)"]:::cloud
end
you -- "authenticated,
per-resource" --> tg
ca -- "outbound only" --> tg
cb -- "outbound only" --> tg
ca --> host
cb --> host
net -. "every inbound port:
filtered" .-x do
classDef you fill:#132a1f,stroke:#4ade80,color:#dcfce7
classDef ext fill:#3b1d1d,stroke:#f87171,color:#fde2e2
classDef ctrl fill:#1e1b3a,stroke:#a78bfa,color:#ede9fe
classDef cloud fill:#0f2a3d,stroke:#38bdf8,color:#e0f2fe
```
The droplets dial out. You dial out. Twingate introduces the two of you, checks that you are allowed to reach that exact host and port, and the encrypted session runs end to end between your client and the connector. There is nothing for a scanner to find.
Current state
| Stage |
Status |
Monthly cost |
| 0: foundation (project, VPC, baseline firewall) |
Built |
$0 |
| 1: access (two Twingate connectors) |
Built |
$12 |
| 2: logging back to the on-prem SIEM |
Design merged, cloud side in progress, not applied (the settings layer, the cost gate's stack instances, the telemetry stack, the opt-in node exporter and metrics firewall rules, the opt-in Wazuh agent with auditd and the Grafana dashboards are merged, all off by default and never applied; the home side is not done; see the home-side runbook) |
$0 for the reference environment, not yet approved |
| 3: workload host (Portainer, five daemons), Spaces bucket, Functions |
Planned |
est. $17, not yet approved |
| 4: Grafana (home Grafana in the reference environment) |
Planned |
$0 in the reference environment; a cloud copy is a learner option, see Build your own mini SOC |
| Public edge (DMZ) and hardening |
Planned, design first, no number yet |
lands past the ceiling, so it needs a decision before any approval |
| AWS twin of stages 0 and 1 |
Written and tested with mocked providers, never applied; Azure and GCP have no code |
$0 and $20.84, marked inactive in the cost gate because the ceiling cannot hold both clouds |
Working ceiling: $30 per month in the current phase; every phase has its own ceiling that can be raised on purpose (the Roadmap has the per-phase table and says why the edge does not fit). The cost gate fails any pull request that would push the planned bill above what was approved.
Growth

Redrawn every day from GitHub data, which drifts; the as-of date is printed in the picture. Stars measure attention, not use. The numbers and how to reproduce them are on Repository growth.
Where this wiki comes from
These pages live in the main repository under docs/wiki/ and are published to the GitHub wiki by the Wiki workflow (.github/workflows/wiki.yml, which calls git-your-ship-together's wiki-publish.yml) on every merge to main. That is deliberate: edits go through a pull request, so the same secret scanning and review that guard the code also guard the documentation. Edits made directly in the GitHub wiki editor are overwritten on the next publish, so send a pull request instead.
Why this is free and not for sale
I grew up in a divorced home, and my whole career was built on second hand machines. My first brand new computer, a System76 Pangolin I still have, came roughly ten years in. If knowledge is power and getting to it costs money, then the power is only available to people who can afford it, and I refuse to be selfish and enrich myself by gatekeeping what everyone has a right to know. No bullshit, no "90K in 90 days" lies, no "you need this cert or degree." Just knowledge.
You can tip or donate, but you are under no obligation. The biggest way to support this project is to share it with everyone who needs it. The full version, including what I think of college and certs, is in Why this exists.
Support this project
If Clouds Against Humanity is useful to you, consider supporting continued development. Everything is also collected at support.chiefgyk3d.com.
Support me on [Ko-fi](https://ko-fi.com/A0A4E59UP)
Recurring support
Cryptocurrency tips
| Logo |
Coin |
Address |
 |
Bitcoin |
bc1qztdzcy2wyavj2tsuandu4p0tcklzttvdnzalla |
 |
Monero |
84Y34QubRwQYK2HNviezeH9r6aRcPvgWmKtDkN3EwiuVbp6sNLhm9ffRgs6BA9X1n9jY7wEN16ZEpiEngZbecXseUrW8SeQ |
 |
Ethereum |
0x554f18cfB684889c3A60219BDBE7b050C39335ED |
 |
Solana |
5T8h3HbyvHgLxwXgchRYbHSqRjZyAr8J7uwjLN9Fh8Jh |
Author and socials
Made with ❤️ by ChiefGyk3D