helm

br-consignado-gw Helm Chart

Deploys the br-consignado-gw Dataprev consignado gateway together with its operator console. The console is a separate nginx SPA Deployment, but it shares one ingress host with the API: / serves the UI and /v1 routes to the API. That topology is intentional — the console refuses cross-origin API URLs so its Bearer token cannot be sent to an arbitrary origin.

Chart Contract

Components

API

api.configmap and api.secrets are verbatim maps, not allowlists. This keeps the chart compatible as the gateway gains rail, outbox, tenant, and observability settings. Put only non-secret settings in api.configmap; secret fields belong in api.secrets or an existing Secret.

Operator console

The console gets public runtime values from ui.configmap, rendered into /config.js at container start. CASDOOR_CLIENT_ID is a PKCE public identifier, not a secret. The API and UI must use the same browser origin; ingress.apiPaths keeps /v1, health, readiness, version, and metrics routed to the API while the UI owns /.

Migrations

migrations.enabled creates an ArgoCD PreSync Secret (weight -2) and Job (weight -1). This sequencing is necessary on a first install: the Job cannot read the main-sync API Secret. The Job invokes migrate from br-consignado-gw-migrations and uses the migration image’s /migrations tree. Passwords must be URL-safe for the PostgreSQL migration DSN.

Validation

helm lint charts/br-consignado-gw
helm template br-consignado-gw charts/br-consignado-gw \
  -f .github/configs/helm-render-values/br-consignado-gw.yaml