helm

br-sisbajud Helm Chart

Chart Contract

Deploys br-sisbajud, the Lerian Sisbajud Mensageria: the regulatory side of SISBAJUD judicial asset blocking (STA remittance intake, return files, BACEN) plus the execution API that the executor, plugin-br-sisbajud, calls to pull orders and post results. It was split out of the former br-sisbajud monolith: ledger execution now lives in plugin-br-sisbajud. The service is a single Go binary that runs the main HTTP API (:4031), the execution API on its own in-pod TLS listener (:4032) and the background workers in one process. The chart tracks application 1.1.0 (appVersion, br-sfn sisbajud-v1.1.0); the app and migrations images follow appVersion unless pinned.


Required external components

Component Used for Chart surface
PostgreSQL Orders, institutions, audit, outbox global.datastores.postgres + secrets.POSTGRES_PASSWORD
Valkey / Redis Rate limiting, idempotency, processing locks global.datastores.redis + secrets.REDIS_PASSWORD
Kafka / Redpanda lib-streaming producer (lerian.streaming.br-sisbajud: order release notices for plugin-br-sisbajud, probes). Mandatory global.streaming + secrets.STREAMING_SASL_PASSWORD / STREAMING_TLS_CA_CERT
br-sta’s Kafka cluster br-sta business facts consumer (lerian.streaming.br-sta), SASL + TLS brSisbajud.sta.stream + secrets.STA_STREAM_SASL_PASSWORD / STA_STREAM_TLS_CA_CERT
HashiCorp Vault Transit or AWS KMS Envelope encryption of court-ordered seizure data global.kms + secrets.VAULT_APPROLE_SECRET_ID (or VAULT_TOKEN)
Lerian license Runtime license validation (fail-closed in every environment) secrets.LICENSE_KEY, brSisbajud.license.organizationIds (global)
plugin-access-manager Inbound JWT validation (plus local signature verification with its public key), STA m2m token minting, permission declaration global.auth, brSisbajud.auth.jwtIssuer / jwtVerifyCert*, brSisbajud.identity
plugin-br-sisbajud The executor: calls the execution API (TLS, optional mTLS, M2M bearer) brSisbajud.execution
br-sta Remittance intake (business facts) and return-file submission brSisbajud.sta, global.objectStorage.sta
S3-compatible object storage Encrypted seizure artifacts and the br-sta transfer bucket global.objectStorage + secrets.SEAWEEDFS_ACCESS_KEY / SEAWEEDFS_SECRET_KEY

The Midaz ledger is not called by the Mensageria: plugin-br-sisbajud executes orders on it. Seed institutions through the admin API (POST /v1/institutions) before orders can be executed.


Install

$ helm install br-sisbajud oci://ghcr.io/lerianstudio/br-sisbajud-helm --version <version> -n br-sisbajud --create-namespace -f my-values.yaml

For a step-by-step installation (dev bundle, pairing with br-sta, production), validation and known errors, see the getting-started runbook: English · Português.

Start my-values.yaml from values-template.yaml. It is in the canonical global-first shape.

Upgrading

$ helm upgrade br-sisbajud oci://ghcr.io/lerianstudio/br-sisbajud-helm --version <new-version> -n br-sisbajud -f my-values.yaml

Coming from chart 1.1.x (app 1.0.0-beta.x / rc.x), read UPGRADE-1.2.md first.

Coming from chart 1.3.x (app 1.0.0): app 1.1.0 requires LICENSE_KEY in every environment, local/development/staging/e2e/test included. Set it before you upgrade.

From the monolith (chart 1.2.x, app 1.2.x) to the Mensageria

The chart now deploys a different application (br-sfn services/sisbajud). It is not an in-place upgrade of a running monolith: plan it as a new deployment (fresh database or a migration plan owned by the app team) and install plugin-br-sisbajud next to it. Values changes:

Uninstalling

$ helm uninstall br-sisbajud -n br-sisbajud

Configuration model

Every application env key is resolved with this precedence (lerian-common):

  1. brSisbajud.configmap.<KEY>: the native env key, the escape hatch. It wins over everything. Keys the chart does not model are emitted verbatim, into the ConfigMap: never put a credential (token, password, key) here; use brSisbajud.secrets or brSisbajud.secretRefs.
  2. brSisbajud.<group>.<field>: grouped chart parameters (lerian-common.cfgValue).
  3. brSisbajud.datastores / brSisbajud.kms / brSisbajud.objectStorage: dedicated connection masks for this release.
  4. global.<block>.<field>: the env-wide contract, set once per environment.
  5. global.cloud: managed-cloud topology preset (aws gcp azure).
  6. The chart default (in templates/_helpers.tpl).

