Skip to content

feat(network): compute-to-data egress per DataEndpoint (ADR 0001 step 4, ground#10) - #27

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/network-data-egress
Jun 13, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/network-data-egress

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Build step 4 of ground's network foundation — the final piece of ground#10 and the compute-to-data chain (provabl ADR 0002 + ground ADR 0001).

What

For each declared network.data_endpoints entry, the hub-and-spoke template renders a hub-side scoped egress path. The mechanism is inferred from the endpoint URL:

URL shape Mechanism Example
S3 host S3 gateway endpoint on the hub route table (reuses the foundation S3 endpoint if present — a route table allows only one) dbGaP s3.us-west-2.amazonaws.com
com.amazonaws.* PrivateLink interface endpoint AnVIL/Terra VPCE service
any other (public) host no route — only a ground-meta/output declaration + warning dtn.ncbi.nlm.nih.gov

ground refuses to route controlled data over a public IGW — an unreachable endpoint is declared, not routed.

The third gate

This completes the three-layer model: the SCP (data_endpoint_access_scp) gates who may call, attest's dataset-scoped Cedar policy (attest#100) gates who may read which dataset with which DUA, and this egress path provides a scoped backbone route to reach it.

Tested (template-as-data, no AWS)

classifyEndpoint (S3 / PrivateLink / public), all three render paths (S3 gateway, PrivateLink interface, public→no-route-output), and the foundation-S3-reuse dedup (no conflicting second gateway endpoint). Verified ground deploy --dry-run renders the dbGaP egress endpoint. Full ground suite: 0 failures.

Scope notes

  • DataEndpoint carries no bucket ARNs, so the S3 gateway endpoint isn't yet bucket-scoped via an endpoint policy — a refinement for when the config grows that field. The dataset-level authorization is already enforced by attest's Cedar policy.
  • Live numbered-deploy-phase wiring (the network stack is dry-run-only today) remains the one open follow-up on this stack.

With this, ground#10 is fully implemented and the compute-to-data chain is complete end to end. Refs: #11, #10.

… 4, ground#10)

The final piece of ground#10 and the compute-to-data chain. For each declared
network.data_endpoints entry, the hub-and-spoke template renders a hub-side scoped
egress path; the mechanism is inferred from the URL:

- S3 host (dbGaP) -> S3 gateway endpoint on the hub route table, reusing the
  foundation S3 endpoint if one exists (a route table allows only one).
- com.amazonaws.* PrivateLink (AnVIL/Terra) -> interface endpoint.
- any other (public) host -> NO route, only a ground-meta/output declaration +
  warning. ground refuses to route controlled data over a public IGW.

This is the network gate that joins the SCP (data_endpoint_access_scp) and attest's
dataset-scoped Cedar policy (attest#100): who-may-call, who-may-read-which-dataset,
and now is-there-a-scoped-backbone-path.

Tests: classifyEndpoint (S3 / PrivateLink / public), all three render paths, and
the foundation-S3-reuse dedup. Verified via ground deploy --dry-run.

Refs: #11, #10
@scttfrdmn
scttfrdmn merged commit 8cf53cd into main Jun 13, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the feat/network-data-egress branch June 13, 2026 18:18
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