Home.md 17 KB

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.

More ways in

Start here, by kind of reader

Start here, by topic track and by goal

All 210 pages of this wiki, grouped by theme with one line on what each is for, are on Contents. Pages marked draft, est. steps or unbuilt say so in their own banner; Contents explains the markers.

New to cloud, Terraform or zero trust? Start from zero

If words like "VPC", "Terraform", "CI" or "secrets manager" are new to you, take Start here if you are new. It maps homelab ideas to cloud ideas and then walks through eight short primers, each ending with where that idea lives in this repository, and it lists them with what each explains. The capstone is the first page of the build track, Fork, private stacks and the pipeline. After the primers, continue with step 10 of the core path.

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

Twelve pages, steps 10 to 21, in order, from Architecture overview to the Roadmap. Each page ends with a Next line that names the following step, and the core path on Reading order has the list with what each page answers, time estimates and checkpoints, plus every other track. Steps 1 to 9 are the start-from-zero pages above.

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

Patreon logo icon StreamElements logo icon Merch store logo icon
Patreon StreamElements Merch store

Cryptocurrency tips

Logo Coin Address
Bitcoin logo icon Bitcoin bc1qztdzcy2wyavj2tsuandu4p0tcklzttvdnzalla
Monero logo icon Monero 84Y34QubRwQYK2HNviezeH9r6aRcPvgWmKtDkN3EwiuVbp6sNLhm9ffRgs6BA9X1n9jY7wEN16ZEpiEngZbecXseUrW8SeQ
Ethereum logo icon Ethereum 0x554f18cfB684889c3A60219BDBE7b050C39335ED
Solana logo icon Solana 5T8h3HbyvHgLxwXgchRYbHSqRjZyAr8J7uwjLN9Fh8Jh

Author and socials

Mastodon logo icon Bluesky logo icon Twitch logo icon YouTube logo icon Kick logo icon TikTok logo icon Instagram logo icon Threads logo icon Discord logo icon Matrix logo icon
Mastodon Bluesky Twitch YouTube Kick TikTok Instagram Threads Discord Matrix

Made with ❤️ by ChiefGyk3D