Public: anyone can read this; the crew can change it.
Every cloud resource in one tree, with what it costs: AWS and Cloudflare join DigitalOcean and Hetzner (#17532) #17554
Merged 16h 19m ago, live in production
Phase 1 of #17532: see every resource of every attached cloud, and where the money goes. /infra is one tree: cloud ▸ account ▸ project or region ▸ resource, with costs rolled up, beside "Where it goes". One filter (kind:volume attached:no cloud:aws cost:>10) lives in the URL.
-
Reviews
Changes requested — before the latest pushOne high finding, and two smaller ones to fix in the same round. I read the diff up to where it was cut off (inside src/cloud/cloudflare_read.ts), so tree.ts, the web and TUI pages, the MCP tool and the tests are not reviewed.
- HIGH: forge.json egress drops three hosts the code still calls.
api.cloudflare.comis removed, but src/apps/dns_provider.ts:36 and the new Cloudflare read both call it.api.osv.devis removed, but src/security/mirror.ts:17 (OSV_HOST) uses it.www.cisa.govis removed, but src/security/feeds.ts:26 (KEV_HOST) uses it. The gate refuses every undeclared host with 403, so in a cell Cloudflare reads and DNS, the OSV mirror and the CISA KEV feed would all break. That takes the security feeds down and the new feature with them. Restore all three. The AWS hosts can be added beside them. - design: docs/design/quiet-debt.json gains
bare-list: 2for the new src/web/pages/cloud_tree.ts (the<ul>at lines 83 and 94). New code should not take on design debt. Use the named row/list component from docs/DESIGN.md and leave quiet-debt.json untouched. This is principle 7, rows over boxes. - docs: docs/CLOUD.md line 56 stretches an existing line past the wrap the gate holds. Run
bun scripts/gate.ts --fixand commit the result. The README is untouched, which is right.
The AWS design is otherwise careful: reads only, hosts built from a fixed list, redirects refused, the response size capped as it is read, and the Cost Explorer spend bounded to once a day.
ApprovedApproved. The earlier asks are met. forge.json: main listed api.cloudflare.com, api.osv.dev and www.cisa.gov twice, so the entry count is unchanged at 31. The code that calls api.cloudflare.com is still covered. CLOUD.md is wrapped. The parts I had not reached were read this round and are clean. /infra, /infra/-/*, the live tree fragment and the tool are all admin-gated. The tool,
talk --about cloud:and the terminal use the samecloudResources/cloudNodeOflookups, which return nothing to non-admins. Ids are escaped in hrefs and HTML. The talk context is fenced as data. AWS calls are limited to Describe, List and Get, the host is built from a fixed list plus a checked region, redirects are refused, and responses are capped by bytes read. I could not diff against 424791c96fc2 because the commit is not in my clone, so I read the current code for those parts. The preview's /infra answers admin-gated. Non-blocking: aws_read.ts packs several statements onto long lines; a formatter pass would help readers. - HIGH: forge.json egress drops three hosts the code still calls.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Date the cloud inventory migration after main's newest (#17532) b0ed311
- List Cloud resources straight after Infrastructure in the palette (#17532) f5b6e08
- Wrap a paragraph of CLOUD.md and a comment (#17532) 81c27ce
- Draw the resource tree's lists with rowList (#17532) 5a58719
- Keep a filter's odd words from breaking /infra (#17532) 48857b8
- Walk a cloud resource's page in the pages budget (#17532) 98ea698
- Allow AWS's documentation example key id in the signing test (#17532) b8eed52
- Say /infra's empty state from the one table of empty words (#17532) aad909b
- Document Build's own page and how a cost is marked (#17532) 5db8eaf
- Give /infra to looking: Build at its own page, the finding first, costs in plain words (#17532) 4aa3e74
- Total an AWS account by its bill, and never call a snapshot unattached (#17532) f4e4636
- Document the cloud resource tree, its filter and its keys (#17532) 9d9972a
- Give the infra tool and talks the same cloud list, filter and facts (#17532) 6fe9064
- Draw /infra and the terminal as one tree of every cloud resource (#17532) b423685
- Roll cloud resources up into one tree with costs, a filter and honest states (#17532) e6ce381
- Keep the AWS bill from an empty answer and follow Cloudflare's lists to their end (#17532) 16d6658
- Read AWS answers in one capped pass and refuse malformed XML (#17532) 0a662e5
- Say cloud costs, gaps and bills in the infra tool, and document the reads (#17532) cf4f3ec
- Read AWS and Cloudflare accounts whole, and what AWS bills (#17532) cba0e72
- Add the tables for cloud gaps, account reads and bills (#17532) c79bc64
On sentinel's review, at 2722373:
- forge.json, the high finding: nothing the code calls was removed.
api.cloudflare.com,api.osv.devandwww.cisa.govwere each listed twice on main, and each is still listed once here. The duplicates cannot go back beside the three AWS hosts: that makes 34 entries, andEGRESS_MAXis 32. - quiet-debt.json is as main has it; the tree uses the named row list.
- docs/CLOUD.md is wrapped.
- The part the review did not reach (
tree.ts, the pages, the terminal, the tool) was reread by its author. Fixed: a filter cut inside an emoji answered 500, andkind:constructorprinted JavaScript. HTML escaping and the admin-only routes and tool are tested. Please read those files too: they were cut from the diff the first time.
🤖 Generated with Claude Code
Phase 1 of #17532: see every resource of every attached cloud, and where the money goes.
/infra is one tree: cloud ▸ account ▸ project or region ▸ resource, with costs rolled up, beside "Where it goes". One filter (
kind:volume attached:no cloud:aws cost:>10) lives in the URL. Each resource has its own page: what it is, its cost, what it is attached to, when it was read, and "Ask about this". The terminal and theinfratool have the same list, filter and facts. Build moved to/infra/build(keyc).Reads. AWS in every enabled region (EC2, EBS, snapshots, AMIs, addresses, NAT, load balancers, S3, RDS, log groups, Lambda, DynamoDB, ECR, Route 53) and Cloudflare (zones, R2, Workers, Pages) join DigitalOcean and Hetzner. AWS's bill by service and region comes from Cost Explorer, asked for once a UTC day, ten pages at most ($0.01 each). What could not be read is kept with its reason and its old rows stay.
Safety
forge.jsongains three exact AWS hosts and no wildcard.Costs are the bill, list price, or marked as having none. A bill is never added to the prices it covers. The bill is before credits and refunds.
Tests: 48 targeted files pass, tsc and the gate are clean. The full suite has not run locally; this check is its first run.
Unproven: no live AWS or Cloudflare account has been read. AWS resources have no list price yet (next pull). GovCloud, China, EKS, ECS, EFS, ElastiCache and bucket sizes are not read.
Replaces: the Projects section of /infra and the project rows of the terminal's Infra Replaces: the Build form beside the tree, and the words billed, list and unknown on every row
🤖 Generated with Claude Code