Repository navigation
feat(network): compute-to-data egress per DataEndpoint (ADR 0001 step 4, ground#10) - #27
Merged
Merged
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_endpointsentry, the hub-and-spoke template renders a hub-side scoped egress path. The mechanism is inferred from the endpoint URL:s3.us-west-2.amazonaws.comcom.amazonaws.*PrivateLinkground-meta/output declaration + warningdtn.ncbi.nlm.nih.govground 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). Verifiedground deploy --dry-runrenders the dbGaP egress endpoint. Full ground suite: 0 failures.Scope notes
DataEndpointcarries 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.With this, ground#10 is fully implemented and the compute-to-data chain is complete end to end. Refs: #11, #10.