Configuration

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.

How settings are read

  • 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.

Process

VariableDefaultNotes
APP_ENVdevelopmentdevelopment or production. Production enforces a strong BETTER_AUTH_SECRET. The charts and Compose set production.
WARDN_ROLESapi,worker,controller,gatewayComma-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.

HTTP

VariableDefaultNotes
HTTP_ADDR:8080Listen address of the public API.
WARDN_INTERNAL_ADDRunsetWhen set, serves /api/v1/internal/* on its own listener so a network policy can admit only operators.
WARDN_PUBLIC_URLunsetThe 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_ADDRunsetWhen 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_ORIGINShttp://localhost:3002Comma-separated origins the browser may call the API from.

Gateway

See The gateway.

VariableDefaultNotes
WARDN_GATEWAY_ADDR:8443Listen address of the gateway role, where operators connect over mutual TLS. Operators only ever dial out to it.
WARDN_TEST_CALLBACK_URLunsetWhere 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_IMAGEghcr.io/future-pirate-king/test-agent:latestThe 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_ADDRunsetHow 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_FILEunsetServer 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_FILEunsetPrivate key of the server certificate, PEM. Set together with WARDN_GATEWAY_TLS_CERT_FILE.
WARDN_GATEWAY_TLS_HOSTSlocalhost,127.0.0.1Comma-separated names and addresses a generated gateway certificate is valid for.
WARDN_GATEWAY_API_ADDRunsetWhere 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_TTL15sHow 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.

Timelines

VariableDefaultNotes
WARDN_TIMELINE_RETENTION720hHow 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.

Postgres

See Postgres.

VariableDefaultNotes
POSTGRES_URLunsetRequired. Secret. Connection URL of the database.
POSTGRES_MAX_CONNS20Maximum connections in the pool. Count it per process when sizing the database.
POSTGRES_DIRECT_URLunsetSecret. 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_CONNS10Maximum connections in the direct pool. Only used when POSTGRES_DIRECT_URL is set.

Authentication

VariableDefaultNotes
BETTER_AUTH_SECRETunsetSecret. 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_NAMEbetter-auth.session_tokenName of the session cookie issued by Better Auth.
WARDN_SIGNUPinviteHow 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_DOMAINSunsetComma-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_ADMINSunsetComma-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:

VariableNotes
GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRETSecret (the second). The GitHub sign-in button appears only when both are set.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRETSecret (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.

Providers

VariableDefaultNotes
WARDN_WORK_PROVIDERpgqueueWork queue provider.
WARDN_WORK_CONCURRENCY8How many jobs one process runs at once: renders, releases, agent jobs and the rest.
WARDN_WORK_ORG_CONCURRENCY0How 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_CLASSESdeploy,render,agent,sweepComma-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_PROVIDERpostgresObject 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_PROVIDERageSecret store provider.
WARDN_PUBSUB_PROVIDERpostgresPubSub provider.
WARDN_CACHE_PROVIDERmemoryCache provider.
WARDN_GIT_PROVIDERgenericGit provider. Needs the secret store, which holds repository credentials.
WARDN_GIT_ALLOW_INSECURE_HTTPfalsetrue lets the generic git provider read http:// URLs. Development only: the repository and any token travel unencrypted.
WARDN_GIT_ALLOW_LOOPBACKfalsetrue 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_PROVIDERociContainer registry provider. Needs the secret store, which holds registry credentials.
WARDN_SECRET_MASTER_KEYunsetSecret. Wraps the per-organization keys of the secret store. Unset, the secret store stays closed.

Object storage

See Object storage.

VariableDefaultNotes
WARDN_OBJECTSTORE_S3_BUCKETunsetThe S3 bucket of the s3 object store, and of wardn objectstore move --to s3. Required with WARDN_OBJECTSTORE_PROVIDER=s3.
WARDN_OBJECTSTORE_S3_PREFIXunsetA prefix put before every key, so several installs can share a bucket.
WARDN_OBJECTSTORE_S3_REGIONunsetThe bucket's region. Unset, the AWS SDK's default (AWS_REGION, the shared config).
WARDN_OBJECTSTORE_S3_ENDPOINTunsetA service other than AWS that speaks the S3 API, such as MinIO, as an http(s) URL.
WARDN_OBJECTSTORE_S3_PATH_STYLEfalsetrue names the bucket in the path instead of the host name, as MinIO and most S3-compatible services need.
WARDN_OBJECTSTORE_S3_ACCESS_KEY_IDunsetA 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_KEYunsetSecret. The secret of the static access key.
WARDN_OBJECTSTORE_SWEEP_EVERY1hHow 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_GRACE24hHow 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_BUCKETunsetThe Cloud Storage bucket of the gcs object store, and of wardn objectstore move --to gcs. Required with WARDN_OBJECTSTORE_PROVIDER=gcs.
WARDN_OBJECTSTORE_GCS_PREFIXunsetA prefix put before every object name, so several installs can share a bucket.
WARDN_OBJECTSTORE_GCS_ENDPOINTunsetAn emulator's JSON API address, such as http://localhost:4443/storage/v1/, reached without credentials. Development and tests only.
WARDN_OBJECTSTORE_GCS_CREDENTIALS_FILEunsetA service account key file. Unset, Application Default Credentials are used (Workload Identity on GKE).

Vault

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.

VariableDefaultNotes
WARDN_VAULT_ADDRunsetVault'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_TOKENunsetSecret. 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_FILEunsetA file holding the Vault token, read on each use so a rotated file is picked up.
WARDN_VAULT_K8S_ROLEunsetA 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_MOUNTkubernetesWhere the Kubernetes auth method is mounted in Vault.
WARDN_VAULT_K8S_JWT_FILE/var/run/secrets/kubernetes.io/serviceaccount/tokenThe service account token file used for Kubernetes authentication.
WARDN_VAULT_NAMESPACEunsetThe Vault Enterprise namespace, if any.
WARDN_VAULT_KV_MOUNTunsetThe 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_VERSION2The key-value engine version, 1 or 2. Used only with WARDN_VAULT_KV_MOUNT.
WARDN_VAULT_CA_FILEunsetA PEM file of extra root certificates, for a Vault with a private CA.
WARDN_VAULT_ALLOW_INSECURE_HTTPfalsetrue permits an http:// Vault address. Development only: the token and every reply travel unencrypted.
WARDN_VAULT_TIMEOUT10sHow long one call to Vault may take. At least 1s.
WARDN_VAULT_RECHECK_INTERVAL0How 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.

Secret stores and registries

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.

VariableDefaultMeaning
WARDN_CONNECTIONS_K8S_TOKEN_FILEA 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_ADDRESSESfalsetrue 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_HTTPfalsetrue permits an http:// Vault or OpenBao address. Development only.

In the charts:

connections:
  kubernetesToken: {audience: vault, expirationSeconds: 3600}
  blockPrivateAddresses: false
  allowInsecureHTTP: false

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/...).

Agents

VariableDefaultNotes
WARDN_SANDBOX_PROVIDERnoneWhere 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_URLunsetThe 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_ADDRESS127.0.0.1:17670The OpenShell gateway's host:port.
WARDN_SANDBOX_OPENSHELL_TLS_DIRunsetA 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_SHIMunsetThe path of the shim binary the Docker sandbox copies into every box. Required for the docker sandbox.
WARDN_SANDBOX_DOCKER_STATE_DIRunsetA directory where the Docker sandbox keeps each box's socket and policy. Required for the docker sandbox; keep it short.
WARDN_SANDBOX_DOCKER_HOST_OVERRIDESunsetNames 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_MODELclaude-sonnet-5-5The model a job asks its agent's runtime for. The customer's own key pays for it.
WARDN_AGENT_MODEL_URLunsetA 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_TIMEOUT10mHow 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_ORG0How 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_SANDBOXES0The 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.

See Agent jobs and runtimes for what each does.

GitHub

See GitHub App.

VariableDefaultNotes
WARDN_GITHUB_APP_IDunsetThe 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_SLUGunsetThe 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_KEYunsetSecret. 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_FILEunsetA file that holds the App's PEM private key. Set this or the key itself.
WARDN_GITHUB_WEBHOOK_SECRETunsetSecret. 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_URLhttps://api.github.comThe GitHub REST API root. Set it for GitHub Enterprise Server.
WARDN_GITHUB_WEB_URLhttps://github.comGitHub's web address, which repository URLs and the install link are under. Set it for GitHub Enterprise Server.

Delivery

VariableDefaultNotes
WARDN_SYNC_POLL_INTERVAL1mHow 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_TIMEOUT10mHow long a cluster's operator has to answer an apply before Wardn marks the apply failed. At least 10s.
WARDN_RENDER_ALLOW_UNISOLATEDfalsetrue 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).

Telemetry

See Telemetry.

VariableDefaultNotes
WARDN_TELEMETRYfalsetrue 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_URLunsetWhere the usage report is sent when telemetry is on. With no URL nothing is sent.

Tracing

See Monitoring.

VariableDefaultNotes
WARDN_TRACES_ENDPOINTunsetAn 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_SAMPLE0.1The share of new traces kept, from 0 to 1. A trace a caller already sampled stays sampled.

Logging

VariableDefaultNotes
LOG_LEVELinfoLog level: debug, info, warn or error.
LOG_FORMATjsonjson or text. Defaults to text when APP_ENV is development.

Next

On this page