Helm chart for the Lerian Pix plugin for direct participants through JD: DICT keys and claims, Pix transactions, refunds and limits, QR codes, MED 2.0, Pix Automático, and indirect participants. The chart is published as oci://ghcr.io/lerianstudio/plugin-br-pix-jd-helm.
This README is the reference for installing and configuring the chart. The Pix plugin requires an Enterprise license.
api.autoscaling.enabled) and an optional Ingress (api.ingress.enabled). It listens on port 8080, where /health and /version answer without authentication. /readyz and /readyz/tenant/:id answer on the internal health port 8099 (Service port health, ClusterIP only).worker.enabled: true; it runs the ghcr.io/lerianstudio/plugin-br-pix-jd-worker image.ghcr.io/lerianstudio/plugin-br-pix-jd-migrations image, before the API rolls out (pre-install / pre-upgrade). The service does not migrate the database on its own.api.configmap.SYSTEMPLANE_ENABLED defaults to "false" there and every Pix flow answers 503 until you set it to "true" after the first sync.plugin-access-manager at 9.5.10 or later. Earlier versions do not grant the Pix roles the permission of the key lookup route, and that route answers 403.The chart refuses to render without these:
| Key | Format | Default | Without it |
|---|---|---|---|
api.configmap.ENVIRONMENT_NAME |
production, staging or development |
empty | the render fails. An empty value would run the service as a development environment, with every production security check off |
api.configmap.POSTGRES_HOST |
host of the external PostgreSQL | empty | the render fails |
api.secrets.POSTGRES_PASSWORD |
password of the external PostgreSQL | empty | the render fails. Or supply it through api.existingSecret.name |
api.configmap.REDIS_HOST |
host:port of the Valkey or Redis |
empty | the render fails. The rate limiter is fail-closed: without Redis it refuses every request |
api.secrets.LICENSE_KEY |
your license key | empty | the render fails. The API and the worker validate it at startup. Or supply it through api.existingSecret.name, and worker.existingSecret.name when the worker runs. Or set api.licenseFile.existingSecret (and worker.licenseFile.existingSecret): a Secret with a signed licence file under the key license, mounted as the directory /etc/lerian/license with LICENSE_FILE_PATH set; file mode needs an image on lib-license-go v5 |
The chart renders without the values below, but the service does not work without them:
| Key | Format | Default | Without it |
|---|---|---|---|
api.configmap.QRCODE_PUBLIC_BASE_URL |
a host, without a scheme | empty | with ENVIRONMENT_NAME=production, the service does not start |
api.configmap.POSTGRES_SSLMODE |
require or verify-full |
disable |
with ENVIRONMENT_NAME=production, the service does not start: production refuses disable |
api.configmap.PLUGIN_AUTH_ENABLED and api.configmap.PLUGIN_AUTH_HOST |
"true" and the Access Manager address |
"false" and empty |
with ENVIRONMENT_NAME=production, the service does not start: production refuses authentication off, and authentication on needs the host |
api.configmap.JD_BASE_URL, api.configmap.MIDAZ_URL_ONBOARDING, api.configmap.MIDAZ_URL_TRANSACTION, api.configmap.CRM_URL |
URLs | empty | the plugin has no address for JD, Midaz or CRM |
api.secrets.JD_CLIENT_ID, api.secrets.JD_SECRET, api.secrets.MIDAZ_CLIENT_ID, api.secrets.MIDAZ_CLIENT_SECRET, api.secrets.CRM_CLIENT_ID, api.secrets.CRM_CLIENT_SECRET |
client IDs and secrets | empty | the plugin cannot authenticate to JD, Midaz or CRM. These keys are read only from api.secrets; the chart ignores them in api.configmap |
With ENVIRONMENT_NAME=production, never set ALLOW_CORS_WILDCARD or ALLOW_RATELIMIT_FAIL_OPEN: the render fails, because the service refuses to start with them.
For the other variables the plugin reads, see Environment variables.
QRCODE_PUBLIC_BASE_URLThe host where the plugin serves the signed payload of each dynamic QR code. Write the host only, for example pix.example.com.
http:// or https:// fails the render.QRCODE_PUBLIC_BASE_URL + / + QRCODE_PAYLOAD_PATH + / passes 51 characters.QRCODE_PAYLOAD_PATH, qr, the host can have at most 47 characters.Set these only when your institution needs them.
| Key | When | Format | Default |
|---|---|---|---|
api.configmap.MIDAZ_URL_TRACER |
only if the Tracer screens inbound credits | Tracer base URL | empty: no credit is screened |
api.secrets.REDIS_PASSWORD |
only if your Valkey or Redis requires a password | password | empty |
api.cors.allowedOrigins |
only if a browser calls the API directly | list of origins | empty: every browser cross-origin call is refused |
api.rateLimit.* |
only to change the rate-limit defaults | see values.yaml |
chart defaults |
api.secrets.INDIRECTS_DELIVERY_ENCRYPTION_KEY |
only if this deployment hosts indirect participants | exactly 64 hex characters | empty |
api.secrets.JD_PAYMENT_SIGNING_PRIVATE_KEY |
only if JD requires signed payment orders for your institution | PEM private key | empty |
api.secrets.JD_PAYMENT_SIGNING_CERTIFICATE |
only if JD requires signed payment orders for your institution | PEM certificate registered at JD | empty |
api.configmap.JD_PAYMENT_SIGNING_ALGORITHM |
only if your key does not use the default algorithm | ECDSA_P256_SHA256, ECDSA_P384_SHA384 or RSA_PKCS1_SHA256 |
empty, read as ECDSA_P256_SHA256 |
api.configmap.IDP_DECLARATION_ENABLED |
only in a single-tenant install that should publish the plugin’s permissions to the Access Manager at startup. Needs PLUGIN_AUTH_ENABLED=true and the three keys below; the render fails without them |
"true" or "false" |
"false" |
api.configmap.IDP_HOST |
only with IDP_DECLARATION_ENABLED="true" |
Access Manager identity address, http(s):// URL without credentials |
empty |
api.configmap.IDP_M2M_CLIENT_ID |
only with IDP_DECLARATION_ENABLED="true"; may be set in api.secrets instead |
client ID of the plugin’s M2M application in the Access Manager | empty |
api.secrets.IDP_M2M_CLIENT_SECRET |
only with IDP_DECLARATION_ENABLED="true" |
client secret of that application | empty |
api.serviceAccount.create / .name / .annotations |
only to give the API an account the worker does not share, so a cloud grant to it does not reach the worker | create flag, existing account name, annotations | off: the API uses the shared account |
openssl rand -hex 32. The render fails on a value that is not 64 hex characters. See Hosting indirect participants.api.secrets.JD_PAYMENT_SIGNING_PRIVATE_KEY.api.secrets.JD_PAYMENT_SIGNING_CERTIFICATE must be the same certificate you registered at JD; JD refuses every order signed against a different one. Compare its SHA-1 fingerprint with the one JD shows: openssl x509 -in payment-signing.crt -outform DER | shasum -a 1 | tr a-f A-F.--set-file, as the install example shows, or as a YAML block scalar (|). A set value without a -----BEGIN PEM header, or an algorithm outside the three above, fails the render.existingSecretEvery value under api.secrets is sensitive. Keep it in a Kubernetes Secret, never in a values file in version control.
To use a Secret that you manage, set api.existingSecret.name. The chart then renders no Secret for the API and reads every secret key — LICENSE_KEY, POSTGRES_PASSWORD, REDIS_PASSWORD, the JD/Midaz/CRM credentials and the optional keys above — from that Secret. With the worker enabled, also set worker.existingSecret.name to the same Secret: otherwise the chart renders a Secret for the worker, and the render fails without api.secrets.LICENSE_KEY. The chart does not check that Secret’s content: to sign payment orders, it must carry both signing keys.
If you use argocd-vault-plugin, a <path:...> placeholder skips the chart’s format checks, because the plugin substitutes it after Helm runs. The value in your vault must then hold the key in the right format — for a PEM, with real line breaks.
When the install receives its JD traffic through the JD Courier, the Courier calls the API on a machine credential whose role is service, and the API admits that role only under the inverted authorization model. The chart models that as one block:
| Key | What it does | Default |
|---|---|---|
courier.enabled |
emits AUTH_M2M_INVERSION_ENABLED="true" and AUTH_M2M_PRODUCT_FORWARD_ENABLED="true" in the API ConfigMap, always as a pair: under the legacy model every Courier delivery answers 403, and inversion without forward answers 403 just the same. The worker serves no Courier routes and never gets the pair. false emits neither variable — the application defaults both to off |
false |
courier.accountClaims.enabled |
emits COURIER_ACCOUNT_CLAIMS_ENABLED="true" in the worker ConfigMap only: the worker sweep that claims each participant’s CRM accounts on its Courier. Requires worker.enabled=true — the render fails otherwise — and is independent of courier.enabled |
false |
Prerequisites that are not this chart’s:
api.configmap.PLUGIN_AUTH_ENABLED="true": the admission pair authorizes the Courier’s bearer, so it does nothing with authentication off.jd-courier: issued by the Tenant Manager in a multi-tenant install, or by the install’s service-credential issuer in single-tenant.service role published to the Access Manager. In single-tenant, publish it with api.configmap.IDP_DECLARATION_ENABLED="true" (see Optional values above).The Courier is also something this plugin calls — the on-us ownership lookup and the account claims — and the chart already models that side; set it with the keys that exist today:
api.configmap.COURIER_URL: the Courier’s address, emitted only when set, single-tenant only — in multi-tenant each tenant’s Courier comes from its jd-spi bundle and the variable is ignored. It must point at the Courier process running the admin role: only that role serves the ownership lookup, and a process in any other role answers 404 while its own health probe still reads up.api.secrets.COURIER_CLIENT_ID and api.secrets.COURIER_CLIENT_SECRET: the Courier credentials, among the chart’s Secret keys and emitted only when set. With api.existingSecret.name, carry them in that Secret instead.Pin the image in production with api.image.tag. Without it, the image follows the chart’s appVersion, so a chart upgrade also changes the application version. Image tags have no leading v. The migrations image is pinned separately in migrations.image.tag. The worker image is pinned separately in worker.image.tag; it does not follow api.image.tag, so move it together with api.image.tag.
A values file with the values above. Every value is a placeholder:
api:
image:
tag: "1.6.1"
configmap:
ENVIRONMENT_NAME: "production"
QRCODE_PUBLIC_BASE_URL: "pix.example.com"
POSTGRES_HOST: "postgres.example.internal"
POSTGRES_SSLMODE: "require"
REDIS_HOST: "valkey.example.internal:6379"
PLUGIN_AUTH_ENABLED: "true"
PLUGIN_AUTH_HOST: "https://access-manager.example.internal"
JD_BASE_URL: "https://jd.example.internal"
MIDAZ_URL_ONBOARDING: "https://midaz-onboarding.example.internal"
MIDAZ_URL_TRANSACTION: "https://midaz-transaction.example.internal"
CRM_URL: "https://crm.example.internal"
existingSecret:
name: "plugin-br-pix-jd-secrets"
Read the current chart version, then install:
helm show chart oci://ghcr.io/lerianstudio/plugin-br-pix-jd-helm
helm install plugin-br-pix-jd \
oci://ghcr.io/lerianstudio/plugin-br-pix-jd-helm \
--version <version> -n midaz-plugins --create-namespace -f my-values.yaml
If JD requires signed payment orders and you do not use api.existingSecret.name, pass the two files in the same command:
helm install plugin-br-pix-jd \
oci://ghcr.io/lerianstudio/plugin-br-pix-jd-helm \
--version <version> -n midaz-plugins --create-namespace -f my-values.yaml \
--set-file api.secrets.JD_PAYMENT_SIGNING_PRIVATE_KEY=payment-signing.key \
--set-file api.secrets.JD_PAYMENT_SIGNING_CERTIFICATE=payment-signing.crt
When the plugin answers its health probe (/health, /readyz), set up the product with Setting up the rail.
Before you upgrade to app 1.1.0 or later (chart 0.4.8 or later), upgrade the Access Manager chart plugin-access-manager to 9.5.10 or later. Otherwise the key lookup route answers 403 after the upgrade.
When you upgrade to app 1.2.1, MULTI_TENANT_ALLOW_INSECURE_HTTP is no longer read. If MULTI_TENANT_URL uses http://, set api.configmap.ALLOW_INSECURE_TLS: "true" instead.
When you upgrade to chart 0.6.0 or later, the chart sets the probes, the rollout strategy, the grace period and the PodDisruptionBudget itself. Remove livenessProbe, readinessProbe, startupProbe, pdb, deploymentStrategy and terminationGracePeriodSeconds from the api and worker blocks of your values file, and set api.image.tag and worker.image.tag to 1.6.0 or later. Otherwise the render fails.
Replace <pix-release> with your release name. A new install uses plugin-br-pix-jd; an existing install keeps its own name, such as plugin-br-pix-direct-jd. An install of the earlier plugin-br-pix-direct-jd-helm chart keeps its settings in a pix: block, which this chart rejects: rewrite that values file into the api and worker blocks before you use it with this chart.
helm upgrade <pix-release> \
oci://ghcr.io/lerianstudio/plugin-br-pix-jd-helm \
--version <new-version> -n midaz-plugins -f my-values.yaml
If you set the payment signing key and certificate with --set-file, add the same two --set-file flags to this command. Otherwise the upgrade drops them and payment orders go out unsigned.
helm uninstall <pix-release> -n midaz-plugins
Per-version notes: 0.1 · 0.2 · 0.3 · 0.4 · 0.4.1 · 0.4.2 · 0.4.3 · 0.4.4 · 0.4.5 · 0.4.6 · 0.4.7 · 0.4.8 · 0.5.0 · 0.5.1 · 0.5.2 · 0.5.3 · 0.5.4 · 0.5.5 · 0.5.6 · 0.5.7 · 0.5.8.
multi-componentapi.secrets.POSTGRES_PASSWORD and api.secrets.LICENSE_KEY (the render fails without them; LICENSE_KEY is waived by licenseFile.existingSecret); the JD, Midaz and CRM client credentials for a working install. With api.existingSecret.name (and worker.existingSecret.name when the worker runs), all of them come from that Secret.lerian-common-helm (library chart, renders nothing); postgresql (Bitnami 16.3.5) and valkey (Bitnami 2.4.7), both disabled by default — the chart expects an external PostgreSQL and Valkey or Redis.api.image.tag, worker.image.tag, migrations.image.tag, api.configmap.ENVIRONMENT_NAME=production, api.configmap.POSTGRES_SSLMODE, api.configmap.PLUGIN_AUTH_ENABLED / PLUGIN_AUTH_HOST, api.configmap.REDIS_HOST, api.existingSecret.name, and api.ingress.*.See values.yaml for the annotated defaults and values-template.yaml for the values you provide.