Environment variables
Configure each runtime without passing provider credentials and production secrets around by hand.
What Crucible manages
Crucible generates or resolves the platform values required by Auth, model access, databases, workers, and managed integrations. Add only the application-specific values; Crucible assembles the right configuration for each workspace, deployment, and local machine before it starts.
- Project variables: Shared defaults in the project's Project Env Vars tab. Every workspace, deployment, and local setup inherits them.
- Deployment variables: Set in a deployment's Deployment Env Vars tab. They override project defaults for that deployment only.
- Managed variables: Generated by Crucible and its integrations. They appear alongside your variables as read-only rows.
A deployment's Deployment Env Vars tab lists all three in one table. The Provenance column shows Deployment or Project for your variables, and Standard API integration or Terraform for managed ones. A lite deployment has no Terraform, so its other managed variables show Crucible. Filter narrows the table by provenance or type. Project rows link to the Project Env Vars tab, where they are edited.
AUTH_SERVICE_API_KEYandAUTH_SERVICE_API_URLlet the backend call the right Auth Service for its environment.LLM_GATEWAY_API_KEYandLLM_GATEWAY_ENDPOINTlet the project call models through the gateway instead of storing provider keys.TEMPORAL_*variables wire up worker execution. They exist on full deployments only, since they back durable cloud resources.DATABASE_URLandREDIS_PASSWORDare infrastructure secrets that the full deployment's Terraform generates;REDIS_PASSWORDexists only when agents are enabled.VITE_*values are frontend build-time config, not secrets. They tell the browser which API and auth project to talk to.ADMIN_EMAIL_ALLOWLISTgives new workspaces and deployments a snapshot of the project's admins at creation. Later membership changes do not update existing environments, and the value is empty when there are no admins.- Integration keys are minted per target: each deployment, workspace, and local setup gets its own credentials.
Rules that matter
- Secrets stay on the backend: Frontend keys must start with
VITE_, and only backend values can be secret. Provider keys stay server-side or behind managed integrations. - Changing a full deployment is a release: Adds, edits and deletes on the Deployment Env Vars tab are staged in the table as Added, Changed or Removed, each with Undo, and nothing is sent until you choose Save 1 change or Save N changes; the button counts what is staged. One save sends every staged change as one update that applies infrastructure and, for frontend values, rebuilds the frontend. A save that changes only notes deploys nothing. Staged changes survive switching tabs but not a page reload. The Status column shows Queued, Deploying, or Removing beside affected variables, including new variables that are not deployed yet. Failed updates show Failed; confirmed values remain visible until the update finishes.
- Local development is already wired: Use Work locally on the project overview to copy the values resolved for you instead of rebuilding the environment by hand.
- Prefer managed keys: With the LLM Gateway and other managed integrations, you never handle provider credentials at all.
A full deployment variable change runs as a workflow:
- Saving the staged changes records one
EnvVarUpdateand starts oneUpdateEnvVarsWorkflowfor that deployment. The change shows as Queued, then Deploying or Removing while the workflow applies it. A failed workflow shows Failed. - Backend, frontend, and secret changes are written to the environment's
terraform.auto.tfvars, then an infrastructure release applies them. On Kubernetes deployments, the delivery pipeline rebuilds the frontend whenVITE_*values changed, since they are baked into the bundle. - New secret values become new versions in the provider's secret store, and older versions are disabled.
- Crucible pulls the applied values back so the Deployment Env Vars tab matches the running deployment.
Lite deployment and workspace changes update the managed runtime directly. Local values resolve from project variables, then managed integration values, then fixed local-runtime defaults. Existing personal integration secrets are reused instead of minting new upstream keys.