brSisbajud.configmap and brSisbajud.secrets are empty by default. Pinning a native key there shadows the grouped/global parameter for that key.

brSisbajud.secretRefs ({ENV_KEY: {name, key[, optional]}}) references a key of a Secret the chart does not manage (e.g. synced by External Secrets) as an explicit secretKeyRef pod env entry. Credentials never need raw extraEnvVars, and the fail-fast gates and the migrations/topics Jobs honor them. brSisbajud.extraEnvVars (a list of {name, value|valueFrom}) is still rendered as explicit pod env:, after secretRefs and winning on a name clash, and wins over the ConfigMap and the Secret. The fail-fast gates and the topics Job also read it for credentials and streaming TLS, but the KMS gates (key mode, ARN, timeouts, minimum image tag) read only the ConfigMap: an extraEnvVars entry such as KMS_PROVIDER=aws or KMS_AWS_* bypasses them at render, and only the app’s boot validation refuses an invalid combination.

Global contract

Block Fields Env keys
global.env name ENVIRONMENT_NAME, ENV_NAME, default of OTEL_RESOURCE_DEPLOYMENT_ENVIRONMENT
global.datastores.postgres host, port, user, name, ssl, replicaHost POSTGRES_HOST/PORT/USER/NAME/SSLMODE, POSTGRES_REPLICA_*
global.datastores.redis host (host:port), tls, caCert REDIS_HOST, REDIS_TLS, REDIS_CA_CERT
global.objectStorage.sisbajud endpoint, region, bucket SEAWEEDFS_S3_ENDPOINT, SEAWEEDFS_REGION, SEAWEEDFS_BUCKET
global.objectStorage.sta bucket, endpoint STA_INBOUND_BUCKET (+ TRANSFER_OBJECT_STORAGE_BUCKET), STA_OBJECT_STORAGE_ENDPOINT
global.kms vendor (hashicorp-vault | aws), vaultAddr, vaultAuthMethod, vaultRoleId, vaultMount, awsRegion, awsKeyMode, awsKeyArn KMS_PROVIDER, VAULT_ADDR, VAULT_AUTH_METHOD, VAULT_APPROLE_ROLE_ID, VAULT_TRANSIT_MOUNT_PATH, AWS_REGION, KMS_AWS_KEY_MODE, KMS_AWS_KEY_ARN
global.streaming enabled, brokers, tlsEnabled, saslMechanism, saslUsername, saslAllowPlaintext, compression, requiredAcks, batchLingerMs, importantEmitTimeoutMs STREAMING_* transport keys
global.multiTenant enabled, url, redisHost, redisPort, redisTls MULTI_TENANT_*
global.auth enabled, host PLUGIN_AUTH_ENABLED, PLUGIN_AUTH_HOST
global.observability enabled, otlpEndpoint, deploymentEnvironment, allowInsecureOtel ENABLE_TELEMETRY, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_RESOURCE_DEPLOYMENT_ENVIRONMENT, ALLOW_INSECURE_OTEL
global.cloud aws | gcp | azure TLS/ssl defaults for the masks above

Parity rules the app enforces are single-sourced: TRANSFER_OBJECT_STORAGE_BUCKET defaults to STA_INBOUND_BUCKET, and STA_OBJECT_STORAGE_ENDPOINT defaults to SEAWEEDFS_S3_ENDPOINT.

Plaintext OTEL to the node-local collector (ALLOW_INSECURE_OTEL)

With telemetry on and no explicit endpoint, the pod ships telemetry to the collector on its own node at http://$(HOST_IP):4317, in plaintext. lib-observability refuses a plaintext exporter in production unless ALLOW_INSECURE_OTEL carries a reason, so the chart sets that variable on the container. The value resolves in this order:

  1. brSisbajud.configmap.ALLOW_INSECURE_OTEL
  2. brSisbajud.security.allowInsecureOtel
  3. global.observability.allowInsecureOtel, one value for the whole environment
  4. the default reason, node-local collector on the pod's own node

null counts as unset. An empty string is an explicit refusal, and the app then refuses the plaintext exporter in production. The configmap value also lands in the ConfigMap, so it also reaches the app when you point at an explicit plaintext endpoint.

