You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compute-to-data access pattern — Cedar-gated access to external datasets without movement #100
The current model assumes data is already inside the SRE. But NIH's preferred model for dbGaP, TOPMed, and UKBB is increasingly compute-to-data: the SRE gets network access to the dataset at its source endpoint; data never leaves NIH's boundary. attest needs to model and enforce this pattern.
Architecture
SRE VPC ──(private link or VPC peering)──▶ AnVIL / NIH S3 / Terra endpoint
(data stays here)
Cedar policy evaluates:
principal.NIHApprovalCurrent == true
principal.CountriesOfConcernCheckCurrent == true
principal.nih_dua_id in [active DUAs for this dataset]
action == s3:GetObject || terra:RunWorkflow
resource == NihResource{repository_id: "phs000178"}
→ PERMIT
Required work
Network policy: Cedar policy that permits outbound S3/HTTPS to specific external endpoints conditional on NIH approval status. Currently Cedar only gates internal resources.
NihResource model extension: Add access_pattern: in_place | move_to_compute field to NihResource Cedar entity type.
attest scan detection: attest scan should detect when an SRE has in-place access configured and verify the Cedar policies match — no external egress without active approval.
VPC endpoint policy: generate VPC endpoint policy allowing access to specific S3 buckets/prefixes conditioned on aws:PrincipalTag/attest:nih-approval.
Key distinction from current model
Current: NihResource is a resource inside the SRE that Cedar gates.
New: NihResource is an external endpoint; Cedar gates whether the SRE can reach out to it. The VPC endpoint policy is the enforcement point, not the S3 bucket policy.
Related
attest#99 (IRB/DUA approval workflow — who is allowed in-place access)
attest#98 (SRE type catalog — nih-genomics type uses in-place by default)
ground external_services (AnVIL endpoint declared as research-platform service)
Dependency (post-kernel roadmap, #11):blocked by attest#99 (DUA workflow) + attest#98 (SRE type catalog); blocks ground#10 (the VPC/network half). Together attest#100 + ground#10 are the compute-to-data span.
This issue is Decision 2: model the controlled dataset as a Cedar Resource (dua_id, nih_controlled_access, data_class, repository_id — the nih_resource attrs already half-declared in frameworks/nih-gds/framework.yaml) and replace the blanketcedar-nih-approved-user with a dataset-scoped forbid-unless whose load-bearing clause is principal.nih_approval_dua_ids.contains(resource.dua_id). The actions are compute-to-data verbs (s3:GetObject, terra:RunWorkflow) bound to the dataset — data movement never required.
Hard-depends on the schema change (Decision 4: dua-id string → set, String → Set<String> Cedar type). The compiler's schema generation (internal/compiler/cedar) must emit the dataset entity. See the ADR for the two-layer split with ground#10.
Activity
scttfrdmn commentedon Jun 8, 2026
Triage cross-link: this is the attest (Cedar/PDP) half of a cross-repo capability:
These three should land together for the compute-to-data pattern to work end to end.
scttfrdmn commentedon Jun 9, 2026
Dependency (post-kernel roadmap, #11): blocked by attest#99 (DUA workflow) + attest#98 (SRE type catalog); blocks ground#10 (the VPC/network half). Together attest#100 + ground#10 are the compute-to-data span.
scttfrdmn commentedon Jun 11, 2026
Design recorded: ADR 0002 — Compute-to-data access (provabl umbrella).
This issue is Decision 2: model the controlled dataset as a Cedar
Resource(dua_id,nih_controlled_access,data_class,repository_id— thenih_resourceattrs already half-declared inframeworks/nih-gds/framework.yaml) and replace the blanketcedar-nih-approved-userwith a dataset-scoped forbid-unless whose load-bearing clause isprincipal.nih_approval_dua_ids.contains(resource.dua_id). The actions are compute-to-data verbs (s3:GetObject,terra:RunWorkflow) bound to the dataset — data movement never required.Hard-depends on the schema change (Decision 4: dua-id string → set,
String→Set<String>Cedar type). The compiler's schema generation (internal/compiler/cedar) must emit the dataset entity. See the ADR for the two-layer split with ground#10.