Skip to main content
Set these variables at deployment time. Unless stated otherwise, changing one requires a restart. The BYOC configuration reference covers the shared Lerian runtime: server, datastores, multi-tenancy, telemetry, authentication, streaming, outbox, and licensing. This page lists Consignado-specific settings and the few shared settings that materially change its rail behavior. — means no default. Variables carrying certificates, private keys, OAuth secrets, or HMAC keys are sensitive and must come from a secret manager. A deployment is managed when DEPLOYMENT_MODE is byoc or saas, when ENV_NAME is production, or when MULTI_TENANT_ENABLED is true.

Service and tenant mode

Dataprev client and authentication

Managed deployments must use tenant credential custody. They fail closed instead of falling back to an unauthenticated or non-mTLS client.

Contract and portability windows

Reconciliation and employment feeds

Exclusion and redirection

Leave DATAPREV_EXCLUSION_ADAPTER and DATAPREV_EXCLUSION_FAKE_BASE_URL unset.

Outcome recovery

A rail command can end with its outcome unestablished: the process died mid-call, or Dataprev never answered. Two recovery loops converge that state against the rail’s own registry. A third loop resends a bid whose rail answer was lost. The three loops are off by default. Enable them in any deployment that submits averbações, rail commands, or bids. Otherwise nothing converges an unestablished outcome automatically.

Auctions and client bids

Portability discovery requires LEILAO_PORTABILITY_ENABLED=true, LEILAO_TENANT_ID, DATAPREV_ENABLED=true, STREAMING_ENABLED=true, a primary database, and the canonical outbox. It does not require LEILAO_ENABLED=true. The portability listing window is 72 hours by default (DATAPREV_PORTABILIDADE_SOLICITACAO_WINDOW_HOURS). The service refuses to boot unless that window is wider than LEILAO_PORTABILITY_INTERVAL_SEC plus the 300-second LEILAO_DISCOVERY_CLOCK_SKEW_SEC margin.

Credential custody and artifacts

Consignado has no non-event-driven startup mode: outbox, streaming, and brokers are mandatory even though the platform shares those settings. Keep the CloudEvent source pinned to consignado-gw.