A key in brSisbajud.extraEnvVars or a non-empty brSisbajud.secrets.ALLOW_INSECURE_OTEL in the chart’s own Secret is the legacy route, and the chart then adds no entry of its own. The Secret counts only while nothing in the order above is set: a configmap, knob or global value, a refusal included, keeps the chart’s entry, which wins over the Secret. With useExistingSecret: true the chart cannot see the Secret, so the container entry overrides any ALLOW_INSECURE_OTEL held there; set brSisbajud.configmap.ALLOW_INSECURE_OTEL instead. This needs lerian-common-helm 2.7.0 or later, which the chart depends on.

Health port (brSisbajud.serveHealthPort)

With brSisbajud.serveHealthPort: true the chart sets HEALTH_PORT to 8099, declares the container port health, and probes liveness and readiness on it; the paths stay brSisbajud.livenessProbe.path and readinessProbe.path. A ClusterIP Service also lists health (8099); a LoadBalancer or NodePort Service never publishes it. The default is false: flip it in the same change as an image that serves 8099, never apart, and never set HEALTH_PORT by hand.

Grouped parameters and defaults

Parameter Env key Default
app.logLevel LOG_LEVEL info
app.deploymentMode DEPLOYMENT_MODE byoc (saas | byoc | local; only saas enforces TLS)
app.defaultTenantId DEFAULT_TENANT_ID 11111111-1111-1111-1111-111111111111
app.systemplaneEnabled SYSTEMPLANE_ENABLED false
app.infraConnectTimeoutSec INFRA_CONNECT_TIMEOUT_SEC 30
app.dbMetricsIntervalSec DB_METRICS_INTERVAL_SEC 15
app.idempotencyRetryWindowSec IDEMPOTENCY_RETRY_WINDOW_SEC 300
app.circuitBreakerEnabled CIRCUIT_BREAKER_ENABLED false
server.address SERVER_ADDRESS 0.0.0.0:<service.port>
server.bodyLimitBytes HTTP_BODY_LIMIT_BYTES 104857600
server.tlsTerminatedUpstream TLS_TERMINATED_UPSTREAM false
server.tlsCertFile / tlsKeyFile SERVER_TLS_CERT_FILE / SERVER_TLS_KEY_FILE unset (both or neither; main listener only)
execution.port SISBAJUD_EXECUTION_ADDRESS (:<port>) + container/Service port execution 4032
execution.mtlsEnabled SISBAJUD_EXECUTION_MTLS_ENABLED false
execution.tls.{existingSecret,certKey,keyKey,mountPath} SISBAJUD_EXECUTION_TLS_CERT_FILE / _KEY_FILE = <mountPath>/tls.crt / tls.key "" (required) / tls.crt / tls.key / /etc/sisbajud/execution-tls
execution.clientCa.{existingSecret,key,mountPath} SISBAJUD_EXECUTION_CLIENT_CA_FILE = <mountPath>/ca.crt (mTLS only) tls.existingSecret / ca.crt / /etc/sisbajud/execution-client-ca
executionSweep.responseDeadlineMargin / drainedHeadAlarmAfter RESPONSE_DEADLINE_MARGIN / EXECUTION_DRAINED_HEAD_ALARM_AFTER 2h / 30m (the app has no default; positive Go durations)
executionSweep.sweepIntervalSec / deadlineMarginSec / canaryIntervalSec EXECUTION_SWEEP_INTERVAL_SEC / EXECUTION_DEADLINE_MARGIN_SEC / EXECUTION_CANARY_INTERVAL_SEC 60 / unset (= returnFile.scanInterval, must be < 21600) / 300
cors.allowedOrigins ACCESS_CONTROL_ALLOW_ORIGIN + CORS_ALLOWED_ORIGINS "" (set in production: with no origin the CORS middleware denies all)
cors.allowedMethods ACCESS_CONTROL_ALLOW_METHODS + CORS_ALLOWED_METHODS GET,POST,PUT,PATCH,DELETE,OPTIONS
cors.allowedHeaders ACCESS_CONTROL_ALLOW_HEADERS + CORS_ALLOWED_HEADERS Origin,Content-Type,Accept,Authorization,X-Request-ID
cors.exposeHeaders / allowCredentials ACCESS_CONTROL_EXPOSE_HEADERS / ACCESS_CONTROL_ALLOW_CREDENTIALS (+ CORS_*) "" / false
security.allowInsecureTls ALLOW_INSECURE_TLS true only with a bundled subchart, else false
security.allowCorsWildcard / allowInsecureOtel / allowWebhookPrivateNetwork ALLOW_CORS_WILDCARD / ALLOW_INSECURE_OTEL / ALLOW_WEBHOOK_PRIVATE_NETWORK unset
license.organizationIds ORGANIZATION_IDS global (the only accepted value)
postgres.maxOpenConns / maxIdleConns POSTGRES_MAX_OPEN_CONNS / POSTGRES_MAX_IDLE_CONNS 25 / 5
postgres.connMaxLifetimeMins / connMaxIdleTimeMins / connectTimeoutSec POSTGRES_CONN_MAX_LIFETIME_MINS / POSTGRES_CONN_MAX_IDLE_TIME_MINS / POSTGRES_CONNECT_TIMEOUT_SEC 30 / 5 / 10
redis.db / protocol / poolSize / minIdleConns REDIS_DB / REDIS_PROTOCOL / REDIS_POOL_SIZE / REDIS_MIN_IDLE_CONNS 0 / 3 / 10 / 2
redis.readTimeout / writeTimeout / dialTimeout / poolTimeout REDIS_READ_TIMEOUT / REDIS_WRITE_TIMEOUT / REDIS_DIAL_TIMEOUT / REDIS_POOL_TIMEOUT 3 / 3 / 5 / 2
redis.maxRetries / minRetryBackoff / maxRetryBackoff / masterName REDIS_MAX_RETRIES / REDIS_MIN_RETRY_BACKOFF / REDIS_MAX_RETRY_BACKOFF / REDIS_MASTER_NAME 3 / 8 / 1 / unset
vault.timeoutSec VAULT_TIMEOUT_SEC 15
vault.tokenRenewEnabled / tokenRenewMinIntervalSec VAULT_TOKEN_RENEW_ENABLED / VAULT_TOKEN_RENEW_MIN_INTERVAL_SEC true / 60
vault.awsEndpointUrl AWS_ENDPOINT_URL unset (LocalStack only)
vault.awsKmsTimeoutSec KMS_AWS_TIMEOUT_SEC unset (1..600); emitted only with KMS_PROVIDER=aws
vault.awsKmsRotationCheckIntervalSec KMS_AWS_ROTATION_CHECK_INTERVAL_SEC unset (1..86400, validated in provided mode); emitted only with KMS_PROVIDER=aws
kms.awsKeyMode KMS_AWS_KEY_MODE (only when KMS_PROVIDER=aws) unset (managed | provided; required with aws)
kms.awsKeyArn KMS_AWS_KEY_ARN (only when KMS_PROVIDER=aws) unset (required with provided, must be empty with managed)
kms.allowUnverifiableImageTag none (render-time acknowledgement) unset (true confirms an image.tag the chart cannot verify (any tag outside the canonical form vX.Y.Z[-(alpha|beta|rc).N]) is >= 1.1.0-beta.13)
crypto.dekCacheTtl / dekCacheMaxEntries / hmacCoexistenceWindow SISBAJUD_DEK_CACHE_TTL / SISBAJUD_DEK_CACHE_MAX_ENTRIES / SISBAJUD_HMAC_COEXISTENCE_WINDOW 5m / 50000 / 720h
layout.responseLayout / remittanceLayouts SISBAJUD_RESPONSE_LAYOUT / SISBAJUD_REMITTANCE_LAYOUTS auto / v111,v2026
sta.fileLockTtl STA_FILE_LOCK_TTL 5 (minutes)
sta.consumerEnabled / consumerRetryBudget STA_CONSUMER_ENABLED / STA_CONSUMER_RETRY_BUDGET false / 3
sta.stream.{brokers,saslMechanism,saslUsername,saslAllowPlaintext,tlsEnabled} STA_STREAM_BROKERS / _SASL_MECHANISM / _SASL_USERNAME / _SASL_ALLOW_PLAINTEXT / _TLS_ENABLED unset (required with the consumer: brokers, SASL triple, TLS + CA or plaintext opt-in outside production)
sta.sourceProduct / bacenSystemCode STA_SOURCE_PRODUCT / STA_BACEN_SYSTEM_CODE br-sisbajud / JUD
sta.expectedTenantSt STA_EXPECTED_TENANT_ST "" (always emitted: the app checks presence)
sta.maxInboundSizeBytes STA_MAX_INBOUND_SIZE_BYTES 52428800
sta.transfersEnabled / transfersBaseUrl / clientId STA_TRANSFERS_ENABLED / STA_TRANSFERS_BASE_URL / STA_CLIENT_ID false / "" / ""
sta.documentTypeAjud302 / documentTypeAjud309 / documentTypeAjud302b STA_DOCUMENT_TYPE_AJUD302 / STA_DOCUMENT_TYPE_AJUD309 / STA_DOCUMENT_TYPE_AJUD302B AJUD302 / AJUD309 / AJUD302B
workers.kekRewrapBackfill.{enabled,scanInterval,batchSize} KEK_REWRAP_BACKFILL_* false / 300 / 100
workers.slaAlert.{enabled,scanInterval} SLA_ALERT_* false / 60
workers.returnFile.{enabled,scanInterval,limit,environment} RETURN_FILE_GENERATION_*, RETURN_FILE_ENVIRONMENT false / 3600 / 500 / HOMOLOGATION
workers.informationReturnFile.{enabled,scanInterval,limit} INFORMATION_RETURN_FILE_GENERATION_* false / 3600 / 500
workers.processingLockReaper.{enabled,intervalSec} PROCESSING_LOCK_REAPER_* true / 300
outbox.enabled / tableName OUTBOX_ENABLED / OUTBOX_TABLE_NAME true / outbox_events
outbox.dispatchIntervalSec / batchSize / publishMaxAttempts / publishBackoffMs OUTBOX_DISPATCH_INTERVAL_SEC / OUTBOX_BATCH_SIZE / OUTBOX_PUBLISH_MAX_ATTEMPTS / OUTBOX_PUBLISH_BACKOFF_MS 2 / 50 / 3 / 200
outbox.retryWindowSec / maxDispatchAttempts / processingTimeoutSec / maxFailedPerBatch OUTBOX_RETRY_WINDOW_SEC / OUTBOX_MAX_DISPATCH_ATTEMPTS / OUTBOX_PROCESSING_TIMEOUT_SEC / OUTBOX_MAX_FAILED_PER_BATCH 300 / 864 (72h at the 300s retry window, the app default) / 600 / 25
outbox.includeTenantMetrics / allowEmptyTenant / priorityEventTypes OUTBOX_INCLUDE_TENANT_METRICS / OUTBOX_ALLOW_EMPTY_TENANT / OUTBOX_PRIORITY_EVENT_TYPES false / true / unset
streaming.cloudeventsSource STREAMING_CLOUDEVENTS_SOURCE br-sisbajud (the app refuses any other value)
streaming.clientId / healthCheckTimeout STREAMING_CLIENT_ID / STREAMING_HEALTH_CHECK_TIMEOUT unset / 2s
streaming.topicAutoProvision STREAMING_TOPIC_AUTO_PROVISION true (lib-streaming creates lerian.streaming.br-sisbajud + .dlq at boot; false when IaC provisions them)
streaming.topicPartitions / topicReplicationFactor STREAMING_TOPIC_PARTITIONS / STREAMING_TOPIC_REPLICATION_FACTOR unset (broker default)
streaming.closeTimeoutS STREAMING_CLOSE_TIMEOUT_S 20 (must stay below the 30s shutdown budget, which runs inside the pod terminationGracePeriodSeconds, 55s here)
(global.streaming.enabled) STREAMING_ENABLED true (mandatory: the app refuses false; needs brokers and OUTBOX_ENABLED=true)
auth.trustedProxies / productName TRUSTED_PROXIES / AUTH_PRODUCT_NAME "" / unset
auth.jwtIssuer AUTH_JWT_ISSUER unset (required unless auth on + DEPLOYMENT_MODE=local + ENV_NAME=local)
auth.jwtVerifyCert AUTH_JWT_VERIFY_CERT (inline public PEM, ConfigMap) unset
auth.jwtVerifyCertSecret.{name,key} / jwtVerifyCertPath AUTH_JWT_VERIFY_CERT_PATH (/etc/sisbajud/auth/jwt-verify.pem when the Secret is mounted) unset (one cert source is required, same exemption as the issuer)
identity.declarationEnabled / host / m2mClientId IDP_DECLARATION_ENABLED / IDP_HOST / IDP_M2M_CLIENT_ID false / "" / ""
m2m.targetService / credentialCacheTtlSec M2M_TARGET_SERVICE / M2M_CREDENTIAL_CACHE_TTL_SEC unset / 300
observability.serviceName / libraryName OTEL_RESOURCE_SERVICE_NAME / OTEL_LIBRARY_NAME br-sisbajud / github.com/LerianStudio/br-sfn/services/sisbajud
rateLimit.{enabled,max,windowSec} RATE_LIMIT_ENABLED / RATE_LIMIT_MAX / RATE_LIMIT_WINDOW_SEC true / 500 / 60
rateLimit.{aggressiveMax,aggressiveWindowSec,relaxedMax,relaxedWindowSec} AGGRESSIVE_RATE_LIMIT_* / RELAXED_RATE_LIMIT_* 100 / 60 / 1000 / 60
rateLimit.{allowFailOpen,allowDisabled,redisTimeoutMs} ALLOW_RATELIMIT_FAIL_OPEN / ALLOW_RATELIMIT_DISABLED / RATE_LIMIT_REDIS_TIMEOUT_MS "" / "" / 500
swagger.enabled / title / version / basePath SWAGGER_ENABLED / SWAGGER_TITLE / SWAGGER_VERSION / SWAGGER_BASE_PATH false / br-sisbajud / image tag / /
swagger.leftDelim / rightDelim SWAGGER_LEFT_DELIM / SWAGGER_RIGHT_DELIM {{ / }}
swagger.description / host / schemes SWAGGER_DESCRIPTION / SWAGGER_HOST / SWAGGER_SCHEMES unset
pagination.maxLimit / maxMonthDateRange MAX_PAGINATION_LIMIT / MAX_PAGINATION_MONTH_DATE_RANGE 100 / 3
admin.maxFileContentBytes / maxAuditVerifyWindow ADMIN_MAX_FILE_CONTENT_BYTES / ADMIN_MAX_AUDIT_VERIFY_WINDOW 104857600 / unset
runtime.godebug / gotraceback GODEBUG / GOTRACEBACK unset

