Skip to content

docs(adr): 0001 network foundation design (ground#10 routing half) - #23

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/adr-0001-network
Jun 12, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/adr-0001-network

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Designs internal/stack/network before building it — the routing half of ground#10 that ground#22 deferred ("once the network stack exists"). Same design-first approach as suite ADR 0002 for compute-to-data.

Three decisions

  1. Hub-and-spoke topology. A shared-services hub VPC holds the centralized org-conditioned interface endpoints (cost: one set shared via TGW, not duplicated per spoke); per-tier spoke VPCs (private-only); segregated Transit Gateway route tables so the ground:tier / attest:data-classes isolation the OU tags describe becomes a routing fact — a SensitiveResearch spoke physically can't route to a Research spoke. Degrades to a single VPC when TransitGateway: false.
  2. Deterministic CIDR allocation from NetworkConfig.CIDRBlock — pure tier index → subnet function, unit-testable without AWS, never renumbers an existing spoke (renumbering is destructive).
  3. Compute-to-data egress per DataEndpoint — S3 gateway endpoint for dbGaP (free, on-backbone), PrivateLink/peering for AnVIL/Terra, and never a public IGW for controlled data (emit a ground-meta declaration + warning instead of silently routing controlled data over the open internet). The network path is the third gate beside the SCP (data_endpoint_access_scp) and attest's Cedar policy (attest#100).

Why design-first

The network stack is ground's largest template and the topology choices (CIDR plan, TGW route-table segregation, egress mechanism) are hard to reverse once deployed — exactly the case for an ADR before code. Establishes ground's own docs/adr/ (distinct from the umbrella's suite-wide ADRs).

Status: Proposed. 4-step build order in the ADR (CIDR allocator → single-VPC template → hub-and-spoke+TGW → compute-to-data egress), each its own PR; steps 1–2 deliver the long-promised foundation independently of the ground#10 routing in step 4.

Refs: #11, #10

Designs the internal/stack/network stub before building it (the routing half of
ground#10 deferred from ground#22). Decides:

- hub-and-spoke: shared hub holds centralized org-conditioned interface endpoints
  (cost: one set shared via TGW, not per-spoke); per-tier spoke VPCs; segregated
  TGW route tables make ground:tier / attest:data-classes isolation a routing fact
  (a SensitiveResearch spoke physically can't route to Research).
- deterministic CIDR carve from NetworkConfig.CIDRBlock (pure, unit-testable; never
  renumbers an existing spoke).
- compute-to-data egress per DataEndpoint: S3 gateway endpoint for dbGaP, PrivateLink/
  peering for AnVIL/Terra, NEVER a public IGW for controlled data (declaration+warning
  instead). The network path is the third gate beside the SCP and Cedar.

Establishes ground's own docs/adr (distinct from the umbrella's suite-wide ADRs).
Status: Proposed; 4-step build order, each its own PR. Pairs with attest#100 +
suite ADR 0002.

Refs: #11, #10
@scttfrdmn
scttfrdmn merged commit df1267f into main Jun 12, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the docs/adr-0001-network branch June 12, 2026 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant