Manual / Guides

Security and data protection

Pipewright is built to run where security reviews are strict: customer-managed keys on every query, no public endpoints, VPC Service Controls, enforced organisation policies. It never holds a key file, never runs a step as a person, and never puts a row of data in a message, a log or an event.

Identities

IdentityDoesMay not
You (the CLI)Release, approve, deploy, promote; with your own Google identityRun pipeline steps
The tenant’s runnerEvery pipeline step, scoring run, sync and Ray job of the teamRead another team’s dataset or prefixes
The launcherSubmits runs as the runner, makes Ray clusters, lookup servicesApprove anything
CIThe workflows, through Workload Identity Federation (no keys)More than the GitHub environment’s reviewers allow
The agent identity (1.3.0)Reads metadata for coding agentsRead a row of data
The renewer (1.4.1)Extends retention on approved filesAnything else; only Terraform may act as it

Tenants are isolated by prefix and dataset: a runner writes only under its own pipeline root when isolate_tenant_artifacts is on (always, in Enterprise).

Keys and networks: the manifest’s security block

KeyApplied to
security.kms_keyPipeline jobs, models and endpoints (CMEK)
security.bigquery_kms_keyBigQuery query results; required when the CMEK organisation policy covers BigQuery. Components use bigquery_client(project, ml_config) to apply it
security.network, reserved_ip_rangesPipeline jobs peer with your VPC through Private Services Access
security.perimeterInformational: the VPC Service Controls perimeter

Pipewright applies them at run time to every job, so a team cannot forget one. Run requests travel over Pub/Sub, so the launcher can stay internal-only; in a private environment pipewright run publishes instead of calling it.

Private serving

Endpoints can be created by the platform’s Terraform as private endpoints over Private Service Connect: they answer only inside the network. Features inside the network are fetched by the lookup gateway, so nothing is opened to the internet. See Serving.

What Pipewright never records

Messages, events and logs name tables, columns, files, digests, metrics and gates: never a row, a feature value or a slice value. What changed in an evaluation record is shown as its decision and top-level metrics; anything that could be named after data values is counted, not shown. Coding agents get metadata only, as their own identity.

Personal data

data_protection:
  personal_data_columns: [customer_id, email]
  erasure: { key_column: customer_id }
  • Never a feature: personal-data columns are left out of the default features and recorded in the release.
  • Kept out of logs.
  • Never learned by synthetic data engines: they get new values from rules.
  • A warning when it looks forgotten (1.4.2): validate warns when the list is empty but a column such as customer_id or email usually identifies a person.

Erasure by key

pipewright data erase --env prod --usecase churn --keys-file ids.txt            # counts only
pipewright data erase --env prod --usecase churn --keys-file ids.txt --confirm  # deletes

Deletes a data subject’s rows by erasure.key_column across the use case’s own tables, in BigQuery and Parquet, and records data.erased with counts, never the keys. Feature tables belong to their owners, who handle erasure there.

Supply chain

Images are built from approved base images and package indexes only (policies.images), pinned by digest in a write-once contract, verified before going live and copied by digest on promotion. Approved model files can be locked against deletion (Integrity).

Pipewright Enterprise

Enterprise adds the private blueprints (VPC Service Controls, CMEK everywhere, organisation policies, private GKE), evidence packs for model risk and audit, Fleet View across the organisation, approval of synthetic releases by named groups, and a hosted agent tool server per team. See Enterprise.