Skip to content

Environment Variables ​

Every configuration key the .NET services, CLI and web apps read, with where it is read. The template with local defaults is .env.example. cadence check warns when code reads an environment variable that .env.example does not list, and when .env.example lists a key this page does not.

ASP.NET Core services read these through IConfiguration, so environment variables, appsettings*.json and command-line arguments all work; __ in an environment variable name maps to : (for example ConnectionStrings__cadence is ConnectionStrings:cadence). CLI and library code that calls Environment.GetEnvironmentVariable reads the process environment only.

"Required" means the service (or tool) fails with an error naming the key when it is unset. There are no built-in fallback credentials in any environment, Development included (ADR-2260).

Hosting ​

KeyRead byDefaultRequired
ASPNETCORE_ENVIRONMENTevery service (ASP.NET Core host); packages/cli/src/Services/DatabaseResetService.cs:123Productionno
CADENCE_ENVpackages/cli/src/Services/DatabaseResetService.cs:122 (refuses db reset in Production)Developmentno
ENVIRONMENTpackages/cli/src/Services/DatabaseResetService.cs:124Developmentno
CADENCE_TRUSTED_PROXIESevery service (packages/telemetry/src/CadenceHttpHardening.cs, ADR-2491)none; only loopback is trustedset it behind a proxy. Comma-separated IP addresses or CIDR ranges of the front proxy and gateway. X-Forwarded-For and X-Forwarded-Proto from any other sender are ignored, and an entry that is not an address or range fails startup
AppHost__Profileapps/apphost/src/Program.cs (Aspire AppHost only)fullno; full runs every service, core runs the gateway, execution, kernel and web only (AppHost README). Any other value stops the AppHost
AppHost__OidcAuthorityapps/apphost/src/Program.cs (Aspire AppHost only)none; the AppHost runs a Keycloak containerno; an existing issuer URL ending in /realms/<realm> replaces the Keycloak container
ConnectionStrings__cadence (AppHost)apps/apphost/src/Program.csnone; the AppHost runs a PostgreSQL containerno; an existing database replaces the PostgreSQL container and is passed to every service

Database ​

All services share the cadence database, each in its own schema; see OPERATIONAL_DATABASE.md.

