.env file of any Lerian product or plugin where you want it active.
Enabling Access Manager only turns on authorization enforcement in a product or plugin. You manage access data separately through Access Manager. This includes users, groups, applications, providers, roles, and permissions.
After you enable Access Manager, protected API requests must include an
Authorization header with a valid Bearer access token.Without this header, protected requests will be rejected, even for endpoints that were previously accessible without authentication.Learn how to generate and use access tokens.Where to update
You’ll find the relevant
.env files in these locations:
- Midaz
/midaz/components/ledgerusesPLUGIN_AUTH_HOST./midaz/components/tracerusesPLUGIN_AUTH_ADDRESS
- Other products and plugins
- Use the
.envfile in the product or plugin root, or in the component directory when the repository is split into components. - Reporter, Flowker, and Bank Transfer use
PLUGIN_AUTH_ADDRESS. - Pix Indirect BTG uses
PLUGIN_AUTH_ADDRESS. - Pix via JD uses
PLUGIN_AUTH_HOST.
- Use the
Rebuild after changes
After updating a
.env file, rebuild and restart from the root of the repository that owns that file. Lifecycle commands differ by repository: in the Midaz repository root, run make rebuild-up, because its make up target starts services without rebuilding them. For other products and plugins, use the lifecycle command documented for that product.
Deployment lifecycle
Access Manager setup has two phases:
- Bootstrap seeds a new environment with the base organization, roles, groups, applications, and permission sets required by the platform.
- Operation starts after the environment is up. From that point on, manage access through the Identity APIs or Lerian Console.

