Просмотр исходного кода

docs: multi-cloud phase 0 findings and evidence (#22) (#30)

* docs: multi-cloud phase 0 findings and evidence (#22)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: address adversarial review of the phase 0 findings

Azure zero-public-inbound wording, GCP NAT break-even, AWS budget stop
actions, GCP arithmetic, ceiling semantics, arm64 evidence, stale disclaimer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
ChiefGyk3D 1 месяц назад
Родитель
Сommit
c2bafee2c0

+ 4 - 4
docs/superpowers/specs/2026-10-16-multicloud-design.md

@@ -1,6 +1,6 @@
 # Clouds Against Humanity: Other Clouds (AWS, Azure, GCP)
 
-Status: DRAFT for review. Date: 2026-10-16, revised the same day after an adversarial review (Codex) that found the cost-gate, contract, credential and Azure points now reflected below. Issue: #22.
+Status: DRAFT for review. Date: 2026-10-16, revised the same day after an adversarial review (Codex) that found the cost-gate, contract, credential and Azure points now reflected below. Issue: #22. Phase 0 (vendor fact check) is done: see [the findings](2026-10-16-multicloud-phase0-findings.md); where they differ from this document, the findings win.
 Tooling: OpenTofu throughout.
 Scope: how to teach and, where it is worth it, build this environment on AWS, Azure and GCP. This is a design, not an approval. Nothing here costs money, changes a stack, or moves a file until the operator approves a phase.
 
@@ -76,7 +76,7 @@ This table is the design's centre and is also the outline of the lesson. Everyth
 | Network | VPC per region | VPC per region, with subnets per availability zone, route tables and an internet gateway you create | Virtual network with subnets, per region | VPC is global; subnets are regional |
 | Packet filtering | Cloud firewall attached **by tag** | Security group attached to the instance's network interface; a rule's source or destination can be **another security group** (resolved to private addresses, with topology limits) | Network security group attached to a subnet or interface; **application security groups** separately group interfaces for use in rules | VPC firewall rules on the network; a rule's **target** is chosen by network tag or service account, and its ingress **source** by address range, tag or service account, with restrictions on mixing them |
 | Statefulness and defaults | Stateful; explicit outbound rules in this repo | Stateful; new groups allow all outbound by default | Stateful; default rules allow outbound | Stateful; implied allow egress, implied deny ingress |
-| How a "no inbound" VM still reaches the internet | Public IP on the droplet, inbound filtered | Public IPv4 on the instance **or** a NAT gateway | Per Microsoft, API versions released after 2026-03-31 create new virtual networks with default outbound access **off**, so a new deployment has no internet unless the code chooses a method (public IP, NAT gateway, or load-balancer outbound rule); older networks keep the old behaviour. Found in review, to be re-verified in phase 0 | A public IP **or** Cloud NAT |
+| How a "no inbound" VM still reaches the internet | Public IP on the droplet, inbound filtered | Public IPv4 on the instance **or** a NAT gateway | Only subnets in virtual networks created with the API version released after 2026-03-31 default to private; older API versions (including a pinned Terraform provider) and all existing networks keep default outbound access, so **set it explicitly** and choose a method (public IP, NAT gateway or load-balancer outbound rule); verified in phase 0 (2026-10-16) | A public IP **or** Cloud NAT; Cloud NAT is the cheaper pattern on GCP only at low traffic (below roughly 36 GiB a month processed) |
 | Machine identity | None needed here | Instance profile (an IAM role) | Managed identity | Service account |
 | How Spacelift authenticates to the cloud | One API token from Doppler | Spacelift's native AWS integration (an assumable role, short-lived credentials), or access keys | Native Azure integration, or a service principal | Native GCP integration, or a service account key |
 | Smallest sensible instance | `s-1vcpu-1gb` | a small burstable instance type | a small burstable VM size | a small shared-core machine type |
@@ -139,7 +139,7 @@ Each phase ends at a review point and a pull request the operator merges. None s
 
 | Phase | Deliverable | Cost | Who must be involved |
 |---|---|---|---|
-| 0. Verify | Re-check every row of the section 4 table against current vendor documentation and date it. Settle the AWS egress choice with measured prices. | None | Author |
+| 0. Verify | **Done 2026-10-16**, see [the findings](2026-10-16-multicloud-phase0-findings.md). Re-checked the section 4 table against vendor documentation and price lists, and settled the AWS egress choice with measured prices. The Spacelift plan gate is still open. | None | Author |
 | 1. Lessons: AWS | Account preparation, "same four pieces", cost lesson, status line | None | Author reviews, since AWS is their strength |
 | 2. Contract, shared bootstrap, gate | Extract the shared Twingate and cloud-init module; the semantic contract and its two tests; recursive manifest discovery; plan-JSON costing; per-provider price tables; the identifier check; per-cloud secret separation. The DigitalOcean stacks must produce an unchanged plan. | None (CI only) | Author; adversarial review |
 | 3. AWS code | `modules/aws/*`, `stacks/aws/*`, mocked tests, cost manifest, a stage doc. Not applied. | None until applied | Author reviews; adversarial review before any apply |
@@ -178,4 +178,4 @@ Consequences for the phases in section 8: phase 0 gains a gate (confirm the Spac
 
 ## 11. What this design does not claim
 
-It does not claim the section 4 vendor facts are current (one row was already wrong on first draft), that a two-connector AWS stack fits the approved figure, that the budget is a hard cap, or that the module contract survives contact with Azure's network model unchanged. Phase 0 exists to find out, and the design changes if the answers do.
+As of phase 0 (2026-10-16) the section 4 vendor facts were checked against vendor documentation and price lists; rows still marked UNVERIFIED in the [evidence files](2026-10-16-multicloud-phase0-evidence-aws.md) are not claimed, and vendor facts go stale, so each carries its retrieval date. The design does not claim that the budget is a hard cap, that the AWS stack has ever been applied in a real account (the measured fixed cost is an estimate from list prices), that the Spacelift AWS integration is available on the maintainer's plan (still the open gate), or that the module contract survives contact with Azure's network model unchanged. The design changes if any of those answers do.

+ 65 - 0
docs/superpowers/specs/2026-10-16-multicloud-phase0-evidence-aws.md

@@ -0,0 +1,65 @@
+# Phase 0 evidence: AWS (retrieved 2026-10-16)
+
+Raw evidence behind [the phase 0 findings](2026-10-16-multicloud-phase0-findings.md). Collected by a research agent from official vendor documentation and price lists; rows marked UNVERIFIED have no official source yet. One row below (5c, arm64 connector package) was settled afterwards: the Twingate apt repository's package index lists `twingate-connector` for arm64 (checked 2026-10-16).
+
+Prices come from AWS's official Price List API bulk files (pricing.us-east-1.amazonaws.com, EC2 published 2026-10-15, VPC published 2026-09-17), read with plain HTTP GET, no credentials.
+
+| # | Fact | Value | Source URL | Retrieved |
+|---|------|-------|-----------|-----------|
+| 1a | SG attaches to resources/network interfaces | Controls traffic to/from "the resources that it is associated with"; docs: "You associate security groups with network interfaces, not individual IP addresses" | https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html ; https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html | 2026-10-16 |
+| 1b | Stateful | "Security groups are stateful"; responses to allowed traffic are allowed regardless of rules. No deny rules, allow only | https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html ; .../security-group-rules.html | 2026-10-16 |
+| 1c | New group defaults | No inbound rules (no inbound allowed); one outbound allow-all rule, removable; no outbound rules = no outbound traffic | https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html | 2026-10-16 |
+| 1d | Not filtered by SGs | Amazon DNS (VPC+2), DHCP, instance metadata, Time Sync, reserved VPC router IPs | https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html | 2026-10-16 |
+| 1e | SG-as-source limits | Works via instances' private IPs only. Inbound reference allowed if same VPC, or VPC peering, or transit gateway. Outbound reference only same VPC or peering (not TGW). Does not work for traffic via a middlebox (use private IP/CIDR). Counts as 1 rule regardless of size | https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html | 2026-10-16 |
+| 1f | SG pricing | No additional charge | https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html | 2026-10-16 |
+| 2a | Public IPv4 charge | $0.005/hr in-use and idle (Elastic IP and auto-assigned alike) = $3.65/mo at 730 h. Eff. 2024-02-01 | https://aws.amazon.com/vpc/pricing/ ; price-list USE1-PublicIPv4:InUseAddress = 0.005 ; https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/ | 2026-10-16 |
+| 2b | Auto-assigned IP charged? | Yes: "AWS charges for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses." Auto-assigned IP is released on stop/terminate | https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html | 2026-10-16 |
+| 2c | Free allowance | Legacy: 750 h/mo public IPv4 for first 12 months (accounts on the old 12-month model; stated in the 2024 blog). Current vpc/pricing page lists NO free allowance. For new accounts on the credit model, charges draw down credits. Whether the 750 h still applies today to new accounts: UNVERIFIED | https://aws.amazon.com/blogs/aws/new-aws-public-ipv4-address-charge-public-ip-insights/ ; https://aws.amazon.com/vpc/pricing/ | 2026-10-16 |
+| 3a | NAT gateway hourly | $0.045/hr = $32.85/mo (us-east-1, price list NatGateway-Hours) | https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/us-east-1/index.json ; https://aws.amazon.com/vpc/pricing/ | 2026-10-16 |
+| 3b | NAT per-GB | $0.045/GB processed (NatGateway-Bytes) | same | 2026-10-16 |
+| 3c | NAT public IPv4 | Charged separately: EC2 doc's own formula includes "NAT gateway public IPs = $0.005 * 730 * number of IPs". So NAT minimum about $36.50/mo ($32.85 + $3.65) before data. The pricing page itself is only implicit on this; the EC2 doc is explicit | https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html | 2026-10-16 |
+| 4a | Public subnet outbound, no inbound | Needs: internet gateway attached to VPC (free), route 0.0.0.0/0 to IGW in the subnet's route table, and a public IPv4 (auto-assign or EIP) or IPv6. Inbound is blocked by the SG having zero inbound rules (a new SG has none). Non-default VPC has no IGW/route/auto-assign by default | https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html | 2026-10-16 |
+| 4b | Private subnet | No IGW route = no internet even with a public IP; outbound requires NAT gateway (or equivalent) | same | 2026-10-16 |
+| 4c | Cheapest correct design for 2 instances | Public subnet + IGW + 2 public IPv4 + SG with ZERO inbound rules + outbound allow (or restricted to 443/30000-31000 and UDP). Cost $7.30/mo for IPs vs NAT about $36.50+/mo. AWS's own NAT-vs-IPv4 formula says NAT is cheaper only when the ratio < 1 (it is not at 2 instances). Note the zero-inbound claim then rests on the SG, not on having no public address | https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html | 2026-10-16 |
+| 5a | Twingate Connector sizing | "A Linux VM allocated with 1 CPU and 2GB RAM is sufficient to handle hundreds of remote users" (baseline); priority bandwidth > memory > CPU; more CPU/RAM on one Connector does not help, add Connectors. Proxmox LXC minimum 1 vCPU / 512 MB (via search summary of the Twingate Proxmox page, page not fetched directly) | https://www.twingate.com/docs/connector-best-practices ; https://www.twingate.com/docs/proxmox-container-deployment | 2026-10-16 |
+| 5b | Network | "Connectors only require outbound Internet access"; inbound "neither required nor recommended". Outbound TCP 443, TCP 30000-31000, UDP 1-65535 (QUIC/P2P) | https://www.twingate.com/docs/connector-best-practices | 2026-10-16 |
+| 5c | OS/arch | Best-practices: "any Linux distribution that supports deployment via systemd, Docker or Helm on an x86, AMD64, or ARM-based system". Linux page: only Ubuntu LTS officially supported (22.04, 24.04); also lists Debian 11/12, Fedora 39/40, CentOS Stream 9. The Linux page does NOT state arm64 or an arm64 apt package explicitly. arm64 connector package: **verified afterwards** from Twingate's apt index: `Package: twingate-connector`, `Version: 1.93.0`, `Architecture: arm64`, `Filename: .../twingate-connector-arm64.deb` (2026-10-16). Installing it on a real t4g instance is untested | https://www.twingate.com/docs/connector-best-practices ; https://www.twingate.com/docs/connectors-on-linux | 2026-10-16 |
+| 5d | t4g.nano (arm64, 2 vCPU, 0.5 GiB) | $0.0042/hr = $3.07/mo | price list (EC2, us-east-1) | 2026-10-16 |
+| 5e | t4g.micro (arm64, 2 vCPU, 1 GiB) | $0.0084/hr = $6.13/mo | same | 2026-10-16 |
+| 5f | t3.nano (x86, 2 vCPU, 0.5 GiB) | $0.0052/hr = $3.80/mo | same; https://aws.amazon.com/ec2/instance-types/t3/ | 2026-10-16 |
+| 5g | t3.micro (x86, 2 vCPU, 1 GiB) | $0.0104/hr = $7.59/mo | same; https://aws.amazon.com/ec2/instance-types/t3/ | 2026-10-16 |
+| 5h | t3a.micro (x86 AMD, 1 GiB) | $0.0094/hr = $6.86/mo | price list | 2026-10-16 |
+| 5i | Pick | t4g.micro: 1 GiB gives headroom over the 512 MB minimum; t4g.nano (0.5 GiB) is at the floor, risky. x86 fallback t3.micro if arm64 package is not confirmed | derived | 2026-10-16 |
+| 6a | gp3 price | $0.08/GB-mo us-east-1 (3000 IOPS, 125 MB/s included) | price list; https://aws.amazon.com/ebs/pricing/ | 2026-10-16 |
+| 6b | Ubuntu AMI default root size | 8 GiB gp3 : UNVERIFIED from an official source (only third-party posts say 8 GiB). Verify in the console launch wizard or with ec2 describe-images (needs creds, not done) | none official | 2026-10-16 |
+| 7 | Monthly fixed total (see arithmetic below) | 2 x t4g.micro: $20.84. 2 x t4g.nano: $14.71. 2 x t3.micro: $23.76 | derived from rows above | 2026-10-16 |
+| 8 | Free Tier, new accounts | Credit-based, not 12-month: $100 on signup + up to $100 more from activities; Free plan ends at 6 months or credits used up, whichever first; then the account closes, content kept 90 days, upgrade to Paid within 90 days to keep it. Free plan excludes some services (Savings Plans, RIs, some Marketplace); Paid plan bills beyond credits. Free plan auto-upgrades to Paid if you join AWS Organizations, Control Tower, etc. Paid plan: credits expire 12 months after creation (per FAQ). Eligible EC2 instance types on the free plan: UNVERIFIED | https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/free-tier-plans.html ; https://aws.amazon.com/free/ ; https://aws.amazon.com/free/faqs/ | 2026-10-16 |
+| 9 | Spacelift AWS role | IAM role whose trust policy trusts a Spacelift AWS account principal (Spacelift publishes the exact account identifier in its integration docs) with condition sts:ExternalId = per-stack value (format like account@id@stack@write; generated by the spacelift_aws_integration_attachment_external_id data source). Attach a permissions policy (example uses PowerUserAccess). Optional sts:TagSession. Max session duration must be >= Spacelift's setting. Spacelift side: AWS integration with role ARN, attached to stack read/write. OIDC alternative exists, not detailed on that page | https://docs.spacelift.io/integrations/cloud-providers/aws | 2026-10-16 |
+| 10a | Budgets pricing | Budget monitoring and notifications free; first 2 action-enabled budgets per month free; each additional action-enabled budget $0.10/day | https://aws.amazon.com/aws-cost-management/aws-budgets/pricing/ | 2026-10-16 |
+| 10b | Budget actions | Run automatically or after manual approval when a cost/usage threshold (actual or forecast) is crossed. Can: apply an IAM policy, apply an SCP, or target specific EC2 or RDS instances (cannot target EC2/RDS in another account). Does not delete resources or stop spend by itself in general. Whether it can stop an instance: yes, verified afterwards from AWS's API reference (SSM action subtypes include `STOP_EC2_INSTANCES` and `STOP_RDS_INSTANCES`). Budget data lags (not real time) per general knowledge, UNVERIFIED on the fetched page | https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-controls.html | 2026-10-16 |
+| 11a | Root MFA | Required: all account types must configure root MFA, within 35 days of first console sign-in attempt; up to 8 MFA devices; passkeys/security keys recommended as phishing-resistant | https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html ; .../best-practices.html | 2026-10-16 |
+| 11b | No root access keys | "We strongly recommend that you do not create access keys for your root user" | https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-best-practices.html | 2026-10-16 |
+| 11c | Admin identity | AWS recommends IAM Identity Center for human users (federation, temporary creds). For a single standalone account with no IdP, root-user doc says create an administrative user and use IAM roles; IAM users with long-term keys discouraged. Also: group email for root, strong unique password, activate IAM access to Billing (off by default) | https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html ; https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started_create-admin-group.html | 2026-10-16 |
+| 12 | ca-central-1 | t4g.micro $0.0092/hr, t4g.nano $0.0046, t3.micro $0.0116, gp3 $0.088/GB-mo (about 10 percent more than us-east-1). Public IPv4 rate in ca-central-1 not checked. Matters only if data residency is wanted | price list (EC2, ca-central-1) | 2026-10-16 |
+
+## Arithmetic (730 h/month, us-east-1)
+
+- 2 x t4g.micro: 2 x 0.0084 x 730 = $12.26
+- 2 x public IPv4: 2 x 0.005 x 730 = $7.30
+- 2 x 8 GiB gp3: 2 x 8 x 0.08 = $1.28 (assumes 8 GiB default, UNVERIFIED)
+- Total: $20.84/mo (vs DO about $12: +$8.84, 1.7x; vs $30 ceiling: $9.16 headroom)
+- Variants: t4g.nano $6.13 + 7.30 + 1.28 = $14.71; t3.micro $15.18 + 7.30 + 1.28 = $23.76
+- Excludes: data transfer out, CloudWatch, any NAT ($36.50+/mo, which alone would breach the $30 ceiling).
+
+## Summary of surprises
+
+1. Public IPv4 is the surprise cost: $7.30/mo for two, more than half the DO total, and auto-assigned IPs are charged exactly like Elastic IPs.
+2. Cheapest design is public subnet + IGW + SG with zero inbound; NAT (at least $36.50/mo with its IP) is more expensive than the whole stack and alone exceeds $30.
+3. "Zero public inbound ports" on AWS is enforced by an empty-inbound SG while the instance still has a public address, same trust model as the DO firewall. A truly address-less private subnet needs NAT or endpoints.
+4. Floor is about $14.71 (t4g.nano) to $20.84 (t4g.micro): above the $12 DO figure, under $30. t4g.micro recommended; nano sits at Twingate's 512 MB floor.
+5. Free Tier is no longer 12-month for new accounts: $100+$100 credits, Free plan closes the account at 6 months or credit exhaustion (content kept 90 days), and it auto-upgrades to Paid if you join Organizations. A time-boxed apply fits, but warn learners the account itself expires.
+6. The 750 h/mo free public IPv4 allowance is only documented for the old 12-month model; do not assume it for new accounts.
+7. Twingate: only Ubuntu LTS officially supported. The docs say "ARM-based" in general, but the apt index does list an arm64 connector package (see row 5c, verified afterwards); keep t3.micro ($23.76) as the fallback if it does not run on a real t4g.
+8. Budget actions can apply IAM/SCP policies or stop selected EC2/RDS instances (AWS's API lists `STOP_EC2_INSTANCES` and `STOP_RDS_INSTANCES` action types), but they act on billing data that lags, cover chosen resources only, and do not tear down a stack; two action budgets free. Alerts are not a hard cap.
+9. Spacelift needs a role trusting Spacelift's own AWS account with a per-stack external ID; the learner must create this IAM role first, so the admin identity step precedes any Spacelift apply.
+10. Unverified: Ubuntu AMI default root size (assumed 8 GiB) and free-plan EC2 eligible instance types.

+ 66 - 0
docs/superpowers/specs/2026-10-16-multicloud-phase0-evidence-azure-gcp.md

@@ -0,0 +1,66 @@
+# Phase 0 evidence: Azure and GCP (retrieved 2026-10-16)
+
+Raw evidence behind [the phase 0 findings](2026-10-16-multicloud-phase0-findings.md). Collected by a research agent from official vendor documentation and price lists; rows marked UNVERIFIED have no official source yet.
+
+Method notes. Azure marketing price pages render "$-" without JavaScript, so Azure prices come from Microsoft's public, unauthenticated Retail Prices API (https://prices.azure.com/api/retail/prices, queried with no credentials). GCP network prices were read from raw HTML of cloud.google.com/vpc/network-pricing and /nat/pricing. GCP VM (e2) prices could not be extracted from Google's JS-rendered page: marked UNVERIFIED. All prices USD list/retail, 730 h/month. Retrieved column is 2026-10-16 for every row.
+
+## AZURE
+
+| # | Fact | Value | Source URL | Retrieved |
+|---|---|---|---|---|
+| 1 | Hierarchy names | Tenant (Entra directory) > management groups > subscriptions > resource groups > resources. Docs say four ARM scope levels: management group, subscription, resource group, resource. Every directory has one root management group, default display name "Tenant root group", ID = tenant ID; new subscriptions default into it. No one has default access to the root group; only Global Admins can elevate. | https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview ; https://learn.microsoft.com/en-us/azure/governance/management-groups/overview | 2026-10-16 |
+| 1b | What a new individual learner starts with | Free account: $200 credit usable within 30 days, plus 12 months of 750 h each of B1s, B2pts v2 (Arm), B2ats v2 (AMD) burstable VMs, plus always-free services; credit/debit card (non-prepaid) required. Creator of a tenant is Global Administrator. That a new signup creates exactly one tenant plus one "Free Trial" subscription is NOT stated on the pages I read: UNVERIFIED. | https://azure.microsoft.com/en-us/free/ ; https://learn.microsoft.com/en-us/entra/fundamentals/security-defaults | 2026-10-16 |
+| 2 | Network model | VNet is a regional private network; subnets inside it; VNets and subnets span all availability zones of the region. No charge for the VNet itself. | https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-overview | 2026-10-16 |
+| 3a | NSG attachment | Associated to a subnet or to a NIC (docs show both). Stateful via flow records. Rules: priority 100-4096, evaluated lowest number first, first match stops. Rule changes affect only new connections. | https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview | 2026-10-16 |
+| 3b | NSG default rules | Inbound: AllowVNetInBound 65000, AllowAzureLoadBalancerInBound 65001, DenyAllInbound 65500. Outbound: AllowVnetOutBound 65000, AllowInternetOutBound 65001, DenyAllOutBound 65500. Defaults cannot be removed, only overridden by lower-number rules. Note: inbound is deny-all from Internet, but VNet-to-VNet inbound is ALLOWED by default. | same | 2026-10-16 |
+| 3c | Service tags / ASGs | Service tag = Microsoft-maintained group of IP prefixes (e.g. Internet, VirtualNetwork, AzureLoadBalancer). ASG groups NICs so rules name app tiers instead of IPs; all NICs in an ASG must be in the same VNet. A rule cannot list multiple service tags or multiple ASGs. | same ; https://learn.microsoft.com/en-us/azure/virtual-network/application-security-groups | 2026-10-16 |
+| 3d | Standard public IP is closed by default | "Secure by default": Standard SKU public IP is closed to inbound traffic until an NSG allows it. Basic SKU public IPs were retired 2025-09-30. | https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses | 2026-10-16 |
+| 4a | Default outbound access status | Doc (updated 2026-09-10) says: for the API version released AFTER 2026-03-31, subnets in NEW VNets get defaultOutboundAccess=false (private subnet) by default; Azure portal already defaulted to private subnets. Earlier API versions (ARM templates, Terraform pinned to older versions) keep the old null/allowed behaviour. Existing VNets are NOT changed. "Not a blanket shutdown." Stopping/deallocating the VM is needed for a subnet change to apply to existing NICs. | https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access | 2026-10-16 |
+| 4b | Supported explicit outbound methods | NAT gateway on subnet (recommended for most cases), standard public LB with outbound rules, Standard public IP on the VM NIC, Azure Firewall/NVA via UDR. Basic public LB backend also listed in one place. Private-subnet side effects: Windows activation/updates need explicit egress; UDR next-hop "Internet" routes break. | same ; https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
+| 4c | NAT gateway price | Standard: $0.045/h (about $32.85/mo) + $0.045/GB processed. Standard and StandardV2 same price. Retail API returned the meter with region "Global" only (no East US row). The public IP attached to it is billed separately ($0.005/h). | https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'NAT Gateway' ; https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
+| 4d | Standard LB outbound rules price | Standard LB meter "Included LB Rules and Outbound Rules" $0.025/h (about $18.25/mo; listed as Global/placeholder region, East US row not returned) + $0.005/GB processed. East US applicability: UNVERIFIED. | https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Load Balancer' | 2026-10-16 |
+| 4e | NAT gateway behaviour | Outbound-only: only return packets of outbound flows pass; takes precedence over LB and instance public IPs. | https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview | 2026-10-16 |
+| 5 | Machine identity | Managed identity: Entra-managed credential-less identity for Azure compute. System-assigned (lifecycle tied to the VM, one resource only) or user-assigned (standalone, shareable). No extra cost. | https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview | 2026-10-16 |
+| 6a | B-series candidates (East US, Linux, pay-as-you-go, per hour) | B1ls $0.0052 (legacy, not in current B-family page: availability UNVERIFIED); B1s $0.0104 (x86); B2ats_v2 $0.0094 (AMD x86); B2pts_v2 $0.0084 (Arm64, Ampere Altra); B2ts_v2 $0.0104 (Intel x86). Memory per size not read from the size pages (family min is 1 GiB): exact RAM UNVERIFIED. | https://prices.azure.com/api/retail/prices?$filter=armRegionName eq 'eastus' and serviceName eq 'Virtual Machines' ; https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/b-family | 2026-10-16 |
+| 6b | Twingate sizing | Best practices: Linux VM 1 CPU / 2 GB RAM is "sufficient for hundreds of remote users"; GCP starting point e2-small; AWS t3a.micro; Azure guidance is Container Instances (no size given). Any Linux with systemd/Docker/Helm on x86, AMD64 or ARM. Proxmox LXC floor 1 vCPU / 512 MB (via secondary search result, not fetched). Min 2 connectors per Remote Network. Outbound only: TCP 443, TCP 30000-31000, UDP/QUIC 1-65535 for P2P. | https://www.twingate.com/docs/connector-best-practices | 2026-10-16 |
+| 6c | Azure free account VM conditions | 12 months from account creation, 750 h each of B1s, B2pts v2, B2ats v2; new customers only; must move to pay-as-you-go within 30 days of start to keep 12-month services; not available for direct pay-as-you-go signup in China/India. Whether public IP and disk are covered: page silent, UNVERIFIED. | https://azure.microsoft.com/en-us/free/ ; https://azure.microsoft.com/en-us/pricing/free-services/ | 2026-10-16 |
+| 7 | Standard public IPv4 | $0.005/h = $3.65/mo (730 h). Basic static $0.0036/h (retired SKU). IPv6 free. | https://prices.azure.com/api/retail/prices?$filter=armRegionName eq 'eastus' and serviceName eq 'Virtual Network' ; https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses | 2026-10-16 |
+| 8 | Fixed monthly estimate, 2 VMs + 2 public IPs + OS disk, no NAT | Using B2ats_v2: 2 x $0.0094 x 730 = $13.72; IPs 2 x $0.005 x 730 = $7.30; disk 2 x Standard SSD E4 (32 GiB LRS) $2.40 = $4.80 (default OS disk type NOT verified, Premium SSD would differ). Total about $25.82/mo. With B2pts_v2 (Arm): 2 x 0.0084 x 730 = $12.26, total about $24.36/mo. Excludes egress bandwidth and any free-tier credit. | prices.azure.com queries above | 2026-10-16 |
+| 9 | Spacelift auth to Azure | Spacelift-managed integration (auto secret creation/rotation), OR static service principal via ARM_CLIENT_ID/ARM_CLIENT_SECRET (or cert)/ARM_SUBSCRIPTION_ID/ARM_TENANT_ID env vars (manual rotation), OR managed identity (ARM_USE_MSI=true) for private workers on Azure VMs. OIDC guide is linked but its content was not read: OIDC details UNVERIFIED. | https://docs.spacelift.io/integrations/cloud-providers/azure | 2026-10-16 |
+| 10 | Budgets | Cost Management budgets alert on actual or forecast cost, up to 5 thresholds and 5 emails; evaluated every 24 h on data that lags 8-24 h; emails normally within an hour. "Resources aren't affected, and your consumption isn't stopped." Can trigger an action group (subscription/resource-group scope) which can call automation (Functions, webhooks), so a stop can be BUILT but is not built in. Separate feature: spending limit exists only on credit-type subscriptions (free account = $200, not changeable); when hit, VMs are stopped/deallocated and VIP settings are lost; not available on pay-as-you-go. Marketplace items can still bill. | https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets ; https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit | 2026-10-16 |
+| 11 | Account hygiene (Azure) | MFA: security defaults are on by default for new tenants (24 h grace), require MFA registration for all users, MFA for admins, MFA for Azure portal/CLI/PowerShell, block legacy auth; since 2026-07-01 new tenants also block device-code flow. RBAC: max 3 subscription owners, least privilege, narrow scope, prefer job-function roles over privileged roles, use PIM just-in-time, assign to groups. Free account: card needed, $1 temporary authorization possible; spending protection on; when credit ends or 30 days pass, services are disabled unless upgraded. Emergency (break-glass) accounts recommended for real tenants. | https://learn.microsoft.com/en-us/entra/fundamentals/security-defaults ; https://learn.microsoft.com/en-us/azure/role-based-access-control/best-practices ; https://azure.microsoft.com/en-us/free/ | 2026-10-16 |
+
+## GCP
+
+| # | Fact | Value | Source URL | Retrieved |
+|---|---|---|---|---|
+| 1 | Hierarchy names | Organization (root; needs Google Workspace or Cloud Identity) > folders (optional; require an organization) > projects (the fundamental unit; every resource lives in a project). | https://docs.cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy | 2026-10-16 |
+| 1b | What a new individual learner starts with | Free-trial/free-tier users can only create projects and resources inside them; projects can sit at the top with no parent. A plain Gmail account has NO domain-linked organization. Docs are slightly inconsistent: one page says a "standalone organization" is auto-created at Google Account signup; I could not verify what that means for Gmail. Treat as: project-only, no folders, no org policy, no hierarchical firewall policies, unless the learner sets up Cloud Identity Free. Trial: $300 credit over 90 days, card required, $0-$1 auth hold, "no automatic charges": when credit runs out or 90 days pass the trial billing account closes, resources stop, 30-day grace to upgrade before deletion. | https://docs.cloud.google.com/resource-manager/docs/creating-managing-organization ; https://docs.cloud.google.com/free/docs/free-cloud-features | 2026-10-16 |
+| 2 | Network model | VPC networks (with routes and firewall rules) are GLOBAL; subnets are REGIONAL. Auto mode: one subnet per region auto-created (10.128.0.0/9), new regions added automatically. Custom mode: no subnets until you create them. Google: "We recommend that you use custom mode VPC networks in production." Each new project starts with a `default` auto-mode network with pre-populated IPv4 rules unless disabled. | https://docs.cloud.google.com/vpc/docs/vpc | 2026-10-16 |
+| 3a | VPC firewall rules | Targets: omitted = all instances in the network; or network tags; or target service accounts. Ingress source: IPv4/IPv6 CIDR (default 0.0.0.0/0 IPv4 only, not IPv6), source tags, or source service accounts (same-VPC instances only); valid combos are ranges+tags or ranges+service accounts. Cannot use target service accounts and target tags together; "Network tags and service accounts cannot be used in the same firewall rule." Service accounts give stricter control (tags can be edited by anyone who can edit the instance). Priority 0-65535, default 1000. | https://docs.cloud.google.com/firewall/docs/firewalls | 2026-10-16 |
+| 3b | Implied rules / state | Implied deny ingress and implied allow egress (lowest priority; exact priority number not stated on the page I read, so do not teach "65535" as sourced). Stateful: response traffic of an allowed connection is allowed and cannot be denied. Note: the pre-populated `default` network rules use priority 65534. | same | 2026-10-16 |
+| 3c | Hierarchical firewall policies | Attach at organization or folder level; group rules into a policy object applied to many VPC networks in many projects; evaluated before VPC rules; Google recommends using them to block traffic that should never be allowed. Requires an organization. goto_next and tag targeting not covered on the page read: UNVERIFIED. | https://docs.cloud.google.com/vpc/docs/firewall-policies-overview ; firewalls page above | 2026-10-16 |
+| 4a | Outbound with no external IP | Cloud NAT: VMs without external IPs reach the internet, subject to egress firewall rules; only translates responses to connections the VM started, no unsolicited inbound. Alternative is an external IP on the VM. | https://docs.cloud.google.com/nat/docs/overview | 2026-10-16 |
+| 4b | Cloud NAT price (public NAT, up to 32 VMs) | $0.0014 per VM instance per hour + $0.045/GiB processed (in and out) + $0.005/h per NAT external IP. Over 32 VMs: $0.044/h per gateway. Google's own example: 14 VMs, 1 IP, 100 GiB = $22.21 (720 h). For 2 VMs, 1 NAT IP, near-zero data: 2 x 0.0014 x 730 + 0.005 x 730 = $2.04 + $3.65 = about $5.69/mo + data. | https://cloud.google.com/nat/pricing | 2026-10-16 |
+| 5 | Machine identity | Service account attached to the VM (one SA per VM; one SA can serve many VMs). Default Compute Engine SA may auto-receive Editor depending on org policy: enforce `iam.automaticIamGrantsForDefaultServiceAccounts`, replace Editor if present. Best practice: dedicated user-managed SA per workload, least-privilege roles, avoid default SAs, avoid SA keys ("avoid using service account keys whenever possible"), use fine-grained roles not broad access scopes. | https://docs.cloud.google.com/compute/docs/access/service-accounts ; https://docs.cloud.google.com/iam/docs/best-practices-service-accounts | 2026-10-16 |
+| 6a | e2-micro / e2-small on-demand price, us-central1 | UNVERIFIED from Google: the VM pricing page is JavaScript-rendered with no prices in static HTML, and Google docs fetch returned no numbers. Third-party sites conflict (0.0084/h vs 0.0465/h for e2-micro). Working figure, to be confirmed in the Cloud Pricing Calculator: e2-micro about $0.0084/h (about $6.1/mo), e2-small about $0.0168/h (about $12.3/mo). Treat the 0.0465 figure as wrong. | https://cloud.google.com/compute/vm-instance-pricing (page loaded, prices absent) | 2026-10-16 |
+| 6b | Architecture note | E2 shared-core is x86. Twingate says GCP starting point is e2-small (2 GB RAM); e2-micro (1 GB) is below the 2 GB guidance. Arm shared-core on GCP: UNVERIFIED. | https://www.twingate.com/docs/connector-best-practices | 2026-10-16 |
+| 6c | Always-free e2-micro | One non-preemptible e2-micro per month, only in us-west1 (Oregon), us-central1 (Iowa) or us-east1 (South Carolina); limit counted in hours across those regions combined (not per instance); 30 GB-months standard persistent disk; 1 GB/month egress from North America (excluding China and Australia); needs an active, good-standing Cloud Billing account; no rollover; per billing account. External IP is NOT covered by this VM free tier. | https://docs.cloud.google.com/free/docs/free-cloud-features | 2026-10-16 |
+| 7 | External IPv4 | $0.005/h for static or ephemeral IPs in use on standard VMs = $3.65/mo; $0.0025/h on Spot/preemptible VMs; free tier limited to 1 hour per month per account (negligible). Unattached (reserved, unused) static IPs are charged at a higher rate. A static IP counts as in use if attached to a VM even when stopped; an ephemeral IP is in use only while the VM runs. | https://cloud.google.com/vpc/network-pricing | 2026-10-16 |
+| 8 | Fixed monthly estimate, 2 VMs + 2 external IPs + boot disk, no NAT | e2-small (Twingate guidance): 2 x 0.0168 x 730 = $24.5; IPs 2 x 0.005 x 730 = $7.30; boot disk 2 x 10 GB: price UNVERIFIED (about $1-$2 each if pd-standard to pd-balanced). Total roughly $34-$36/mo (the arithmetic: $24.53 + $7.30 + $2 to $4 for disks), VM price unverified. With e2-micro: 2 x 0.0084 x 730 = $12.3 + 7.30 + disks, about $21-$22/mo; if one e2-micro is in the always-free tier its VM and 30 GB disk are free, leaving IPs about $7.30 + second VM. | arithmetic on rows 6a, 7 | 2026-10-16 |
+| 9 | Spacelift auth to GCP | Service account created for the stack, with a short-lived OAuth token generated per run and exposed as GOOGLE_OAUTH_ACCESS_TOKEN (no long-lived static credentials). Spacelift page: "We strongly recommend using OIDC for the GCP integration"; OIDC / workload identity federation details not read: UNVERIFIED. | https://docs.spacelift.io/integrations/cloud-providers/gcp | 2026-10-16 |
+| 10 | Budgets | Alerts-only budgets: "doesn't automatically cap Google Cloud ... usage or spending." Defaults 50%, 90%, 100% of actual spend; forecast alerts unavailable for custom date ranges. Pub/Sub notifications can drive automation such as disabling billing on a project, but data is estimated, delivery is at-least-once and out of order, failures are silent, first notification may take hours, and usage-to-cost reporting lags, so a cap can fire after overspend. Separate "spend cap" budgets exist only for eligible services and pause them until manually lifted. Monthly budgets keep tracking 2 days into the next month. | https://docs.cloud.google.com/billing/docs/how-to/budgets ; https://docs.cloud.google.com/billing/docs/how-to/notify | 2026-10-16 |
+| 11 | Account hygiene (GCP) | Billing account is required for any paid use and for the always-free tier. 2-step verification for the Google Account: no page read, UNVERIFIED (state as general practice, not sourced). Org policy needs an organization: constraints `iam.automaticIamGrantsForDefaultServiceAccounts` (stop Editor grant), `compute.vmExternalIpAccess` (control which VMs may have external IPs), `iam.disableServiceAccountCreation`; `iam.disableServiceAccountKeyCreation` and secure-by-default org policies not confirmed (secure-by-default page returned 404). Org policies are inherited and mostly not retroactive; dry-run mode exists. Avoid default Compute SA with Editor; use dedicated user-managed SA. A Gmail-only learner has no org, so no org policy: compensate with a custom-mode VPC, no `default` network, and dedicated SAs. | https://docs.cloud.google.com/resource-manager/docs/organization-policy/overview ; https://docs.cloud.google.com/compute/docs/access/service-accounts | 2026-10-16 |
+
+## Summary of surprises (10 lines)
+
+1. Azure default outbound is not "off for all new VNets": only subnets created with the post-2026-03-31 API version default to private; older API versions (including Terraform pinned to older ones) and all existing VNets keep default outbound. Lessons must say "set defaultOutboundAccess=false explicitly".
+2. Azure NAT gateway is $0.045/h (about $32.85/mo) plus IP plus $0.045/GB: far more than two Standard public IPs ($7.30/mo). On Azure, "no inbound" is cheapest as public IP + deny-all NSG, not NAT.
+3. GCP flips that: Cloud NAT for 2 VMs is about $5.69/mo + data, cheaper than 2 external IPs ($7.30/mo), so private VMs + Cloud NAT is the lower-cost zero-inbound pattern there.
+4. An Azure Standard public IP is closed inbound by default (NSG required to open), and the NSG default AllowVNetInBound means VNet-internal traffic is allowed unless you add a deny.
+5. GCP "VM free tier" does not cover the external IP ($0.005/h still applies) and only three US regions qualify; e2-micro (1 GB) is below Twingate's 2 GB guidance, Twingate itself suggests e2-small on GCP.
+6. Twingate gives no Azure VM size (it points to Container Instances); Azure B1ls is legacy and absent from the current B-family page, so use B2ats_v2 (x86) or B2pts_v2 (Arm, also in the free account).
+7. Neither cloud's budget stops spend. Azure: only the free-account/credit spending limit does, by deallocating VMs (and losing VIP settings). GCP: alerts-only never caps; automation via Pub/Sub is delayed and unreliable; spend-cap budgets cover only eligible services.
+8. A GCP Gmail learner has no organization, so no folders, no org policy, no hierarchical firewall policies; the org needs Cloud Identity/Workspace. Azure always gives a tenant root management group.
+9. GCP firewall: tags and service accounts cannot be mixed in one rule (target side hard-stated); implied-rule priority number is not stated in current docs, so do not teach 65535 as sourced.
+10. UNVERIFIED items to recheck: GCP e2 on-demand prices and disk prices, Azure RAM per B-size, Azure East US row for NAT/LB meters, Azure free-account coverage of public IP/disk, GCP 2-step verification and secure-by-default org policies, Spacelift OIDC specifics for both clouds.

+ 88 - 0
docs/superpowers/specs/2026-10-16-multicloud-phase0-findings.md

@@ -0,0 +1,88 @@
+# Multi-cloud phase 0: findings
+
+Status: phase 0 of [the multi-cloud design](2026-10-16-multicloud-design.md), run 2026-10-16. Issue: #22.
+Evidence: [AWS](2026-10-16-multicloud-phase0-evidence-aws.md) and [Azure and GCP](2026-10-16-multicloud-phase0-evidence-azure-gcp.md), each row with a source URL and retrieval date. Prices were read from the vendors' own price-list files or APIs; rows with no official source are marked UNVERIFIED there and again below.
+Nothing here is applied or approved to cost money.
+
+## 1. What phase 0 was for
+
+Re-check every vendor row of the design's difference table, settle the AWS egress choice with measured prices, and answer the gate the maintainer added: is Spacelift's native AWS integration available on the current plan?
+
+## 2. Result in one paragraph
+
+The design's shape holds. The cheapest zero-inbound design on AWS and Azure is **a public address with no inbound rules open to the internet**, not a private subnet with NAT, because a NAT gateway costs more than the whole ceiling. GCP is the exception at low traffic: Cloud NAT is cheaper than external addresses there until roughly 36 GiB a month of processed traffic, after which the per-gigabyte charge makes external addresses cheaper. A two-connector AWS stack lands between **about $15 and $24 a month fixed**, above the DigitalOcean $12 and under the $30 ceiling, with most of the difference being the charge for public IPv4 addresses. One row of the original table was wrong (Azure outbound access) and is corrected in the design.
+
+## 3. Corrections and confirmations to the design's difference table
+
+| Row | Verdict | What the evidence says |
+|---|---|---|
+| Packet filtering: AWS | Confirmed | Security groups attach to network interfaces, are stateful, and a new group has no inbound rules and one allow-all outbound rule. A group can name another group as a source or destination, but only through private addresses, and only within the same VPC or a peered VPC (inbound also across a transit gateway). |
+| Packet filtering: Azure | Confirmed, with a trap | An NSG attaches to a subnet or interface. Its default rules deny inbound from the internet but **allow inbound from inside the virtual network**, so a learner must add a deny if they want connector-to-connector isolation. |
+| Packet filtering: GCP | Confirmed | Targets by network tag or service account; tags and service accounts cannot be mixed in one rule. Ingress has an implied deny and egress an implied allow. The exact priority number of the implied rules is not stated in current docs, so lessons must not teach 65535 as sourced. |
+| Egress: Azure | **Corrected** | Only subnets in virtual networks created with the API version released after 2026-03-31 default to private (no default outbound access). Older API versions, including a pinned Terraform provider, and every existing network keep the old behaviour. The lesson is to **set it explicitly**. |
+| Egress: AWS | Confirmed | A VM in a public subnet needs an internet gateway, a route, and a public address; inbound is blocked by the empty security group. A private subnet needs NAT. |
+| Egress: GCP | Confirmed | A VM without an external address reaches the internet through Cloud NAT. |
+| Machine identity | Confirmed | AWS instance profile; Azure managed identity (no extra cost); GCP attached service account, with dedicated service accounts and no long-lived keys as the best practice. |
+| Hierarchy | Confirmed, with a gap | A GCP learner on a plain personal account has **no organization**, so no folders, organization policy or hierarchical firewall policies unless they set up Cloud Identity. Azure always has a tenant root management group. |
+| Spacelift to the cloud | Confirmed | Role assumption on AWS (temporary credentials, needs a trust policy and a per-stack external ID created before the first apply), a managed integration or service principal on Azure, a short-lived service account token on GCP. Plan availability: section 6. |
+
+## 4. What the egress choice costs (the finding that most shapes the build)
+
+All figures are list prices for us-east-1 (AWS), East US (Azure) and us-central1 (GCP), 730 hours a month, retrieved 2026-10-16.
+
+| | Public address per VM | NAT |
+|---|---|---|
+| AWS | $0.005/h each, **$3.65/mo**; auto-assigned addresses are charged the same as elastic ones | NAT gateway $0.045/h = $32.85/mo, plus $3.65 for its address, plus $0.045/GB: **at least $36.50/mo** |
+| Azure | $0.005/h each, $3.65/mo | NAT gateway $0.045/h = $32.85/mo plus address plus $0.045/GB |
+| GCP | $0.005/h each, $3.65/mo | Cloud NAT $0.0014 per VM-hour plus $0.005/h for its address plus $0.045/GiB: **about $5.69/mo for two VMs** plus data; cheaper than two addresses only below roughly 36 GiB a month of processed traffic ($1.61 fixed saving divided by $0.045/GiB) |
+
+On AWS and Azure, then, "zero public inbound ports" is enforced by having no inbound rule open to the internet while the machine still has a public address, which is the same trust model as the DigitalOcean firewall. On Azure that is **zero public inbound, not zero inbound**: the NSG's default rules still allow traffic from inside the virtual network, so isolating the two connectors from each other takes an explicit deny rule with a lower priority number. That is worth teaching explicitly: **no inbound rule is not the same as no address.** A truly address-less machine costs more than the whole ceiling there, and less than two addresses on GCP.
+
+## 5. Fixed monthly cost of a two-connector stack
+
+Arithmetic is in the evidence files. Excludes data transfer, logging and any free-tier credit.
+
+| Cloud and sizing | About per month | Notes |
+|---|---|---|
+| AWS, 2 x t4g.nano + 2 public IPv4 + 2 x 8 GiB gp3 | $14.71 | 0.5 GiB of memory, at the floor of Twingate's smallest documented size. Not recommended. |
+| **AWS, 2 x t4g.micro + 2 public IPv4 + 2 x 8 GiB gp3** | **$20.84** | Recommended starting point. Arm; see section 7. |
+| AWS, 2 x t3.micro (x86) | $23.76 | Fallback if arm turns out not to work. |
+| Azure, 2 x B2ats_v2 + 2 public IPs + 2 x 32 GiB Standard SSD | about $25.82 | Default disk type unverified. B2pts_v2 (Arm) about $24.36. Lessons only, so not decided. |
+| GCP, 2 x e2-small + 2 external IPs + disks | about $34 to $36 | **VM prices unverified.** Twingate suggests e2-small on GCP; e2-micro is below its guidance. Lessons only. |
+
+Reference point: the DigitalOcean stage 1 is $12.
+
+## 6. The Spacelift question (the gate from decision 6)
+
+**Not yet answered.** Spacelift's AWS integration documentation explains the mechanism but states nothing about which plans include it. The pricing page lists "Cloud integrations" among the features of its first paid plan and says only that the free plan has 2 users and 1 public worker. That is a hint that it is not on the free plan, not a statement. The maintainer's account is the only authority: the check is to try to start an AWS integration in the Spacelift settings (and stop before saving) and see whether it proceeds or shows an upgrade prompt.
+
+If it is gated, decision 6 applies: come back to the maintainer before using a static key.
+
+## 7. Things phase 0 settled, and things it did not
+
+**Settled**
+- The Twingate connector package is published for arm64 in Twingate's own apt repository (the package index lists `twingate-connector` for amd64, arm64 and armhf; the latest version, 1.93.0, has an arm64 package, `twingate-connector-arm64.deb`, checked 2026-10-16; Twingate's connector changelog also documents Linux arm64 support). That removes the main doubt about t4g. Running it on a real t4g instance is still untested.
+- AWS public IPv4 is charged on auto-assigned addresses; do not assume a free allowance (the 750-hour allowance is documented only for the old 12-month model).
+- The AWS Free Tier for new accounts is credit-based ($100 on signup, up to $100 more for activities), and the free plan ends at six months or when credits run out, then the account closes with content kept 90 days. A time-boxed apply fits; the account itself is time-boxed too.
+- No budget on any of the three clouds stops spending. AWS budget actions can apply an IAM policy or a service control policy, and can **stop selected EC2 or RDS instances** (AWS's API lists stop-instance action types), but they act on billing data that updates only a few times a day, cover chosen resources only, and do not delete storage or stop metered charges elsewhere; Azure's only built-in limit is on credit-type subscriptions and deallocates machines; GCP alert budgets never cap, and automation through notifications is delayed and can fail silently. The design's wording (approved fixed infrastructure, not a hard cap) stands.
+
+**Still UNVERIFIED**
+- The default root volume size of the Ubuntu image on AWS (assumed 8 GiB from third-party posts; verify in the console launch wizard on the throwaway account).
+- Which EC2 instance types the AWS free plan allows.
+- GCP e2 on-demand and disk prices (Google's page renders prices with JavaScript; use the pricing calculator).
+- Azure memory per B-size, the East US rows for the NAT and load-balancer meters, and whether the free account covers a public IP and a disk.
+- Spacelift OIDC specifics for Azure and GCP; GCP 2-step verification and secure-by-default organization policy pages.
+
+## 8. What this changes in the plan
+
+1. **The AWS approved figure.** Decision 5 gave each cloud its own approved fixed figure under the shared ceiling. About **$21 for the t4g.micro stack** is the proposal. But the $30 is defined globally in the repository today: `docs/stages/approved.json` has `ceiling: 30.0`, `docs/cost.md` calls it the ceiling for stages 0 to 4, and the learner-facing How-money-works page calls it the total across all planned stages. With DigitalOcean stage 1 at $12 running, an AWS stack at $21 totals $33. So either the ceiling becomes per cloud, which is a semantic change to the cost gate and to those two documents, or the AWS stage is applied only while DigitalOcean stage 1 is torn down. This needs the maintainer's decision, and phase 2 cannot start the per-cloud structure until it is made.
+2. **Phase 2's gate must price public IPv4.** On AWS the public address is an attribute of the instance, not a separate resource; it is a quarter of the cost of a connector and the plan-JSON costing already in the design is the right tool.
+3. **Lessons gain a "no inbound is not no address" page** (section 4) and an Azure "set outbound access explicitly" warning. The GCP lesson notes that Cloud NAT is the cheaper pattern there, which reverses the other two clouds.
+4. **The AWS account lesson** must put the Spacelift IAM role after the admin identity step, since the role must exist before the first apply, and must say the free-plan account expires.
+5. **The Spacelift plan check** (section 6) remains the gate before any AWS stack is created.
+
+## 9. Open questions for the maintainer
+
+1. Run the Spacelift check in section 6 and report what the settings page does.
+2. Per-cloud ceiling, or one shared $30 with the clouds never applied together? (Section 8, item 1.)
+3. Arm (t4g.micro, $20.84) or x86 (t3.micro, $23.76) for the first AWS stack? The recommendation is arm, with x86 as the fallback.