KeyRead byDefaultRequired
ConnectionStrings__cadencepackages/database/src/CadenceDatabaseExtensions.cs (ResolvePostgresConnectionString), used by every service with a DbContextnoneyes (or POSTGRES_CONNECTION_STRING)
POSTGRES_CONNECTION_STRINGsame resolver, after ConnectionStrings__cadence; every design-time *DbContextFactory.cs (dotnet ef, via ResolveDesignTimeConnectionString or -- --connection); packages/cli/src/Services/DatabaseResetService.csnoneyes (or ConnectionStrings__cadence); dotnet ef and db reset need it
Database__MigrateOnStartuppackages/database/src/CadenceMigrationHostedService.cs (every service with a DbContext)falseno; applies migrations before serving
Database__MigrateOnlysamefalseno; applies migrations and exits 0 (deployment job)
DATABASE_URLpackages/cli/src/Services/DatabaseResetService.cs:174 (accepts postgresql+asyncpg:// URLs)noneno

Execution service ​

KeyRead byDefaultRequired
DemographicsEncryption__KeyBase64apps/execution/src/Program.cs:105 (DemographicsEncryptionOptions)noneyes; Base64 of a 16, 24 or 32 byte AES key (openssl rand -base64 32). The service refuses to start without a valid key. Under the Aspire AppHost, set it as the demographics-encryption-key parameter
RANDOMIZATION_ALLOCATION_KEYapps/execution/src/Program.cs (AllocationProtectionOptions)noneyes; Base64 of a 32-byte key (openssl rand -base64 32), different from every other key. Encrypts randomisation list slots, allocations and kit arm labels (#5607, ADR-2640); the service refuses to start without a valid key. Under the Aspire AppHost, set it as the randomization-allocation-key parameter

Kernel API host ​

KeyRead byDefaultRequired
Kernel__DevelopmentTenant__Codeapps/kernel-api/src/DevelopmentTenantBootstrap.cs (ADR-2542)noneno; Development only. Provisions the kernel tenant with this code on start, unless an active one exists. docker compose and the AppHost set cadence-local. The host refuses to start with it in any other environment
Kernel__DevelopmentTenant__Nameapps/kernel-api/src/DevelopmentTenantBootstrap.csLocal development (<code>)no
Kernel__DevelopmentTenant__DemoDataapps/kernel-api/src/DevelopmentTenantBootstrap.cs (ADR-2543)falseno; read only with Kernel__DevelopmentTenant__Code. Seeds the demo study CADENCE-101 and grants the local realm's users. docker compose and the AppHost set true
KeycloakAdmin__BaseUrlapps/kernel-api/src/Onboarding/KeycloakOnboardingClient.csnoneno; base URL of Keycloak for Admin REST writeback during POST /api/v1/kernel/onboarding/trial (ADR-2547). Empty skips remote claim/role writeback in isolated tests
KeycloakAdmin__Realmsamecadenceno; target Keycloak realm receiving tenant_id and initial trial roles (Sponsor Admin, Sponsor Designer)
KeycloakAdmin__AdminUsernamesameadminno; Keycloak admin username used when KeycloakAdmin__BaseUrl is set
KeycloakAdmin__AdminPasswordsamenoneonly when KeycloakAdmin__BaseUrl is set; Keycloak admin password used to obtain short-lived Admin REST tokens

Intelligence module ​

The Intelligence configuration section (IntelligenceOptions) of the Intelligence module, which the kernel API host composes (ADR-2630). Without a provider, agent tasks have no model to call; the intent router (POST /api/v1/ai/intent/route) is rule-based and needs none.

KeyRead byDefaultRequired
Intelligence__Anthropic__ApiKeyapps/intelligence/src/IntelligenceModule.csnone; falls back to ANTHROPIC_API_KEYno; never defaulted. Without a key (here or in ANTHROPIC_API_KEY) the Anthropic provider is not configured
ANTHROPIC_API_KEYsamenoneno; read only when Intelligence__Anthropic__ApiKey is unset
Intelligence__Anthropic__Tiers__<tier>samedeep: claude-opus-5-5, balanced: claude-sonnet-5-5, fast: claude-haiku-5-5no; the model a task configuration's tier: alias resolves to
Intelligence__FakeProvidersamefalseno; registers the deterministic fake provider, so tests and local stacks never call a model. The host refuses to start with it outside the Development and Testing environments
Intelligence__RequestTimeoutSecondssame120no; how long one model call may take
Intelligence__Prices__<model>__InputPerMillionsamenoneno; US dollars per million input tokens, for the agent-run ledger's cost. A model without a price records no cost
Intelligence__Prices__<model>__OutputPerMillionsamenoneno; US dollars per million output tokens

Intelligence inference ​

The model providers, routing and agent sandbox of the Intelligence module (ADR-2636). Each provider is configured only when its section is present; a provider with no section is not registered and no route can reach it. Credentials for the cloud platforms come from each platform's standard chain (AWS profile or role, Google application default credentials, Azure DefaultAzureCredential), never from this page. <P> is one of AnthropicAws, Bedrock, Vertex, Foundry or OpenAiCompatible. Every provider resolves tier: aliases through Intelligence__Anthropic__Tiers and prices through Intelligence__Prices, by first-party model id.

Outside Development, every model call goes to an external provider only while that provider's supplier is Approved, the Claude API (anthropic) included. A production deployment approves each one it uses under Intelligence__Inference__Suppliers__<id>. The in-process fake provider needs no approval.

KeyRead byDefaultRequired
Intelligence__Inference__Modeapps/intelligence/src/Inference/Providers/InferenceOptions.csStandardno; LocalOnly refuses every external provider for every tenant, whatever the tenant policy
Intelligence__Inference__Providers__<P>__Residency__0 (__1, …)samenoneno; the residency codes (2 to 8 upper-case letters, ADR-2458) the provider's data stays in. A tenant with a residency only reaches providers that declare it. Any other value fails startup
Intelligence__Inference__Providers__<P>__Timeoutsame00:10:00no
Intelligence__Inference__Providers__AnthropicAws__Regionapps/intelligence/src/Inference/Providers/ClaudePlatformProviders.csnoneyes with that section; Claude Platform on AWS
Intelligence__Inference__Providers__AnthropicAws__WorkspaceIdsamenoneyes with that section
Intelligence__Inference__Providers__Bedrock__Regionsamenoneyes with that section; Amazon Bedrock
Intelligence__Inference__Providers__Vertex__ProjectIdsamenoneyes with that section; Google Vertex AI
Intelligence__Inference__Providers__Vertex__Regionsamenone: the global endpointno; us or eu use the multi-region endpoints, anything else a regional one. The global endpoint cannot carry a residency, so Residency without Region fails startup
Intelligence__Inference__Providers__Foundry__Resourcesamenoneyes with that section; Microsoft Foundry resource name
Intelligence__Inference__Providers__Foundry__ApiKeysamenone: DefaultAzureCredentialno
Intelligence__Inference__Providers__OpenAiCompatible__Endpointapps/intelligence/src/Inference/Providers/OpenAiCompatibleProvider.csnoneyes with that section; a model server inside the deployment. Loopback, private (RFC 1918, fc00::/7), single-label or .svc, .cluster.local, .internal and .localhost hosts only; anything else fails startup
Intelligence__Inference__Providers__OpenAiCompatible__ApiKeysamenoneno; only if the server asks for one
Intelligence__Inference__Providers__OpenAiCompatible__Models__<model>samethe model id unchangedno; maps a task configuration's model id (for example claude-opus-5-5) to the local server's model name
Intelligence__Inference__Suppliers__<id>__Statusapps/intelligence/src/Inference/Suppliers/SupplierRecord.csthe shipped record's Draftno; Approved (needs AssessedBy, AssessedOn and NextReviewOn, or startup fails) or Suspended. Outside Development an external provider is used only while its supplier is Approved
Intelligence__Inference__Suppliers__<id>__AssessedBy, __AssessedOn, __NextReviewOnsamenonewith Approved
Intelligence__Sandbox__AllowedClients__0 (__1, …)apps/intelligence/src/Sandbox/SandboxEgressHandler.csnoneno; named IHttpClientFactory clients an agent run may call besides the model providers. Every other client is refused inside a run

Notifications service ​

KeyRead byDefaultRequired
Notifications__PortalUrlapps/notifications/src/Program.cs:21 (NotificationBrandingOptions)noneno; the participant portal's sign-in URL used by the "Log In" link. It must be an absolute https URL (http only on localhost), or the service refuses to start. Without it, notifications carry no portal link
Notifications__BrandNamesameCadence Clinical Platformno; the platform name in notification footers. It must not be empty

Field-level protection ​

Keys for packages/security/src/FieldProtection (#4770). Both are base64 encodings of exactly 32 random bytes (openssl rand -base64 32), are validated when the host starts, and have no default in any environment. Use two different keys. See ADR-2494. Under the Aspire AppHost, set them as the field-encryption-key and field-lookup-hash-key parameters. Imaging's two de-identification keys are the imaging-deid-signing-key and imaging-deid-pseudonymization-key parameters.

KeyRead byDefaultRequired
FIELD_ENCRYPTION_KEYpackages/security/src/FieldProtection/FieldProtectionServiceCollectionExtensions.cs (AddCadenceFieldEncryption), called by apps/payments/src/Program.cs and apps/econsent/src/Program.csnoneyes (payments, econsent); the service refuses to start without a valid key. Rotating it makes existing ciphertext unreadable
FIELD_LOOKUP_HASH_KEYsame file (AddCadenceLookupHashing), called by apps/interop/src/Program.csnoneyes (interop); the service refuses to start without a valid key. Rotating it orphans stored device-token hashes
CADENCE_SCE_SIGNING_KEYapps/interop/src/Infrastructure/Security/SceTokenSigner.cs (AddSceSigning), called by apps/interop/src/Program.csnoneyes (interop); base64 of 32 bytes. The service refuses to start without a valid key. Rotating it invalidates outstanding SCE database-lock tokens (ADR-2515)
SmartSigningKeys__<ref>apps/interop/src/Infrastructure/Security/SmartSigningKeys.cs (ConfigurationSmartSigningKeys), used by POST /api/v1/interop/esource/smart/assertion and /smart/verifynoneonly for an EHR endpoint registered with SigningKeyRef: <ref>; the PEM RSA private key (at least 2048 bits) that signs that endpoint's SMART client assertions, fed from a secret store. <ref> is letters, digits and underscores. A missing or invalid key answers 422 and signs nothing; requests never carry a key (#5436)
CADENCE_IMAGING_DEID_SIGNING_KEYapps/imaging/src/Infrastructure/Security/DeidentificationKeys.cs (AddImagingDeidentification), called by apps/imaging/src/Program.csnoneyes (imaging); base64 of 32 bytes. Signs de-identification certificates and batch manifests. The service refuses to start without a valid key (#5399). Rotating it makes stored certificates report an invalid signature
CADENCE_IMAGING_DEID_PSEUDONYMIZATION_KEYsame filenoneyes (imaging); base64 of 32 bytes, different from the signing key. Keys the anonymized DICOM UIDs and original-UID hashes (#5399). Rotating it gives the same source study new anonymized UIDs

Object storage ​

Read by AddCadenceStorage in packages/storage/src/StorageServiceCollectionExtensions.cs. No service calls it yet; a service that does fails at startup when a required key is missing.

KeyRead byDefaultRequired
Storage__ProviderAddCadenceStoragenoneyes; s3, minio, filesystem, or memory (in-process, Development only)
Storage__BucketNamesame (S3StorageOptions)noneyes for s3 and minio
Storage__Regionsameus-east-1no
Storage__ServiceUrlsamenone (Amazon S3)yes for minio; an S3-compatible endpoint, which turns on path-style addressing
Storage__ForcePathStylesameon when Storage__ServiceUrl is setno
Storage__ServerSideEncryptionsameAES256no; aws:kms for KMS, empty to turn it off
Storage__RootPathsame (FileSystemStorageOptions)noneyes for filesystem; an absolute directory. The store keeps objects/ and meta/ under it
Storage__AccessKeyId, Storage__SecretAccessKeysamenone; the AWS default credential chain (environment, profile, instance or task role)no; set both or neither. There is no default key

Gateway routing ​

Read by apps/gateway/src/Program.cs, one per service in the topology manifest (packages/topology). In Development each defaults to http://localhost:<port>; in any other environment each is required and the gateway refuses to start without it. A value that is not an absolute http or https URL fails startup in every environment.

KeyDefault port
DESIGNER_SERVICE_URL8001
EXECUTION_SERVICE_URL8002
ETMF_SERVICE_URL8003
INTEROP_SERVICE_URL8004
QUALITY_SERVICE_URL8005
NOTIFICATIONS_SERVICE_URL8006
CTMS_SERVICE_URL8007
SAFETY_SERVICE_URL8008
TICKETS_SERVICE_URL8009
EISF_SERVICE_URL8010
ECONSENT_SERVICE_URL8011
ORG_SERVICE_URL8012
FILESHARE_SERVICE_URL8013
IMAGING_SERVICE_URL8014
KNOWLEDGE_SERVICE_URL8015
PAYMENTS_SERVICE_URL8016
KERNEL_SERVICE_URL8018

Timeouts and health checks for every route, read by apps/gateway/src/GatewayClusters.cs (ADR-2451). Each must be a positive number of seconds; the gateway refuses to start otherwise.

KeyDefaultPurpose
GATEWAY_PROXY_TIMEOUT_SECONDS30A proxied request fails with 504 once its service sends nothing for this long.
GATEWAY_HEALTH_CHECK_INTERVAL_SECONDS10How often the gateway probes each service's /healthz/ready. Two failures in a row make the gateway answer 503 for that service until a probe succeeds.
GATEWAY_HEALTH_CHECK_TIMEOUT_SECONDS5How long one readiness probe may take before it counts as failed.

Per-caller rate limit, read by apps/gateway/src/GatewayRateLimiting.cs (ADR-2491). It must be a positive number; the gateway refuses to start otherwise.

KeyDefaultPurpose
GATEWAY_RATE_LIMIT_PER_MINUTE600Requests each caller may send per one-minute window, counted by token subject, or by client address for unauthenticated requests. Over the limit the gateway answers 429 with Retry-After. Health probes are not limited.

Authentication and audit ​

KeyRead byDefaultRequired
GATEWAY_SECRETpackages/security/src/DependencyInjection/CadenceSecurityServiceCollectionExtensions.cs (every service), apps/gateway/src/Program.cs:68, packages/security/src/Authentication/SigTokenVerifier.cs:130noneyes, 32+ characters; services refuse to start without it
OIDC_AUTHORITYapps/gateway/src/Program.cs:30noneyes (gateway)
OIDC_METADATA_ADDRESSapps/gateway/src/Program.cs:40noneno
OIDC_AUDIENCEapps/gateway/src/Program.cs:33none; validated when setyes outside Development (gateway); cadence-api, the audience the realm gives cadence-web tokens, so tokens from other realm clients are refused (#5037)
OIDC_REQUIRE_HTTPS_METADATAapps/gateway/src/Program.cs:51trueno
OIDC_SIGNATURE_CLIENT_IDapps/gateway/src/Program.cs:81cadence-esignatureno; Keycloak client with only direct access grants, used for e-signature re-authentication
OIDC_SIGNATURE_CLIENT_SECRETapps/gateway/src/Program.cs:84noneonly if that client is confidential
OIDC_TOKEN_ENDPOINTapps/gateway/src/Program.cs:72<realm>/protocol/openid-connect/token beside OIDC_METADATA_ADDRESS or OIDC_AUTHORITYno
AUDIT_LOG_SECRET_KEYpackages/security/src/Audit/AuditSecretKey.cs (the only resolver; used by AuditDigestEngine, both AuditDigestCalculators and AddCadenceSecurity)noneyes; signing or verifying the audit chain throws without it
GXP_SIGNER_IDpackages/compliance/src/GxPSigner.cs:67 (release signing with SignGxpMarkdown only; gxp snapshot stamps, it does not sign)cadence-validation-runnerno

Observability ​

KeyRead byDefaultRequired
OTEL_EXPORTER_OTLP_ENDPOINTpackages/telemetry/src/CadenceTelemetryExtensions.cs (enables OTLP export of traces, metrics and logs); the OpenTelemetry SDK also honours the other standard OTEL_EXPORTER_OTLP_* keysunset: nothing exportedno
OTEL_SERVICE_NAMEpackages/telemetry/src/CadenceTelemetryExtensions.csthe service's assembly nameno

Tooling ​

KeyRead byDefault
BRAND_DOMAINpackages/tooling_core/src/OpenApiToolingService.cs:171ccrsoft.com
DOTNET_INSTALL_SH_SHA256scripts/setup_dotnet_env.sh:50082f7685e156738a1b2e2ed8381a621870d4ce8e8c59278034556f05c186eb2e
DOTNET_INSTALL_PS1_SHA256scripts/setup_dotnet_env.ps1:63e8b873e18a81e5c4cd8ab69d84dac8fead291d50b3c44633cd7fddad709a13d6
GH_TOKEN, GITHUB_TOKENpackages/tooling_core/src/Services/SyncGithubProjectService.cs:10none
RTM_DRAFT, GENERATE_RTM_DRAFTpackages/compliance/src/RtmGeneratorService.cs:124-125 (honoured by generate-rtm and check rtm; gxp sync and gxp snapshot ignore them)off
CADENCE_UPDATE_BASELINEpackages/tooling_core/src/Services/DeidComplianceService.cs (1 with check deid and no files rewrites .deid-baseline.txt) tests/Cadence.ArchitectureTests/Architecture/KernelBoundaryBaseline.cs (rewrites the kernel boundary baseline) and tests/Cadence.ArchitectureTests/Architecture/KernelRuleCoverage.cs (deletes covered rules from the kernel rule coverage baseline, never adds one)off
CADENCE_BASELINE_GROWTHpackages/cli/src/Services/BaselineRatchetService.cs (a reason; in the pre-commit hook only, admits staged growth of a ratchet baseline for the baseline-ratchet gate. The commit must also carry a Baseline-Growth: <reason> trailer, which cadence check and CI require; see docs/TESTING.md)unset
CI, GITHUB_ACTIONSpackages/cli/src/Services/BaselineRatchetService.cs:248-249 (true or 1 makes the baseline-ratchet gate fail instead of skipping when origin/main is missing or shares no history with HEAD)unset
CADENCE_GXP_SNAPSHOTpackages/compliance/src/GxpSnapshotPolicy.cs (1 or true turns on snapshot mode, ADR-2532: the gxp-snapshot gate admits changes to the RTM, the IQ/OQ/PQ report and docs/SDLC/runs/, and outside the pre-commit hook compares the regenerated documents with them; check rtm, gxp validate and the agent Stop hook also require the RTM's test mapping to be current; the cadence ci compliance job writes docs/SDLC instead of TestResults/gxp/preview. Set by the integration owner only; gxp snapshot --commit sets it for its commit)off
RTM_STRICT_ALLpackages/compliance/src/RtmGeneratorService.cs:254off
CADENCE_TEST_POSTGREStests/Cadence.IntegrationTests/Execution/ExecutionPostgresFixture.cs (Npgsql connection string to an existing PostgreSQL server; without it or CADENCE_TEST_DOCKER, PostgreSQL tests are skipped). cadence ci (packages/cli/src/Services/LocalCiRunner.cs) opens the connection string once before the .NET tests and fails when neither is usable, unless --allow-skip is givennone
CADENCE_TEST_DOCKERtests/Cadence.IntegrationTests/Execution/ExecutionPostgresFixture.cs and tests/Cadence.TestSupport/Database/PostgresTestServer.cs (the kernel fixtures) (1 starts a Testcontainers container of PostgresTestImage.Image, PostgreSQL 18)none
CADENCE_TEST_EVIDENCE_DIRtests/Cadence.TestSupport/Database/PostgresTestEvidence.cs (directory where database fixtures record the server version, extensions, latest migration and application-role attributes; gxp sync, gxp snapshot and cadence ci set it to TestResults/gxp)none
CADENCE_TEST_BROWSERtests/Cadence.IntegrationTests/Kernel/KernelObservationHostPostgresTests.cs (1 runs the browser-to-database check of the observation correction in Chromium; also needs CADENCE_TEST_POSTGRES, Node and pnpm)none
CADENCE_LINEAGE_BENCHMARKtests/Cadence.IntegrationTests/Kernel/LineageBenchmarkPostgresTests.cs (1 runs the 10M-edge lineage benchmark; also needs CADENCE_TEST_POSTGRES and about 4 GB of disk. packages/compliance/src/DatabaseTestEvidence.cs exempts its skip from the skipped-database-test rule)off
PLAYWRIGHT_CHROMIUM_PATHapps/web/playwright.correction-check.config.ts (path to a preinstalled Chromium for the browser-to-database check; set to /opt/pw-browsers/chromium by the test when that file exists)Playwright's bundled Chromium
CADENCE_DOCS_SKIP_CHECKSscripts/build-docs.js (1 skips duplicate openapi, schema-doc and markdown gates while still running check rtm; cadence ci, ci.yml, and non-dispatch push runs of deploy-docs.yml set it to 1 when quality sentinels already passed, while workflow_dispatch runs of deploy-docs.yml set it to 0)unset
CADENCE_UPDATE_GOLDENtests/Cadence.UnitTests/Packages/UsdmDesignImporterTests.cs (1 rewrites the expected design of the USDM import golden test; review the diff before committing)off

Web apps ​

Vite inlines VITE_* values at build time. Put overrides in apps/<app>/.env.local.

KeyRead byDefault
VITE_API_BASE_URLapps/web/src/api/authorization.js:18 (the only origin besides same-origin /api/ that receives the bearer token), apps/web/src/api/client.ts:7, apps/subject-portal/src/api/client.js:7http://localhost:3000 in the web app's and http://localhost:5174 in the subject portal's vite dev server (their own origins, so calls go through their /api proxies; the gateway sends no CORS headers, #5429, #5451); http://localhost:8000 in builds and tests
CADENCE_GATEWAY_URLapps/web/vite.config.js, apps/subject-portal/vite.config.js (dev server /api proxy target; set by the AppHost, and by docker compose for the portal)http://localhost:8000
VITE_BASE_PATHapps/web/vite.config.js:16, apps/subject-portal/vite.config.js:16/cadence-clinical/ in apps/web (/cadence-clinical/demo/ when staged into the Pages portal); /subject-portal/ in apps/subject-portal (/cadence-clinical/subject-portal/ when staged into the Pages portal)
VITE_APP_TITLEapps/web/vite.config.js:37, apps/subject-portal/vite.config.js:39app name
VITE_BRAND_NAMEapps/web/src/App.vue:22, apps/web/src/components/AppShell.vue:841, apps/subject-portal/src/components/PortalHeader.vue:58Cadence Clinical
VITE_KEYCLOAK_URLapps/web/src/auth/keycloak.js, apps/subject-portal/src/features/auth.js:79http://localhost:8080/ in dev and test builds; none in an apps/web production build, which shows the missing key on the sign-in page
VITE_KEYCLOAK_REALMapps/web/src/auth/keycloak.js, apps/subject-portal/src/features/auth.js:80cadence in dev and test builds; none in an apps/web production build, which shows the missing key on the sign-in page
VITE_KEYCLOAK_CLIENT_IDapps/web/src/auth/keycloak.js, apps/subject-portal/src/features/auth.js:81cadence-web in dev and test builds; none in an apps/web production build, which shows the missing key on the sign-in page
VITE_DEMO_MODEapps/web/src/utils/demoMode.js, apps/subject-portal/src/utils/demoMode.jsoff. true (or vite --mode demo, pnpm build:demo) makes a demo build: offline demo identity, hash routing, MSW mock API and sample data. Any other build shows API failures as errors and never substitutes sample data
VITE_ENABLE_MSWapps/web/src/main.js, apps/subject-portal/src/bootstrap/initialize.js:40off. Web: starts the MSW mock worker without the rest of demo mode (demo builds start it anyway)