How chiefgyk3d/clouds-against-humanity works
Clouds Against Humanity is both a teaching project and the OpenTofu reference environment used by its lessons. The principal path is learner → wiki guidance → staged infrastructure → private, per-resource access, with telemetry and workloads extending the environment. Separate labs teach focused security workflows, including cross-tenant DLP and email authentication. The README documents the control-plane relationships; sampled source confirms selected lab behavior. Other lab and stage internals are represented only at paths supported by the tree, so their unverified runtime links are omitted.
Main entry points: stacks OpenTofu stages · monthly_job.py Cross-tenant batch job · mkmail.py Email lab fixture · wiki Lessons and exercises
Components 27
Learning and guidance
- Lessons and exercises
docs/wiki - Stage guides
docs/stages
Cloud environment
- OpenTofu stages
stacks - Foundation stack
stacks/00-foundation/main.tf - Access stack
stacks/10-access/main.tf - Telemetry stack
stacks/20-telemetry/main.tf - Workloads stack
stacks/30-workloads/main.tf - Edge stack
stacks/50-edge/main.tf - Reusable infrastructure
modules - DigitalOcean
Hands-on security labs
- Cross-tenant batch job
labs/cross-tenant-dlp/monthly_job.py - Tenant policy setup
labs/cross-tenant-dlp/tenants_setup.py - DLP scanner
labs/cross-tenant-dlp/dlp_scan.py - Synthetic data generator
labs/cross-tenant-dlp/make_fake_data.py - Private lab state
labs/cross-tenant-dlp/labdir.py - Email lab fixture
labs/email-security/local/mkmail.py - SPF and DMARC evaluator
labs/email-security/local/mailauth.py - DKIM signer and verifier
labs/email-security/local/dkimlite.py - Onion origin audit
labs/onion-lab/check_origin.py - WordPress scaling demo
labs/wordpress-at-scale/app/app.py - WordPress site config
labs/wordpress-at-scale/site/config/application.php - Email analysis tools
labs/email-security/local
Operations and access
- Spacelift plans and applies
- GitHub repository
- Doppler secrets
- Twingate access
Other components
- Learner
Connections 24
- Learner → Lessons and exercises: reads lessons
README.md - Lessons and exercises → Stage guides: guides stages
README.md - Stage guides → OpenTofu stages: explains environment
README.md - GitHub repository → Spacelift plans and applies: triggers plans
README.md - Doppler secrets → Spacelift plans and applies: provides token
README.md - Spacelift plans and applies → OpenTofu stages: runs OpenTofu
README.md - OpenTofu stages → DigitalOcean: provisions resources
README.md - OpenTofu stages → Reusable infrastructure: uses modules
- OpenTofu stages → Foundation stack: includes stage
- OpenTofu stages → Access stack: includes stage
- OpenTofu stages → Telemetry stack: includes stage
- OpenTofu stages → Workloads stack: includes stage
- OpenTofu stages → Edge stack: includes stage
- Learner → Twingate access: requests resource access
README.md - Twingate access → DigitalOcean: reaches private hosts
README.md - Cross-tenant batch job → Tenant policy setup: checks policy
labs/cross-tenant-dlp/monthly_job.py - Cross-tenant batch job → DLP scanner: scans batch
labs/cross-tenant-dlp/monthly_job.py - Cross-tenant batch job → Private lab state: secures work state
labs/cross-tenant-dlp/monthly_job.py - Synthetic data generator → Private lab state: creates private output
labs/cross-tenant-dlp/make_fake_data.py - Email lab fixture → DKIM signer and verifier: uses signing tools
labs/email-security/local/mkmail.py - Email lab fixture → SPF and DMARC evaluator: builds evaluator inputs
labs/email-security/local/mkmail.py - Email lab fixture → Email analysis tools: supports analysis
labs/email-security/local/mkmail.py - Onion origin audit → Learner: reports audit findings
- WordPress scaling demo → WordPress site config: demonstrates site behavior