Skip to content

Environment variables

Environment variables are deployment inputs, not source code. Keep .env files local or in the approved secret manager; never commit credentials to Git.

Local configuration

Start from the checked-in template:

bash
cp .env.example .env
chmod 600 .env

The installer creates a local .env when needed and preserves an existing file. Inspect the source repository's .env.example for the exact current variable names; the set changes as services move behind OpenVTC seams.

Configuration categories

CategoryExamplesHandling
RuntimeNODE_ENV, ports, public originnon-secret deployment config
DatabasePostgreSQL URL, migration settingssecret in shared environments
Gatewaypolicy and credential broker settingssecret where credentials are involved
Sandboxprovider endpoint, image, session settingsenvironment-specific
OpenVTCRP configuration, mediator/TSP endpoints, wallet referencestrust-plane owned; do not invent local authority
Observabilitylog level, trace/export settingsavoid sensitive payloads

Secret handling rules

  • Do not print secret values during setup or CI.
  • Do not put API keys in URLs, screenshots, tickets, or public documentation.
  • Use separate values for local, staging, and production.
  • Rotate credentials after accidental exposure.
  • Prefer short-lived credentials and workload identity on Azure.

Open-source workspaces for safer agentic work · built from ONECli