mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
## Summary Adopts the Nomad Karaoke Cloudflare account (`4585249d…`) into IaC as a second Pulumi project, `infrastructure/cloudflare/` (project `nomad-cloudflare`, stack `nomadkaraoke/prod`). It sits beside the GCP platform project, and `infrastructure/` is now documented as the **shared platform IaC home**. App repos keep only app-specific stacks. **130 resources, all adopted with `pulumi import`, with no recreation:** - 5 zones (protected) + `ssl` mode - 84 DNS records - 8 zone rulesets - Email Routing: address, enablement (protected), catch-alls, rules - `nomad-kjbox` / `nomad-hf2` tunnels (protected) + ingress - Zero Trust: org (protected), OTP IdP, service token, **3 reusable policies**, 2 apps - Pages projects + `gen` domain, Worker custom domains + interceptor route **Single ownership, explicitly excluded (see `infrastructure/cloudflare/README.md`):** - gen `edge_security` phases + `api`/`api-edge-test` DNS - runtime tenant domains - decide's route/Worker - read-only records - karaokehunt's `http_config_settings` (pulumi-cloudflare 6.22.1 drops `set_config bic:false`, so refresh fails) **Applied already (repo rule: apply locally before merge):** - Final `pulumi preview` shows **131 unchanged, 0 changes**. - The only live mutation was moving the two Access apps from app-scoped to reusable code-managed policies, with the same rules and 730h sessions. Verified afterwards: anonymous → 302 to `nomadkaraoke.cloudflareaccess.com`, and the kjbox service token → 200. - The post-import "updates" with no property diff were one-time state settlements. Each was confirmed as a no-op against a live before/after snapshot. ## Testing - `infrastructure/cloudflare/tests/test_build_import_list.py`: 4 passed (ownership exclusions, pagination, unique names). - `pulumi preview`: 131 unchanged. - Live spot-check of site, gen, api, decide, sing, singa, kjbox.cc, kjtip.me, karaokehunt and nomadkaroke. - Local CodeRabbit: cycle 1 found 1 issue (pagination), fixed; cycle 2 found 0. @coderabbitai ignore 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014XpBykm3FJmoFTjuNQ18Bi --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>