Skip to main content
In a BYOC (bring your own cloud) deployment, you run Lerian products inside your own AWS, GCP, or on-prem infrastructure. You own the data and the runtime. You configure each service through environment variables, and most of them are service-specific. This page covers variables that recur across Lerian Go services. Use each product’s own page for the rest.
These variables are not the full list. Variable names and defaults differ between services, and services add their own keys. See Per-product variables.

Deployment mode and TLS

For a production BYOC deployment, set DEPLOYMENT_MODE=byoc, connect every datastore over TLS, and leave ALLOW_INSECURE_TLS unset (false).

Server

Some services expose a numeric SERVER_PORT instead of, or alongside, SERVER_ADDRESS. Some worker components expose a dedicated health port (for example HEALTH_PORT or WORKER_SERVER_PORT). See Default network ports and Health and readiness.

Datastores

Every service that persists state connects to one or more datastores. The variable prefix depends on the store, and in some services on the logical database. The table below shows the common shape. Consult each product’s page for the exact names.
Not every service uses every store, and prefixes vary. Midaz namespaces connections per logical database (for example DB_ONBOARDING_*, DB_TRANSACTION_*, MONGO_CRM_*).

Runtime configuration

When enabled, the service exposes a plane for reading and writing runtime configuration. See Systemplane for the API and namespaces.

Streaming and outbox

Whether event publication is on by default, and which switch controls it, differs by service. Check each product’s page for its contract, for example SPI and SILOC.
The variables that secure the broker connection differ by service. Some services read STREAMING_SASL_* and STREAMING_TLS_*, and Consignado reads STREAMING_KAFKA_SASL_* and STREAMING_KAFKA_TLS_*. Set them when your broker requires authentication or TLS, and take the names from the product’s own page.

Service discovery

In services that support Consul service discovery, it is off by default. When enabled, the service registers itself and resolves peers through Consul instead of static addresses.
Some services use legacy aliases (SD_ADVERTISE_*, CONSUL_ADDR) for the same behavior.

Observability

Telemetry is push-based (OTLP). Some services additionally expose a /metrics endpoint for Prometheus scraping. See Health and readiness.

Plugin authentication

Lerian services can authenticate protected routes through Access Manager (Caradhras-backed). The authentication toggle, its variable name, and its default differ by service. Always enable authentication in production. Check each product or rail’s own environment-variables page for the authoritative toggle name, its default, and the routes it protects.

Per-product variables

Each product adds its own variables: datastore prefixes, integration URLs, worker tuning, and feature toggles. Its own page holds the full, current list, for example:

Midaz

Tracer

Reporter

Lender