Repository navigation
feat: compute-to-data endpoint declarations + egress-gating SCP (ground#10) - #22
Merged
Merged
Conversation
…nd#10) The coarse network/posture half of compute-to-data (#11 Tier 2, ADR 0002 Decision 3; pairs with attest#100's dataset-scoped Cedar gate). - config NetworkConfig.data_endpoints: declare external research-data endpoints (name, url, data_class, sre_types, authorized_ous) the SRE may reach in-place. - policies/data_endpoint_access_scp.json: deny the in-place data-access actions (s3:GetObject/ListBucket, sagemaker:Create{Training,Processing}Job) unless the principal carries an attest:data-classes posture tag. Null check, not StringNotEquals — attest:data-classes is multi-valued (e.g. 'CUI,GENOMIC'), so an equality test would wrongly deny a legitimately multi-class principal. - export-metadata: emit declared endpoints in ground-meta.json for attest init. - tests: TestDataEndpointAccessSCPRequiresDataClassPosture (Deny-only, posture condition present, egress actions covered); ground.example.yaml shows dbGaP. Two layers mirror AMI gating (#13): coarse SCP outer gate + fine dataset-scoped Cedar PDP (attest#100). HONEST SCOPE: the VPC-routing half — internal/stack/network is still a stub — is a follow-up; this is the policy + config + metadata surface, not the routing implementation. 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.
The coarse network/posture half of compute-to-data (#11 Tier 2; ADR 0002 Decision 3). Pairs with attest#100's dataset-scoped Cedar gate to complete the chain.
What
NetworkConfig.data_endpoints— declare external research-data endpoints the SRE reaches in-place (NIH dbGaP S3, AnVIL/Terra):name,url, requireddata_class,sre_types,authorized_ous.policies/data_endpoint_access_scp.json— the coarse outer gate: denies the in-place data-access actions (s3:GetObject/ListBucket,sagemaker:Create{Training,Processing}Job) unless the principal carries anattest:data-classesposture tag.ground export-metadata— emits declared endpoints inground-meta.jsonforattest init.Two layers, mirroring AMI gating (#13)
data_endpoint_access_scpcedar-nih-approved-userA subtlety worth calling out
The condition is a
Nullcheck, notStringNotEquals.attest:data-classesis multi-valued (e.g."CUI,GENOMIC"), so an equality test would wrongly deny a legitimately multi-class principal. The honest coarse gate is "posture tag present at all"; the specific class→dataset binding is attest's Cedar layer.Honest scope (flagged in the ADR + the epic)
The VPC-routing half is NOT here —
internal/stack/networkis still a stub. This PR is the policy + config + metadata surface; wiring actual VPC routes to the declared endpoints is a follow-up. I scoped this deliberately as the slice that lands independently.Tested by
TestDataEndpointAccessSCPRequiresDataClassPosture(Deny-only, posture condition present, egress actions covered); full ground suite passes (0 failures). Refs: #11, ground#10.