Skip to content
Get Started

Environment variables

This page lists every environment variable the pz command reads. Variables your own connections.yml references through ${NAME} are not listed here; see connections.yml.

Variable Default Effect
PZ_CACHE_DIR ~/.pz/cache Where pz restore stores downloaded connector packages.
PZ_FEEDS https://api.nuget.org/v3/index.json NuGet feeds pz restore resolves connector packages from. Separate several with ;. The --feeds flag wins over the variable.
PZ_OTEL_ENDPOINT unset OTLP/gRPC collector endpoint for pz run, pz test, and pz retry. The PZ_OTEL_* variables apply only when no --otel-* flag is given; any flag makes pz ignore all of them.
PZ_OTEL_PROTOCOL grpc grpc or http/protobuf.
PZ_OTEL_TRACES_ENDPOINT unset http/protobuf only: the full traces URL, used as-is.
PZ_OTEL_METRICS_ENDPOINT unset http/protobuf only: the full metrics URL, used as-is.
PZ_OTEL_HEADERS_FILE unset http/protobuf only: a file of Name=value header lines (a bearer token, for example), re-read before every export so it can be refreshed during a run. Its content is never printed.
TRACEPARENT unset A W3C trace context. With telemetry on, pz run, pz test and pz retry start their run span as its child, joining the caller’s trace. An unsampled parent (flags 00) means no spans are exported for the run; metrics still are. Invalid values are ignored with a note.
TRACESTATE unset Vendor trace state carried with TRACEPARENT. Ignored without it.
PZ_DOCS_URL https://pipelinez.dev Base URL the pz mcp server reads llms.txt/llms-full.txt from. Also accepts a file:// directory holding the same two files, for air-gapped mirrors; each fetch is capped at 25MB (PZ0610).
CI unset When set to any value, pz renders plain non-interactive output. Redirected output has the same effect.
PZ_DEBUG unset When set to any value other than 0, an unhandled exception’s coded fatal (PZ0500) includes the stack trace.

These supply defaults for the state: block in project.yml. A key the project sets always wins over its variable. That lets one container image configure a host-wide state store while a project that pins its own backend stays reproducible.

Variable project.yml key Meaning
PZ_STATE_BACKEND state.backend local, sqlserver, or http.
PZ_STATE_CONNECTION_STRING none A full SQL Server connection string for backend: sqlserver. Has no project.yml spelling because it is a credential.
PZ_STATE_SCHEMA state.schema SQL schema for the state tables. Default pz.
PZ_STATE_ARTIFACTS state.artifacts Persist run results to the backend.
PZ_STATE_EVENTS state.events Persist the run-event stream to the backend.
PZ_STATE_URL state.url Run-scoped endpoint for backend: http.
PZ_STATE_TOKEN none Bearer token for backend: http. Has no project.yml spelling because it is a credential.
PZ_STATE_TIMEOUT_SECONDS state.timeout_seconds Per-request timeout, in seconds, for backend: http.

The combination rules, such as events requiring artifacts, are in the project.yml reference.

Variables passed to out-of-process connectors

Section titled “Variables passed to out-of-process connectors”

A packaged connector runs in its own process. pz starts that process with an empty environment and copies only these variables from its own:

PATH HOME TMPDIR LANG LC_ALL
http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY

On Windows it also copies SystemRoot, windir, SystemDrive, TEMP, TMP, USERPROFILE, APPDATA, LOCALAPPDATA, PATHEXT and ComSpec. None of these is meant to carry a secret, though a proxy URL can embed credentials. No PZ_* variable crosses, and a connector receives its connection configuration, including every ${VAR} secret from connections.yml, through the protocol, never through the environment.

From pz 0.14.0, a connector package can declare that it uses a cloud SDK’s ambient identity (managed identity, workload identity, IRSA, an ECS task role, GCP federation). For each group its manifest lists under ambientIdentity, pz also copies that group’s variables, when they are set on the host. A package that declares nothing gets only the list above, and a package never receives another group’s variables. pz restore prints receives host identity: <groups> under every package that declares any.

Group Variables
azure IDENTITY_ENDPOINT, IDENTITY_HEADER, IMDS_ENDPOINT, MSI_ENDPOINT, MSI_SECRET, IDENTITY_SERVER_THUMBPRINT, AZURE_FEDERATED_TOKEN_FILE, AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_AUTHORITY_HOST, AZURE_POD_IDENTITY_AUTHORITY_HOST, DEFAULT_IDENTITY_CLIENT_ID, ProgramData, AZURE_CLIENT_SECRET, AZURE_CLIENT_CERTIFICATE_PATH, AZURE_CLIENT_CERTIFICATE_PASSWORD, AZURE_CLIENT_SEND_CERTIFICATE_CHAIN, AZURE_ADDITIONALLY_ALLOWED_TENANTS, AZURE_TOKEN_CREDENTIALS
aws AWS_WEB_IDENTITY_TOKEN_FILE, AWS_ROLE_ARN, AWS_ROLE_SESSION_NAME, AWS_CONTAINER_CREDENTIALS_RELATIVE_URI, AWS_CONTAINER_CREDENTIALS_FULL_URI, AWS_CONTAINER_AUTHORIZATION_TOKEN, AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE, AWS_REGION, AWS_DEFAULT_REGION, AWS_EC2_METADATA_DISABLED, AWS_EC2_METADATA_SERVICE_ENDPOINT
gcp GOOGLE_APPLICATION_CREDENTIALS, GCE_METADATA_HOST, GCE_METADATA_IP, GOOGLE_CLOUD_PROJECT

Some of these are secrets, and a declaring package receives them:

  • IDENTITY_HEADER, MSI_SECRET and AWS_CONTAINER_AUTHORIZATION_TOKEN unlock a token endpoint that only answers on the host itself.
  • AZURE_CLIENT_SECRET (or the certificate) is a service principal configured through the environment, so that setup works for the connector as it does for builtin connectors. It is a credential that works from anywhere.
  • GOOGLE_APPLICATION_CREDENTIALS may name a service-account key file rather than a federation config.

Other static credentials in the environment (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AZURE_STORAGE_KEY, AZURE_USERNAME/AZURE_PASSWORD) and profile selectors such as AWS_PROFILE are never forwarded: pass them in connections.yml as ${VAR}. A credential that needs no variable at all, a VM’s metadata endpoint or a login file under HOME (az login, ~/.aws, gcloud ADC), works with any pz version. Installing a package is the trust decision: only install connectors you trust with the identities on the host. The groups each published connector declares are listed under External connectors.

connections.yml may reference any variable with ${NAME}. pz substitutes the value at load time and fails with PZ0103 when the variable is unset. Values are redacted from logs and artifacts. See Secure connection config.

Write a literal ${ (not a reference) as $${: $${NAME} substitutes to the literal text ${NAME} rather than being read as a reference.

A quoted value stays a string no matter what it substitutes to — port: "${PGPORT}" is always text. An unquoted value is typed after substitution, and only when typing it loses nothing: ${PGPORT} resolving to 5432 becomes the integer 5432, and ${FLAG} resolving to true becomes the boolean true, but a substituted value like 0123456, 1.10, or 1e5 stays a string, since re-typing it would change the characters a connector sees. A text option that receives an all-digit substituted value is refused rather than silently coerced — quote it so it stays text.

${VAR} references under a connection’s entities: block are never interpolated — only a connection’s own top-level config is substituted. A reference left under entities: reaches the connector as literal, un-substituted text, and is flagged with a PZ0133 warning at load time; move the value to the connection’s top-level config instead.