Every environment variable the Wardn server reads, with its default and meaning.
This list is generated from the server's own settings, so it names every variable the server reads and nothing else. The Helm charts and the Compose file render these variables and no others: Helm chart values shows which value sets which variable.
Variables marked Secret must come from a secret store or a Kubernetes Secret, never from a values file.
Only from the environment. A .env file in the server's working directory is read too, for local development; a variable set in the environment wins over the file.
Checked before start. The server checks every setting first and, if anything is wrong, stops with a list of every problem rather than starting half-configured.
Durations use the forms 90s, 15m, 720h. Several have a minimum, given in the notes.
On and off settings accept true, 1, on or yes, and false, 0, off or no.
Lists are comma separated. Spaces around items are ignored.
Empty is unset. A variable set to an empty value takes its default.
development or production. Production enforces a strong BETTER_AUTH_SECRET. The charts and Compose set production.
WARDN_ROLES
api,worker,controller,gateway
Comma-separated roles this process runs: api, worker, controller, gateway. Left unset, a process with no WARDN_SECRET_MASTER_KEY starts without the gateway and logs a warning; named explicitly, the gateway needs the key or the process stops. gateway alone is a supported shape: the process holds operator connections and, when WARDN_GATEWAY_API_ADDR is set, serves the terminal and log requests other processes pass to it on HTTP_ADDR. Its /readyz waits for the listener operators dial.
When set, serves /api/v1/internal/* on its own listener so a network policy can admit only operators.
WARDN_PUBLIC_URL
unset
The web app's public address, such as https://wardn.example.com. Wardn uses it for the links it puts outside itself, such as the Details link on a pull request's preview status. Unset, it posts no such links. Must be an http:// or https:// URL with no query or fragment.
WARDN_OPS_ADDR
unset
When set, serves /metrics, /livez, /readyz and /debug/pprof on this address in every process role. Keep it off the public network. See Monitoring.
CORS_ALLOWED_ORIGINS
http://localhost:3002
Comma-separated origins the browser may call the API from.
Listen address of the gateway role, where operators connect over mutual TLS. Operators only ever dial out to it.
WARDN_TEST_CALLBACK_URL
unset
Where a test pod reports its run, as the pod reaches this server, such as https://wardn.example.com. Unset, a test run on a cluster cannot start.
WARDN_TEST_AGENT_IMAGE
ghcr.io/future-pirate-king/test-agent:latest
The image that holds the test agent at /wardn-test-agent. A test pod copies it in before the suite's own image runs.
WARDN_GATEWAY_ADVERTISE_ADDR
unset
How operators reach this process, such as gateway-1.example.com:8443. Handed to a cluster that connected to the wrong gateway. Unset, the listen address is used.
WARDN_GATEWAY_TLS_CERT_FILE
unset
Server certificate for the gateway listener, PEM, such as a Let's Encrypt one. It is read again within a minute of a change on disk, so a renewal needs no restart. Unset, the gateway signs one from the Wardn CA for WARDN_GATEWAY_TLS_HOSTS and renews it a month before it expires; operators trust it through the CA pin in their join token.
WARDN_GATEWAY_TLS_KEY_FILE
unset
Private key of the server certificate, PEM. Set together with WARDN_GATEWAY_TLS_CERT_FILE.
WARDN_GATEWAY_TLS_HOSTS
localhost,127.0.0.1
Comma-separated names and addresses a generated gateway certificate is valid for.
WARDN_GATEWAY_API_ADDR
unset
Where other Wardn processes reach this process's API, such as 10.0.3.7:8080. A terminal or log stream that reaches a process not holding the cluster's operator is passed, unchanged, to the one that does; that process checks the request again. Unset, such a request is refused. A process that runs the gateway role without the api role listens on HTTP_ADDR for these requests and no others, when this is set. The charts set the pod's IP.
WARDN_GATEWAY_LEASE_TTL
15s
How long a cluster stays with a gateway that stopped renewing its lease. After a gateway is killed, its clusters move to another within this time. At least 3s.
How long the per-cluster and per-deployment timelines (restarts, crash loops, OOM kills, pods and nodes coming and going) are kept. Old months are dropped whole, so an entry may live up to a month longer. Activity is not affected. At least 24h.
Maximum connections in the pool. Count it per process when sizing the database.
POSTGRES_DIRECT_URL
unset
Secret. Set when POSTGRES_URL points at a connection pooler such as PgBouncer in transaction mode. Used for LISTEN, leader leases, migrations and the background providers, which need a session. Unset, POSTGRES_URL serves everything.
POSTGRES_DIRECT_MAX_CONNS
10
Maximum connections in the direct pool. Only used when POSTGRES_DIRECT_URL is set.
Secret. Shared with the web app that hosts Better Auth. Required for the api role. With APP_ENV=production it must be at least 32 characters.
SESSION_COOKIE_NAME
better-auth.session_token
Name of the session cookie issued by Better Auth.
WARDN_SIGNUP
invite
How people create accounts: invite (only through an invitation), open (anyone in WARDN_SIGNUP_DOMAINS, who gets a personal organization) or sso (only through an organization's single sign-on; password and social sign-up are off). The web app asks the server for every sign-up, so it is enforced for the API and for GitHub and Google too, not only on the page. See Sign-up modes.
WARDN_SIGNUP_DOMAINS
unset
Comma-separated email domains allowed to sign up without an invitation, such as example.com. Unset allows any. Invitations are not limited by it.
WARDN_PLATFORM_ADMINS
unset
Comma-separated emails of the people who may create organizations, once their address is verified. Unset, organizations are made only by wardn admin create.
The web app, not the server, reads the social sign-in settings, because they configure Better Auth itself. Set them on the web container:
Variable
Notes
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
Secret (the second). The GitHub sign-in button appears only when both are set.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
Secret (the second). The Google sign-in button appears only when both are set.
The server and the web app must hold the same BETTER_AUTH_SECRET. The server also uses it to check the sign-up and sign-in questions the web app asks it.
How many jobs one process runs at once: renders, releases, agent jobs and the rest.
WARDN_WORK_ORG_CONCURRENCY
0
How many jobs one organization may have running at once across every process, so one organization cannot take every slot. 0 is no cap. Work that undoes harm (rollbacks, restores, hotfixes) is claimed first whatever this is.
WARDN_WORK_CLASSES
deploy,render,agent,sweep
Comma-separated kinds of work this process claims: deploy (releases, promotions, rollbacks, restores, webhooks, the outbox and anything else), render, agent (agent jobs and agent chat) and sweep (housekeeping). Split them across worker pools so a spike of renders or agent jobs cannot hold up delivery. Every kind needs at least one process that claims it, or its work waits; deploy above all.
WARDN_OBJECTSTORE_PROVIDER
postgres
Object store provider: where rendered resources and other blobs are kept. postgres keeps them in the core database; s3 and gcs keep their bytes in a bucket (see Object storage) and their index in the database.
WARDN_SECRETSTORE_PROVIDER
age
Secret store provider.
WARDN_PUBSUB_PROVIDER
postgres
PubSub provider.
WARDN_CACHE_PROVIDER
memory
Cache provider.
WARDN_GIT_PROVIDER
generic
Git provider. Needs the secret store, which holds repository credentials.
WARDN_GIT_ALLOW_INSECURE_HTTP
false
true lets the generic git provider read http:// URLs. Development only: the repository and any token travel unencrypted.
WARDN_GIT_ALLOW_LOOPBACK
false
true lets a git host an organization connects be on this machine (loopback). Development only: it lets a connection reach the server's own services. Not implied by WARDN_GIT_ALLOW_INSECURE_HTTP.
WARDN_REGISTRY_PROVIDER
oci
Container registry provider. Needs the secret store, which holds registry credentials.
WARDN_SECRET_MASTER_KEY
unset
Secret. Wraps the per-organization keys of the secret store. Unset, the secret store stays closed.
The S3 bucket of the s3 object store, and of wardn objectstore move --to s3. Required with WARDN_OBJECTSTORE_PROVIDER=s3.
WARDN_OBJECTSTORE_S3_PREFIX
unset
A prefix put before every key, so several installs can share a bucket.
WARDN_OBJECTSTORE_S3_REGION
unset
The bucket's region. Unset, the AWS SDK's default (AWS_REGION, the shared config).
WARDN_OBJECTSTORE_S3_ENDPOINT
unset
A service other than AWS that speaks the S3 API, such as MinIO, as an http(s) URL.
WARDN_OBJECTSTORE_S3_PATH_STYLE
false
true names the bucket in the path instead of the host name, as MinIO and most S3-compatible services need.
WARDN_OBJECTSTORE_S3_ACCESS_KEY_ID
unset
A static access key, set with WARDN_OBJECTSTORE_S3_SECRET_ACCESS_KEY. Unset, the AWS SDK's default chain is used: IRSA or EKS Pod Identity, the instance role, or the shared files.
WARDN_OBJECTSTORE_S3_SECRET_ACCESS_KEY
unset
Secret. The secret of the static access key.
WARDN_OBJECTSTORE_SWEEP_EVERY
1h
How often the leader plans a sweep of blobs nothing holds any more: replaced avatars, files of ended agent jobs, recordings past their retention, content of deleted snapshots. Each organization's and person's blobs are swept by a job on the work queue, a bounded batch at a time. 0 turns the sweep off.
WARDN_OBJECTSTORE_SWEEP_GRACE
24h
How old a blob nothing holds must be before a sweep removes it, at least 1h. A blob stored just before whatever holds it is recorded, such as an upload in progress, is never removed inside this time.
WARDN_OBJECTSTORE_GCS_BUCKET
unset
The Cloud Storage bucket of the gcs object store, and of wardn objectstore move --to gcs. Required with WARDN_OBJECTSTORE_PROVIDER=gcs.
WARDN_OBJECTSTORE_GCS_PREFIX
unset
A prefix put before every object name, so several installs can share a bucket.
WARDN_OBJECTSTORE_GCS_ENDPOINT
unset
An emulator's JSON API address, such as http://localhost:4443/storage/v1/, reached without credentials. Development and tests only.
WARDN_OBJECTSTORE_GCS_CREDENTIALS_FILE
unset
A service account key file. Unset, Application Default Credentials are used (Workload Identity on GKE).
These settings are built but not released. In 0.1.0, Vault secret references are a known limit; Kubernetes and External Secrets Operator references work. See the Changelog.
Variable
Default
Notes
WARDN_VAULT_ADDR
unset
Vault's address, such as https://vault.example.com:8200. Unset, the Vault integration is off and deployments' Vault references report that no Vault is configured; the other WARDN_VAULT_ settings must then be unset. Wardn reads a secret only to fingerprint it.
WARDN_VAULT_TOKEN
unset
Secret. A Vault token with read access to the referenced paths. Set exactly one of this, WARDN_VAULT_TOKEN_FILE and WARDN_VAULT_K8S_ROLE.
WARDN_VAULT_TOKEN_FILE
unset
A file holding the Vault token, read on each use so a rotated file is picked up.
WARDN_VAULT_K8S_ROLE
unset
A Vault role for Kubernetes authentication: the server logs in with its pod's service account token and renews the login when it expires.
WARDN_VAULT_K8S_AUTH_MOUNT
kubernetes
Where the Kubernetes auth method is mounted in Vault.
The service account token file used for Kubernetes authentication.
WARDN_VAULT_NAMESPACE
unset
The Vault Enterprise namespace, if any.
WARDN_VAULT_KV_MOUNT
unset
The key-value engine's mount, such as secret. When set, a reference's locator is the path inside it and Wardn adds data/ for version 2. Unset, a locator is the full API path, such as secret/data/app/db.
WARDN_VAULT_KV_VERSION
2
The key-value engine version, 1 or 2. Used only with WARDN_VAULT_KV_MOUNT.
WARDN_VAULT_CA_FILE
unset
A PEM file of extra root certificates, for a Vault with a private CA.
WARDN_VAULT_ALLOW_INSECURE_HTTP
false
true permits an http:// Vault address. Development only: the token and every reply travel unencrypted.
WARDN_VAULT_TIMEOUT
10s
How long one call to Vault may take. At least 1s.
WARDN_VAULT_RECHECK_INTERVAL
0
How often the controller looks again at every Vault reference, such as 15m. 0 turns it off; references are then checked on request and by a restore's preflight. Otherwise at least 1m.
These limit the secret stores and registries organizations add themselves, whose addresses they type. Wardn always refuses to connect them to loopback, link-local and cloud metadata addresses, and never takes a proxy from the environment for them.
Variable
Default
Meaning
WARDN_CONNECTIONS_K8S_TOKEN_FILE
A projected service account token, with an audience of its own such as vault, that a store's Kubernetes sign-in sends to Vault or OpenBao. Unset, stores cannot use Kubernetes sign-in: the server's own service account token is never sent to an address an organization typed. The charts mount one with connections.kubernetesToken.audience.
WARDN_CONNECTIONS_BLOCK_PRIVATE_ADDRESSES
false
true also refuses private addresses (RFC 1918 and unique local IPv6), for an install whose organizations do not share its network. Set it on every hosted or multi-tenant install: otherwise an address an organization types, for an outbound webhook among others, can reach the private addresses of the network Wardn runs on. The wardn-scale chart sets it.
WARDN_CONNECTIONS_ALLOW_INSECURE_HTTP
false
true permits an http:// Vault or OpenBao address. Development only.
The token is mounted on the server's roles as a projected volume, so a Vault that receives it cannot use it against the cluster's API. Give the Vault's Kubernetes auth role that audience (audience=vault on vault write auth/kubernetes/role/...).
Where agent jobs run: openshell (the default for production, through its gateway), docker (development and tests) or none, which runs no job. Triage and the reads for sign-off start no job without one.
WARDN_MCP_URL
unset
The address a sandbox reaches Wardn's MCP endpoint at, such as https://wardn.example.com/mcp. It is the one endpoint besides the model that a box may reach. Required when a sandbox provider is set.
WARDN_SANDBOX_OPENSHELL_ADDRESS
127.0.0.1:17670
The OpenShell gateway's host:port.
WARDN_SANDBOX_OPENSHELL_TLS_DIR
unset
A directory holding the client certificates for the OpenShell gateway: ca.crt, client/tls.crt and client/tls.key. Required for the openshell sandbox.
WARDN_SANDBOX_DOCKER_SHIM
unset
The path of the shim binary the Docker sandbox copies into every box. Required for the docker sandbox.
WARDN_SANDBOX_DOCKER_STATE_DIR
unset
A directory where the Docker sandbox keeps each box's socket and policy. Required for the docker sandbox; keep it short.
WARDN_SANDBOX_DOCKER_HOST_OVERRIDES
unset
Names the Docker sandbox's policy proxy resolves to an address, like a hosts file: mcp.wardn.internal=127.0.0.1,other=10.0.0.5. Development only: it lets a box reach a name on a developer machine, which the safeguards would otherwise refuse as private.
WARDN_AGENT_MODEL
claude-sonnet-5-5
The model a job asks its agent's runtime for. The customer's own key pays for it.
WARDN_AGENT_MODEL_URL
unset
A gateway every agent runtime reaches its model through instead of its vendor, such as https://models.example.com (no path). The agent's model key is attached for that host. Unset, each runtime reaches its own vendor.
WARDN_AGENT_JOB_TIMEOUT
10m
How long one attempt of an agent job may run, from 1m to 6h. A job that runs longer is stopped and fails as timed out.
WARDN_AGENT_JOBS_PER_ORG
0
How many agent jobs one organization may have running at once, when its plan's quota.agent_jobs entitlement sets no cap. More wait in the queue, they are not refused. 0 is no cap, which suits a self-hosted install; the hosted service sets 5.
WARDN_AGENT_MAX_LIVE_SANDBOXES
0
The most sandboxes one organization may have live at once, a ceiling its entitlements cannot raise. A running agent job holds one, so jobs past it wait in the queue. 0 is no cap, which suits a self-hosted install; the hosted service sets 20.
The numeric id of the GitHub App that organizations install to connect their repositories. Unset, the GitHub integration is off and the other WARDN_GITHUB_ settings must be unset too.
WARDN_GITHUB_APP_SLUG
unset
The App's URL name, as in github.com/apps/<slug>. Used to build the install link. Required with the App id.
WARDN_GITHUB_APP_PRIVATE_KEY
unset
Secret. The App's PEM private key, with line breaks written as \n if the value must be on one line. Set this or the key file.
WARDN_GITHUB_APP_PRIVATE_KEY_FILE
unset
A file that holds the App's PEM private key. Set this or the key itself.
WARDN_GITHUB_WEBHOOK_SECRET
unset
Secret. The webhook secret set on the App. Wardn refuses any delivery whose X-Hub-Signature-256 does not match. Required with the App id.
WARDN_GITHUB_API_URL
https://api.github.com
The GitHub REST API root. Set it for GitHub Enterprise Server.
WARDN_GITHUB_WEB_URL
https://github.com
GitHub's web address, which repository URLs and the install link are under. Set it for GitHub Enterprise Server.
How often a branch that a deployment tracks is looked at, in case its push webhook never came. Sources without a webhook rely on it. At least 5s.
WARDN_APPLY_TIMEOUT
10m
How long a cluster's operator has to answer an apply before Wardn marks the apply failed. At least 10s.
WARDN_RENDER_ALLOW_UNISOLATED
false
true lets renders run without the sandbox's namespaces, for a host that cannot create them. Development only: nothing then keeps a render off the network. In a cluster, fix the cause instead: when /api/v1/ready reports render_sandbox as not ok, set the chart's server.seccompProfile (worker.seccompProfile on wardn-scale).
true lets this install send the usage report described in Telemetry: counts and nothing else. Off unless you turn it on, and an install with it off makes no outbound call for it.
WARDN_TELEMETRY_URL
unset
Where the usage report is sent when telemetry is on. With no URL nothing is sent.
An OTLP/HTTP collector, such as http://localhost:4318. Tracing is off until this is set. Requests, database transactions and background jobs become spans, with the organization id as an attribute.
WARDN_TRACES_SAMPLE
0.1
The share of new traces kept, from 0 to 1. A trace a caller already sampled stays sampled.