Skip to content

feat: compute-to-data endpoint declarations + egress-gating SCP (ground#10) - #22

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/compute-to-data-endpoints
Jun 12, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/compute-to-data-endpoints

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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, required data_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 an attest:data-classes posture tag.
  • ground export-metadata — emits declared endpoints in ground-meta.json for attest init.

Two layers, mirroring AMI gating (#13)

Layer This PR / attest#100 Question Granularity
ground SCP data_endpoint_access_scp may this account class reach external research data at all? coarse (posture tag)
attest Cedar cedar-nih-approved-user may this researcher read this dataset with their DUA? fine (per-DUA, per-dataset)

A subtlety worth calling out

The condition is a 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. 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/network is 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.

…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
@scttfrdmn
scttfrdmn merged commit ad9c219 into main Jun 12, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the feat/compute-to-data-endpoints branch June 12, 2026 00:14
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