Chart-derived keys: ENVIRONMENT_NAME/ENV_NAME default to production; POSTGRES_SSLMODE defaults to require (disable with the bundled subchart); VAULT_AUTH_METHOD defaults to token and VAULT_TRANSIT_MOUNT_PATH to transit; KMS_PROVIDER defaults to vault; MULTI_TENANT_ENABLED and PLUGIN_AUTH_ENABLED default to false. OTEL_EXPORTER_OTLP_ENDPOINT is overridden on the pod by http://$(HOST_IP):4317 (node-local collector) when telemetry is on and no endpoint is set.

Keys that only matter for local development (VAULT_PORT, VAULT_DEV_*, VAULT_APPROLE_ROLE_NAME, LOCALSTACK_DEBUG, APP_ENV) and the deprecated lib-auth aliases (DECLARATION_ENABLED, PLUGIN_IDENTITY_HOST, M2M_CLIENT_ID, M2M_CLIENT_SECRET) are not rendered. Set them under brSisbajud.configmap / brSisbajud.secrets if you need them. The advanced lib-streaming knobs (STREAMING_BATCH_MAX_BYTES, STREAMING_RECORD_RETRIES, STREAMING_CB_*, …) work the same way.

AWS KMS key mode. With KMS_PROVIDER=aws the key mode is now required: set brSisbajud.kms.awsKeyMode (or global.kms.awsKeyMode); provided also needs awsKeyArn, managed rejects it. Key mode and ARN follow brSisbajud.configmap > brSisbajud.kms > global.kms. The timeout and rotation interval are set under brSisbajud.vault (awsKmsTimeoutSec, awsKmsRotationCheckIntervalSec); KMS_AWS_* keys in the free-form brSisbajud.configmap still win as the native override. Mode and ARN are trimmed both for validation and in the ConfigMap; KMS_AWS_TIMEOUT_SEC (in every aws mode) and KMS_AWS_ROTATION_CHECK_INTERVAL_SEC (only in provided mode) are validated after trimming but rendered as set (the app trims them at boot). "+30" is refused at render although the app accepts it (deliberately stricter).

