Environments, tenants and the manifest
Pipewright never creates infrastructure. The platform team builds each environment once, with Terraform, and publishes an environment manifest: a JSON file naming everything a team may use. ML teams work only with their own configuration and code, and refer to the manifest’s names. This page is for both sides.
Building an environment
| Option | What it builds | For |
|---|---|---|
The open source starter (pipewright-starter, blueprint poc) | One project: buckets, registries, the launcher on Cloud Run, a runner identity per team, Pub/Sub, schedules, optional online stores, serving, integrity protections and CI identities, each behind a toggle in terraform.tfvars or a small YAML file | Teams starting out, proofs of concept, smaller organisations |
Pipewright Enterprise blueprints (private-managed, private-gke) | A private, regulated environment: VPC Service Controls, customer-managed keys on everything, no public endpoints, organisation policies, a launcher inside the network; optionally private GKE with Kubeflow, KubeRay and KServe. Driven by one platform YAML file | Regulated industries and organisations with a security review |
| Your own Terraform | Anything that writes a valid manifest | Platforms with their own modules; the manifest reference is the contract |
The manifest is published at gs://<artifacts-bucket>/pipewright/environment.json. The launcher re-reads it within a minute, so adding a tenant needs no redeploy.
What the manifest says
| Part | Examples |
|---|---|
| Where things are | project, region, artifact_registry, artifacts_bucket, landing_bucket, the launcher |
| How runs are made | orchestrator (vertex or kfp on GKE), security (the key, network and reserved ranges applied to every job), ray, kubernetes, schedules |
| Who uses it | tenants: per team its runner identity, BigQuery dataset, landing prefix, feature datasets, online store and namespace |
| The rules | policies: approvals, integrity, images, evaluation floors, retraining, BigQuery ML, accelerators, synthetic data, serving pools |
| Decisions and records | approver_groups, observability (events topic, evidence) |
| Optional services | features (online stores), serving (endpoints made in Terraform, shared pools), kserve, ai (AI build assistance) |
Every key is in the manifest reference. A key a Pipewright version does not know is ignored with a note, so a newer platform works with an older CLI; the manifest’s requires can insist on a minimum version.
Tenants
A tenant is one ML team in one environment. Everything a team’s pipelines do runs as the tenant’s runner identity, which can read and write only the team’s own dataset, landing prefix and artifact prefixes. A use case names its tenant in spec.tenant; Pipewright fills in the rest from the manifest.
When several teams share a project, set isolate_tenant_artifacts = true in the starter so each runner writes only under its own pipeline root (pipeline-root/<tenant>/): one team’s runs then cannot overwrite another team’s models or evaluation records. The Enterprise blueprints always isolate tenants.
What the platform hands an ML team
| Item | What the ML team receives |
|---|---|
| Tenant name | for example retention |
| Runner identity, BigQuery dataset, landing prefix | In the manifest; the team creates its own tables with pipewright tables sync |
| Online serving allowed | yes or no (tenants.<t>.online_serving) |
| Feature datasets (optional) | The feature datasets the team may read, and whether feature tables are required (Data and features) |
| Online stores (optional) | Which stores the environment offers, the team’s lookup identity and sync job (Online feature stores) |
| Serving (optional, 1.4.2) | Endpoints Terraform creates for the team’s use cases, private or public; shared pools for co-hosting (Serving) |
| Policies | Approved images, BigQuery ML limits, evaluation floors, retraining limits, integrity settings |
| Approver groups | The groups a retrain case can require, each a Pub/Sub topic whose publishers are its members |
| A way to reach the launcher | Public launchers: run.invoker for the runner. Private ones: the run requests topic |
Policies the platform sets
Policies are the platform’s rules for every use case in an environment. validate, release and the commands that act on models enforce them, so a team learns of a breach before anything runs.
| Policy | What it decides |
|---|---|
policies.deploy_model, promote_model | Whether serving and promotion need a person (manual), CI (ci) or may be automatic |
policies.integrity | What runs is what was approved: refuse or warn, locks, the watch, pinned bytes, feature definitions (Integrity) |
policies.images | The base images and package indexes images may be built from (approved images) |
policies.evaluation.min_gates | Gates every use case must have, with floors |
policies.retraining | Allowed retraining modes, approver groups every case needs, the longest snooze |
policies.bqml | Byte limits, allowed model types, whether AI.FORECAST may be used |
policies.accelerators | Which GPUs steps and serving may ask for |
policies.synthetic | Whether synthetic data is allowed, for which purposes, with which engines and gates |
policies.serving.pools | Rules for shared serving pools in production |
Who owns what
| The ML team owns | The platform team owns |
|---|---|
Pipeline code, components, usecase.yaml and its config files | Projects, network, keys, the perimeter (with security) |
| Tables inside its dataset | The dataset, service accounts, IAM |
| Releases, schedules, rollbacks | The launcher, Pub/Sub, Artifact Registry |
| Model versions, approvals, deployments | Monitoring, budgets, the environment manifest |
Neither side edits the other’s files. When something is missing, pipewright doctor says which side to ask.
Use cases for some environments only
A use case only one environment can run, such as one serving on KServe where only test has GKE, names its environments with spec.run_in: [test]. Whole-repo commands skip it elsewhere with a note; naming it with --usecase in another environment, or promoting it to one, is refused.
What may differ per environment
A use case is the same everywhere except a fixed list of keys, set in usecases/<name>/environments/<env>.yaml: machine sizes, replica counts, schedules, alert recipients and similar. A gate, a data contract or a feature list cannot differ, so production judges the same model the same way. The configuration reference marks each key per environment yes or no, and pipewright resolve --env prod --usecase churn prints the effective configuration.