Skip to main content
Lender is a single service, packaged as a container and configured through environment variables. This page is the operator’s overview: what it runs as, what it depends on, the settings that matter, and how tenancy and ledger routing behave. The Environment variables page lists every key.

The container


Lender ships as a container image that listens on port 8080. You deploy it into your cluster with the platform’s standard lifecycle tooling. This page does not assume any particular packaging beyond the image. Lender serves these operational probes on the main port: HEALTH_PORT sets the health port. When HEALTH_PORT is not set, Lender starts no health listener. The health port serves these probes: PostgreSQL, Valkey, and the license gate the first ready answer, and so does Tenant Manager in multi-tenant mode. RabbitMQ, the event backbone, and the Consignado exclusion consumer are reported and do not change the status. A stopped exclusion rail or webhook listener fails liveness. /readyz also reports a revoked license. The collection and hub webhook listeners serve no probe. The health and readiness reference describes the shared contract.

Dependencies


Configuration surface


Configuration is environment-driven. The keys below shape behavior. The Environment variables page lists every key.

Tenant and ledger defaults


By default, Lender serves one tenant (DEFAULT_TENANT_ID) with one database schema. Which jurisdictions a tenant may operate lives in the runtime-configuration key lender.jurisdictions/tenant_bindings. A tenant with no binding gets 403 on every Brazil route. In a BYOC deployment, your admin sets the bindings with PUT /api/v1/systemplane/lender.jurisdictions/tenant_bindings and the body {"value": {"<tenant id>": ["BR"]}}. The write replaces the whole document and requires systemplane/write. The tenant id is a lowercase UUID. In Lerian Cloud, Lerian operations sets the jurisdiction bindings.

Ledger posting and fails-closed routing


A booking reaches the ledger through a durable posting intent and an asynchronous relay. The full path is in Lender in the platform. Routing fails closed. A posting books into the ledger organization and ledger resolved from the accounting profile. A posting that resolves no profile target falls back to the env default. If neither resolves a non-empty target, Lender refuses to post rather than book into an empty or wrong ledger.

Next steps


Lender in the platform

The posting path, event catalog, and tenant isolation in detail.