Skip to content

Compute-to-data access pattern — Cedar-gated access to external datasets without movement #100

Open

Description

@scttfrdmn

Problem

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

  1. Network policy: Cedar policy that permits outbound S3/HTTPS to specific external endpoints conditional on NIH approval status. Currently Cedar only gates internal resources.

  2. NihResource model extension: Add access_pattern: in_place | move_to_compute field to NihResource Cedar entity type.

  3. 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.

  4. 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)

Activity

  1. added
    type/feature
    status/needs-design
    priority/high
    on Jun 8, 2026
  2. scttfrdmn commented on Jun 8, 2026

    @scttfrdmn
    CollaboratorAuthor

    Triage cross-link: this is the attest (Cedar/PDP) half of a cross-repo capability:

    • ground#10 — VPC routing / outbound endpoint policy for compute-to-data
    • qualify#36 — data-access request → approval workflow that activates the policy

    These three should land together for the compute-to-data pattern to work end to end.

  3. scttfrdmn commented on Jun 9, 2026

    @scttfrdmn
    CollaboratorAuthor

    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.

  4. scttfrdmn commented on Jun 11, 2026

    @scttfrdmn
    CollaboratorAuthor

    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 — the nih_resource attrs already half-declared in frameworks/nih-gds/framework.yaml) and replace the blanket cedar-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/highstatus/needs-designtype/feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions