Documentation Index
Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
Use this file to discover all available pages before exploring further.
Pre-upgrade checklist
Decision required: Choose your deployment strategy (Ledger service or legacy Onboarding/Transaction).
Breaking changes in v5.x
New Ledger service available
Starting from version 5.0, the Ledger service is available (ledger.enabled: false by default). When enabled, this service combines the functionality of both onboarding and transaction modules into a single deployment.
Default values:
| Setting | v4.x (before) | v5.x (after) |
|---|---|---|
| ledger.enabled | N/A | false |
| onboarding.enabled | true | true (auto-disabled when ledger is enabled) |
| transaction.enabled | true | true (auto-disabled when ledger is enabled) |
- The
midaz-onboardingandmidaz-transactiondeployments will be removed. - A new
midaz-ledgerdeployment will be created. - Ingresses will automatically redirect to the Ledger service (DNS compatibility maintained).
- Environment variables and secrets structure changes (module-specific prefixes).
App version bump
Midaz has been bumped to v3.5.3.Check the app changelog for the complete list of changes.
Migration options
Option 1: keep using Onboarding and Transaction (gradual migration)
Add the following to your values override to maintain the current behavior:Option 2: run all services simultaneously (testing/migration period)
Use the hiddenmigration.allowAllServices flag to run all three services during the migration:
Option 3: migrate to Ledger (recommended)
Accept the new architecture and migrate to the unified Ledger service:Before upgrading: Ensure your databases are ready (same databases, new environment variable names).
Update secrets: Create new secrets with module-specific prefixes (see Configuration reference).
New features in v5.x
Unified Ledger service
A new Ledger service that combinesonboarding and transaction modules into a single deployment.
Key characteristics:
- Single HTTP endpoint (port 3000 by default)
- Separate database configurations for each module
- Shared Redis and RabbitMQ connections
- New Balance Sync Worker for background processing
These environment variables have been renamed in later versions. The current variable names are:
BALANCE_SYNC_BATCH_SIZE, BALANCE_SYNC_FLUSH_TIMEOUT_MS, and BALANCE_SYNC_POLL_INTERVAL_MS. See the Configuration Reference for current defaults.Ingress redirection to Ledger
When Ledger is enabled, existing ingresses automatically redirect traffic to the Ledger service, maintaining DNS compatibility.| ledger.enabled | migration.allowAllServices | onboarding ingress target | transaction ingress target |
|---|---|---|---|
| false | false (default) | midaz-onboarding | midaz-transaction |
| true | false (default) | midaz-ledger | midaz-ledger |
| true | true | midaz-onboarding | midaz-transaction |
CRM service integration
The CRM service is now available as an integrated component, moving frommidaz-plugins to midaz namespace.
Migration from plugin-crm:
Upgrade command
Rollback procedure
Common issues
Ledger service fails to start- Verify that all module-specific environment variables and secrets are configured with the new prefixes (
DB_ONBOARDING_*,DB_TRANSACTION_*, etc.).
- Ensure
ledger.enabled: trueandmigration.allowAllServicesis not set totrue.
- Create new secrets with module prefixes:
DB_ONBOARDING_PASSWORDinstead ofDB_PASSWORDDB_TRANSACTION_PASSWORDinstead ofDB_PASSWORDMONGO_ONBOARDING_PASSWORDinstead ofMONGO_PASSWORDMONGO_TRANSACTION_PASSWORDinstead ofMONGO_PASSWORD