Secrets

Key Required when
POSTGRES_PASSWORD External Postgres in a production-like environment (single-tenant)
POSTGRES_REPLICA_PASSWORD Optional (replica with its own password)
REDIS_PASSWORD The external Redis requires auth
LICENSE_KEY Every environment (app 1.1.0 has no dev bypass; the render checks it everywhere)
VAULT_APPROLE_SECRET_ID global.kms.vaultAuthMethod: approle
VAULT_TOKEN vaultAuthMethod: token and ENVIRONMENT_NAME=production
STREAMING_SASL_PASSWORD / STREAMING_TLS_CA_CERT SASL mechanism set / a private broker CA (empty = system trust pool; the topics Job requires it with TLS)
SEAWEEDFS_ACCESS_KEY / SEAWEEDFS_SECRET_KEY The object store requires static credentials
STA_CLIENT_SECRET sta.transfersEnabled
STA_STREAM_SASL_PASSWORD / STA_STREAM_TLS_CA_CERT sta.consumerEnabled / sta.stream.tlsEnabled (base64 PEM)
IDP_M2M_CLIENT_SECRET identity.declarationEnabled
MULTI_TENANT_SERVICE_API_KEY / MULTI_TENANT_REDIS_PASSWORD Multi-tenancy on / tenant Redis requires auth

The Deployment lists the ConfigMap before the Secret in envFrom, so a Secret key always wins over a ConfigMap key of the same name.

Fail-fast gates

The render fails with the exact value to set (mirroring internal/bootstrap/config_validation.go) when:

A value supplied through brSisbajud.extraEnvVars satisfies the gate. With useExistingSecret, the gates skip the Secret keys.


Detached migrations

migrations.enabled (default true) ships a Job that runs ghcr.io/lerianstudio/br-sisbajud-migrations (golang-migrate). Against external Postgres it is a Helm pre-install,pre-upgrade hook and an ArgoCD PreSync hook (weight -1), so both helm install/upgrade and ArgoCD migrate before the app rolls. The Job follows the app’s resolved Postgres connection; migrations.postgres.* overrides it field by field.

The password comes from the same source the app effectively uses. Explicit migration overrides come first, then the app’s own precedence (pod env: wins over the subchart reference, which wins over envFrom):

  1. migrations.useExistingSecret;
  2. migrations.postgres.password;
  3. a brSisbajud.extraEnvVars POSTGRES_PASSWORD entry (reused verbatim);
  4. the bundled subchart or postgresql.auth.existingSecret;
  5. brSisbajud.useExistingSecret;
  6. brSisbajud.secrets.POSTGRES_PASSWORD.

