Skip to main content
Lerian SPB is Lerian’s native messaging integration for the STR (Sistema de Transferência de Reservas), reaching BACEN’s real-time gross settlement system over the RSFN. The variables below are set at deploy time and require a service restart to take effect. Most of them are specific to this rail; for the knobs that behave the same way across every Lerian Go service — deployment posture, datastores, multi-tenancy, telemetry — see BYOC configuration essentials. In the tables below, Required marks a variable that must be set (globally, or under the condition named). A qualifier such as In production or If enabled narrows when the requirement applies. means no default.
Lerian SPB arms its stricter security gates from ENV_NAME: when set to production or staging, TLS becomes mandatory on Redis, RabbitMQ, and the STR connection, message signing must use a hardware-backed custody backend, and development-only surfaces are rejected. ENV_NAME has no default — set it explicitly; the service refuses to start when it is unset or set to an unrecognized value.

Runtime and server

Authentication

Lerian SPB delegates authorization — including the systemplane admin API — to Access Manager. See BYOC configuration essentials.

PostgreSQL

PostgreSQL replica

Optional read replica. All fields fall back to the primary when unset.

Redis

STR connectivity (RSFN)

Lerian SPB exchanges STR messages with BACEN over the RSFN using an IBM MQ transport. These variables define the participant identity, the queue-manager connection, and the queues.

Circuit breaker

Guards the STR transport against a failing queue manager.

Message signing and certificates

STR messages are digitally signed. Choose a custody backend with SPB_SIGNER_KIND; production and staging reject the file backend and require a hardware-backed key (pkcs11 or kmip).

PKCS#11 custody

Required when SPB_SIGNER_KIND=pkcs11.

KMIP custody

Required when SPB_SIGNER_KIND=kmip (KMIP-over-HTTP to a network HSM).

Events, outbox, and RabbitMQ

Lerian SPB records every message before dispatch and publishes lifecycle events through a transactional outbox to RabbitMQ.

Approval (maker-checker)

Optional value-band approval that gates STR emission. Off by default — an empty band table lets every emission proceed single-step.

Rate limiting and idempotency

Systemplane and runtime configuration

Lerian SPB mounts the systemplane runtime-configuration admin API at /v1/system on the main port; it is backed by PostgreSQL, so operators can read and change hot-reloadable settings without a restart. See Systemplane for the API, namespaces, and permissions.

Encryption and secrets

Never commit or log the values of any variable marked Sensitive (passwords, tokens, PINs, and AES keys). Inject them at deploy time through your secret manager.

Observability

Development-only

These variables expand the attack surface and are rejected or forced off in production/staging. Keep them unset outside local development.

Health and readiness

Lerian SPB exposes GET /health (liveness) and GET /readyz (readiness) on the main HTTP port. See Health and readiness for the probe contract.