Skip to content
provablPublic

About

Data-ingestion stewardship for AWS Secure Research Environments (move-to-compute governance)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

steward

Data-ingestion stewardship for AWS Secure Research Environments.

Boundary: steward owns the data plane's move-to-compute boundary — it records the provenance of data brought into a secure account, appraises it, and writes the attribute attest's PDP gates a read on. Where vet qualifies the software and qualify qualifies the person, steward qualifies the data. It does not move bytes (the mover is pluggable/external), decide access (attest does), or build the account (ground does).

Part of the Provabl suite:

  • ground — deploy correct AWS foundations
  • attest — compile, enforce, and prove compliance
  • qualify — train and qualify researchers
  • vet — verify the software supply chain
  • steward — govern data brought into the boundary ← you are here

Ground your infrastructure, attest your controls, qualify your people, vet your software, steward your data.


What steward does

The compute-to-data model (provabl ADR 0002) lets an SRE reach a dataset in place. Its sibling, move-to-compute — copying data into the SRE (a Globus transfer to S3, a bulk load) — was unowned: the suite could prove the person, the software, the machine, and the network path, but nothing about a dataset that was copied in. steward closes that: it records where the bytes came from and that they're intact, checks the ingestion was authorized against a current DUA, and lowers a verified-provenance attribute attest's Cedar PDP gates the data-read on.

flowchart LR
    data["data brought in<br/>(Globus / DataSync / s3 cp)"] --> steward["<b>steward</b><br/>record + appraise provenance"]
    steward --> json[".steward/gate-result.json"]
    json -->|"context.data.*"| attest["<b>attest</b><br/>Cedar PDP"]
    qualify["qualify approval<br/>(the DUA)"] -.->|"authorizes"| steward
Loading

Governance, not transport. steward does not move bytes — Globus/DataSync/s3 cp do. steward wraps that movement with the governance the suite was missing: an authorization check, a recorded provenance record, and (later) handling/retention and closeout.

Core concepts

(terms link to the suite glossary)

  • Move-to-compute — data is transferred into the SRE (vs compute-to-data, where it's reached in place). steward governs the former.
  • Provenance record — source URI, content digest, transfer-integrity result, governing DUA, authorizing principal: what came in, from where, under what authority. The move-to-compute analogue of vet's SBOM/verification record.
  • data:// (ASP, appraiser) pair — steward registers one against the evidence kernel, so the provenance is appraised and fresh, not a bare assertion.
  • Lowered attribute — the verdict becomes .steward/gate-result.json (→ context.data.*); attest reads it. attest stays the PDP; steward never decides.

Usage

The move-to-compute lifecycle: ingest data under authorization (or record what landed out-of-band), verify the bytes are intact, gate the destination (writing the attribute attest reads), and log the audit trail.

# 1a. Ingest: authorize → move → record, in one governed step. The ingestion is
#     checked BEFORE any bytes move; a failed authorization moves nothing.
steward ingest \
    --dataset phs000178 --source ./incoming/phs000178.tar --dest ./sre/genomic/phs000178.tar \
    --dua-id DUA-2025-001 --data-class GENOMIC \
    --principal arn:aws:iam::123456789012:role/AliceResearchRole \
    --allowed-dua DUA-2025-001 --allowed-source ./incoming/ --require-data-class GENOMIC

# 1b. …or, for data moved out-of-band, just record its provenance (asserted digest).
steward provenance record \
    --dataset phs000178 \
    --dest s3://sre-genomic/dbgap/phs000178/ \
    --source globus:dtn.ncbi.nlm.nih.gov/dbgap/phs000178 \
    --digest sha256:8e1ebe… --dua-id DUA-2025-001 --data-class GENOMIC \
    --authorized-by [email protected]

# 2. Verify: recompute the digest against the destination bytes.
#    On a match this flips integrity_verified=true — the provenance claim now
#    means "steward recomputed and matched," not "a mover told us." Mismatch → exit 1.
steward provenance verify --dest s3://sre-genomic/dbgap/phs000178/

# 3. Gate: appraise through the evidence kernel, write .steward/gate-result.json
#    (context.data.*). An unverified digest fails closed; exits non-zero if policy isn't met.
steward gate --dest s3://sre-genomic/dbgap/phs000178/ --dua-required

# 4. Handle: tag the destination with its data class + apply Object Lock retention
#    for the DUA term. Strengthen-only — shortening/removing a lock is refused.
steward apply-handling s3://sre-genomic/dbgap/phs000178/ --data-class GENOMIC --retain-until 2027-05-01

# 5. Closeout (at DUA end): destroy + emit a certificate. Dry run by default;
#    --confirm --principal to actually destroy, and only after retention elapses.
steward closeout s3://sre-genomic/dbgap/phs000178/ --dua-id DUA-2025-001          # dry run
steward closeout s3://sre-genomic/dbgap/phs000178/ --dua-id DUA-2025-001 --confirm --principal arn:aws:iam::…:role/Compliance

# Audit trail: what came in, from where, under what DUA, and whether it's verified.
steward log --data-class GENOMIC

# Preflight (optional, for the AWS-touching paths): confirm the calling principal
# holds the IAM actions steward needs. Read-only — it evaluates, it never acts.
steward preflight --region us-west-2

v1 verify scope: verify recomputes against local / file:// destinations (e.g. a mounted copy of the landing zone). S3 and other mover-specific schemes are deferred to the AWS slice; the recompute logic itself is transport-agnostic (an injected reader), so adding S3 is a wiring change.

Install

go install github.com/provabl/steward/cmd/steward@latest   # requires Go 1.26.4+
# or build from a clone: go build ./cmd/steward

Prerequisites. Go 1.26.4+. The provenance record/gate/log flow runs locally with no AWS access; provenance verify (digest re-check against an object) needs read access to the destination. Run steward preflight to confirm the calling principal holds what the AWS-touching paths need.

Status

The full move-to-compute lifecycle ships: ingest → provenance verify → gate → apply-handling → closeout, plus log and preflight. ingest drives authorize → move → record: authorization is config-driven or reads the principal's attest:nih-dua-ids IAM tag (--authorizer policy|iam), and the transport is the local reference mover or a generic exec-based command mover (--mover local|command) that runs any scriptable transport — aws s3 cp, globus transfer, rclone copy — with zero steward coupling (see docs/movers.md). apply-handling tags an S3 destination with its data class and applies Object Lock retention for the DUA term, "strengthened but never relaxed." closeout destroys data at DUA end and emits a destruction certificate — certify + confirm, never silent delete: a dry run by default, refusing until any Object Lock retention has elapsed and requiring an explicit confirming principal (both apply-handling and closeout live-validated against real S3 + Object Lock). The only deferred work is native SDK movers (Globus/DataSync), added only if a transport needs features the command mover can't express. See business/steward-product-spec.md (in the umbrella) and provabl ADR 0004.

License

Apache 2.0. Copyright 2026 Playground Logic LLC.

About

Data-ingestion stewardship for AWS Secure Research Environments (move-to-compute governance)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages