Skip to main content
TED Lerian reads these variables when the service starts. A change takes effect after you restart the service. Runtime settings, such as the address of Lerian SPB and the fee package of the fee quote (fee.package_id), are not environment variables. In the tables, Required marks a variable that you must set, always or under the condition named. — means no default.
With ENVIRONMENT_NAME=production, the service does not start unless all of these are true: POSTGRES_PASSWORD is set, POSTGRES_SSLMODE is not disable, PLUGIN_AUTH_ENABLED is true, TRUSTED_PROXIES is set, REDIS_TLS is true, AUDIT_MONGO_URI asks for TLS, and neither ALLOW_CORS_WILDCARD nor ALLOW_RATELIMIT_FAIL_OPEN is true.

Runtime and server

Authentication and license

TED Lerian checks one license for the whole installation. A missing or refused license stops the startup. A license service that does not answer does not: TED Lerian stays up, not ready, and keeps retrying. Until the license is accepted, every API route except /health and /version answers 503 TED-9002, and TED Lerian processes no incoming TED. With LICENSE_KEY, every workload needs outbound HTTPS to https://license.lerian.io. The license is global: TED Lerian reads no organization identifier.

Permission declaration

At startup, TED Lerian can publish its permissions to the Access Manager, so the Access Manager holds every TED Lerian permission without a manual load. It publishes nothing unless you turn it on. With IDP_DECLARATION_ENABLED=true, the service does not start when one of the three variables is empty, when IDP_HOST is not an absolute http or https URL, or when PLUGIN_AUTH_ENABLED is not true. When the Identity service does not answer, the service still starts and retries the publication. The declaration check in the GET /readyz body shows the result: degraded while it retries, up once the Access Manager accepts the permissions, and down once the Access Manager refuses the publication or the credential. The check never changes the status code of /readyz. With IDP_DECLARATION_ENABLED off, the body has no declaration check.

PostgreSQL

Valkey

Valkey keeps the idempotency records, the rate-limit counters and the usage-limit counters.

Audit trail

Midaz

TED Lerian holds, settles and credits the money in the Midaz ledger, and finds accounts and holders in the CRM.

Lerian SPB

The address of Lerian SPB is a runtime setting of each institution. RAIL_ALLOWED_HOSTS limits the hosts that TED Lerian accepts there.

Policy and operations

Idempotency and rate limits

Events

TED Lerian writes each event in its outbox, in the same transaction as the status change. The outbox relay then publishes it. The broker connection comes from the shared STREAMING_* settings in Streaming and outbox.

Multi-tenant mode

Multi-tenant mode runs only in Lerian Cloud, where Lerian sets these variables. In BYOC, leave MULTI_TENANT_ENABLED at false and set none of the others. With multi-tenant mode on, the service does not start unless PLUGIN_AUTH_ENABLED is true and the variables that the table marks as required are set.

Telemetry