Sources 2 and 6 are copied into a dedicated hook Secret (weight -2), because the app Secret does not exist yet in pre-install/PreSync. With plain Helm, that Secret is deleted once the hook phase succeeds (hook-succeeded), so no copy of the password is left behind, including after uninstall. With ArgoCD it is replaced on each sync. With none set, the render fails. With the bundled postgresql, migrations.postgres.password is refused at render: the app’s migrations initContainer would have to read it from that hook Secret, which only exists while the post-install hooks run. The bundled subchart Secret (or migrations.useExistingSecret) is used instead. The Job pod is hardened (non-root, read-only rootfs, drop ALL, no service-account token) and waits for Postgres with a busybox initContainer.

Execution API (plugin-br-sisbajud)

The Mensageria serves /v1/sisbajud/execution/* only on its own listener, SISBAJUD_EXECUTION_ADDRESS (:4032), exposed on the chart Service as port execution. TLS is terminated in the pod in every DEPLOYMENT_MODE: there is no plain-HTTP or upstream-TLS mode for it, a bearer token (the plugin’s M2M token from plugin-access-manager) is always required, and the app refuses to boot without the server certificate and key.

Topic provisioning

The Mensageria produces one topic, lerian.streaming.br-sisbajud, plus .dlq. lib-streaming creates both at boot when STREAMING_TOPIC_AUTO_PROVISION is true (default, streaming.topicAutoProvision) and its principal holds CreateTopics on them (without it, it only logs a WARN); streaming.topicPartitions / topicReplicationFactor tune that creation. So topics.enabled defaults to false. Enable it only for a broker whose app principal lacks CreateTopics: it ships a Helm pre-install/pre-upgrade + ArgoCD PreSync Job (rpk, list-then-create, idempotent) with the app’s resolved broker, TLS and SASL settings (SASL password and CA from a dedicated hook Secret, the existing Secret, or extraEnvVars). br-sfn publishes no Mensageria topics image, so the Job runs the product-agnostic ghcr.io/lerianstudio/br-sisbajud-topics:1.2.0 (pinned, not appVersion). lerian.streaming.br-sta belongs to br-sta: never list it. topics.partitions, topics.replicationFactor (must not exceed the broker count) and topics.retentionMs tune creation.

Bundled infrastructure (development only)

Bundled infrastructure is for development and quickstart only. Production installs must use external, managed infrastructure. Production means PostgreSQL with TLS, Valkey/Redis, Kafka/Redpanda with TLS, Vault/OpenBao in non-dev mode (or AWS KMS) and S3 object storage. The bundled postgresql, valkey, seaweedfs, openbao and redpanda subcharts exist for development, POC and quickstart installs. The render refuses the OpenBao and Redpanda bundles outside a development-class environment (local, development, develop, dev, test, e2e; staging is refused). The PostgreSQL, Valkey and SeaweedFS bundles only get a NOTES warning in a production-like environment, but they are unsupported in production all the same.

values-dev.yaml is a self-contained dev / evaluation install:

$ helm dependency update charts/br-sisbajud
$ helm install br-sisbajud charts/br-sisbajud -f charts/br-sisbajud/values-dev.yaml -n sisb-dev --create-namespace

It bundles, in the release namespace:

Subchart Version Toggle Mode
postgresql (Bitnami) 16.3.5 postgresql.enabled + external: false standalone, creates role/db br_sisbajud
valkey (Bitnami) 2.4.7 valkey.enabled + external: false standalone
seaweedfs 4.0.393 seaweedfs.enabled master/volume/filer + S3, no S3 auth
openbao 0.30.0 openbao.enabled dev mode (in-memory, auto-unsealed, root token)
redpanda 26.2.4 redpandaBundle.enabled 1 broker, no TLS, no SASL, no external listener

It runs with ENVIRONMENT_NAME=development, which relaxes the app’s production gates: plaintext Postgres and broker and PLUGIN_AUTH_ENABLED=false are allowed. A license is still required: app 1.1.0 refuses to boot without LICENSE_KEY in every environment, so create a Secret from a file and point brSisbajud.secretRefs.LICENSE_KEY at it. The bundle generates a dev execution TLS certificate (execution.tls.generate) and ships a throwaway JWT verification public key (its private half was discarded), so the app boots but no bearer verifies until you set your Access Manager’s public key and issuer (brSisbajud.auth). Inbound auth, the access-manager declaration publisher, the br-sta consumer/transfers client and multi-tenancy are off. plugin-access-manager, br-sta and the Midaz ledger are not bundled, so institutions are still seeded via the admin API.

With a br-sta dev bundle

values-dev-with-br-sta.yaml, layered on values-dev.yaml, wires br-sisbajud to a br-sta dev bundle (release br-sta) in the same namespace: it reuses br-sta’s SeaweedFS and Redpanda (the STA transfer bucket and endpoint then match, sta_bucket_parity is up) and points the transfers client at http://br-sta-manager:4028. The br-sta business-fact consumer stays off: the Mensageria requires SASL on br-sta’s cluster (sta.stream), which the br-sta dev Redpanda does not offer. Install br-sta with --set-json 'seaweedfsBuckets.extraBuckets=["sisbajud"]' so its bucket Job also creates br-sisbajud’s own bucket. There is no plugin-access-manager in either bundle, so the transfers client cannot mint its m2m bearer; transfer submission needs a real global.auth.host.

Derived connections

With a subchart enabled and no explicit value (configmap > dedicated mask > global.* still wins):

Key Derived from
POSTGRES_HOST / REDIS_HOST Bitnami Services; passwords via secretKeyRef to the subchart Secrets
SEAWEEDFS_S3_ENDPOINT (+ STA_OBJECT_STORAGE_ENDPOINT) http://<seaweedfs.nameOverride\|seaweedfs>-s3.<release ns>.svc.cluster.local:<s3.port>
VAULT_ADDR http://<release>-openbao.<release ns>.svc.cluster.local:8200 (collapse-aware); KMS_PROVIDER=vault, VAULT_AUTH_METHOD=token
VAULT_TOKEN secretKeyRef to the chart-generated dev-token Secret (br-sisbajud-openbao-dev-token, key token)
STREAMING_BROKERS <redpanda.fullnameOverride\|release>.<release ns>.svc.cluster.local.:9093, injected at the global.streaming tier

POSTGRES_SSLMODE defaults to disable and ALLOW_INSECURE_TLS to true with a bundled datastore.

Bootstrap Jobs

All the bootstrap Jobs are idempotent, non-root with a read-only rootfs (PSS restricted), carry native-sidecar mesh annotations, and are replaced on each run (before-hook-creation). The finished Job stays until ttlSecondsAfterFinished.

Production guard

The render fails when openbao or redpandaBundle is enabled outside a development-class environment, that is anything but local|development|develop|dev|test|e2e (case-insensitive). Staging is refused too: the app relaxes its own gates in staging (plaintext Postgres and broker), but a staging tier holds data someone expects to keep, and OpenBao dev mode loses every Transit key on a restart:

The guard only decides whether the dev-only bundles render. The app’s own relaxations are separate: only local|development|staging|e2e|test relax its gates (dev and develop pass the guard, but the app treats them as production, so they still need TLS). PLUGIN_AUTH_ENABLED=false follows a different list (development|develop|dev|local|test). No environment skips the license. A dev install uses development, as values-dev.yaml does.

The postgresql / valkey / seaweedfs bundles render in any environment, as in the sibling charts, and NOTES.txt warns when they run production-like. That is a warning, not support: they are unsupported in production. Kafka/Redpanda and the KMS are external in production: set global.streaming and global.kms.

Caveats