Manual / Guides

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

OptionWhat it buildsFor
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 fileTeams 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 fileRegulated industries and organisations with a security review
Your own TerraformAnything that writes a valid manifestPlatforms 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

PartExamples
Where things areproject, region, artifact_registry, artifacts_bucket, landing_bucket, the launcher
How runs are madeorchestrator (vertex or kfp on GKE), security (the key, network and reserved ranges applied to every job), ray, kubernetes, schedules
Who uses ittenants: per team its runner identity, BigQuery dataset, landing prefix, feature datasets, online store and namespace
The rulespolicies: approvals, integrity, images, evaluation floors, retraining, BigQuery ML, accelerators, synthetic data, serving pools
Decisions and recordsapprover_groups, observability (events topic, evidence)
Optional servicesfeatures (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

ItemWhat the ML team receives
Tenant namefor example retention
Runner identity, BigQuery dataset, landing prefixIn the manifest; the team creates its own tables with pipewright tables sync
Online serving allowedyes 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)
PoliciesApproved images, BigQuery ML limits, evaluation floors, retraining limits, integrity settings
Approver groupsThe groups a retrain case can require, each a Pub/Sub topic whose publishers are its members
A way to reach the launcherPublic 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.

PolicyWhat it decides
policies.deploy_model, promote_modelWhether serving and promotion need a person (manual), CI (ci) or may be automatic
policies.integrityWhat runs is what was approved: refuse or warn, locks, the watch, pinned bytes, feature definitions (Integrity)
policies.imagesThe base images and package indexes images may be built from (approved images)
policies.evaluation.min_gatesGates every use case must have, with floors
policies.retrainingAllowed retraining modes, approver groups every case needs, the longest snooze
policies.bqmlByte limits, allowed model types, whether AI.FORECAST may be used
policies.acceleratorsWhich GPUs steps and serving may ask for
policies.syntheticWhether synthetic data is allowed, for which purposes, with which engines and gates
policies.serving.poolsRules for shared serving pools in production

Who owns what

The ML team ownsThe platform team owns
Pipeline code, components, usecase.yaml and its config filesProjects, network, keys, the perimeter (with security)
Tables inside its datasetThe dataset, service accounts, IAM
Releases, schedules, rollbacksThe launcher, Pub/Sub, Artifact Registry
Model versions, approvals, deploymentsMonitoring, 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.