Skip to content

feat(midaz): add CRM/Fees/Tracer env vars and update tracer image#1695

Closed
gandalf-at-lerian wants to merge 1 commit into
mainfrom
feat/midaz-v4-monorepo-envs
Closed

feat(midaz): add CRM/Fees/Tracer env vars and update tracer image#1695
gandalf-at-lerian wants to merge 1 commit into
mainfrom
feat/midaz-v4-monorepo-envs

Conversation

@gandalf-at-lerian

@gandalf-at-lerian gandalf-at-lerian commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Requested by: Ygohr

Contexto

PR LerianStudio/midaz#2159 consolidou tracer, fees e CRM no binário unificado do ledger (midaz v4 monorepo); #2239 corrigiu o Dockerfile. O chart do ledger renderiza apenas chaves explícitas do configmap/secrets (não faz range genérico), então as novas env vars precisam de suporte explícito no template para que os overrides do gitops tenham efeito.

midaz chart (version 8.6.0 → 8.6.1)

  • templates/ledger/configmap.yaml: renderiza MONGO_CRM_*, KMS_VENDOR, MONGO_FEES_* e o seam do Tracer (TRACER_BASE_URL, TRACER_TRANSPORT, TRACER_TLS_MODE).
  • templates/ledger/secrets.yaml: renderiza LCRYPTO_HASH_SECRET_KEY, LCRYPTO_ENCRYPT_SECRET_KEY, MONGO_CRM_PASSWORD, MONGO_FEES_PASSWORD — todas com guards {{- if }}, só emitidas quando setadas (deployments existentes não afetados).
  • values.yaml (seção ledger): defaults seguros (strings vazias) para todas as novas chaves de configmap e secrets.

tracer chart (version 2.1.0 → 2.1.1)

  • templates/configmap.yaml + values.yaml: adicionadas RESERVATION_REAPER_ENABLED, RESERVATION_REAPER_INTERVAL_SECONDS, RULE_SYNC_POLL_INTERVAL_SECONDS com defaults seguros.

Verificação

  • helm lint OK em ambos os charts (warnings de RABBITMQ pré-existentes, não relacionados).
  • helm template confirma que todas as novas chaves renderizam corretamente.

@gandalf-at-lerian
gandalf-at-lerian requested a review from a team as a code owner July 21, 2026 18:13
@github-actions github-actions Bot added the midaz label Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 16eb91fc-c6e8-4cbd-8754-529699c107d6

📥 Commits

Reviewing files that changed from the base of the PR and between a18d19c and 304dc9e.

📒 Files selected for processing (7)
  • charts/midaz/Chart.yaml
  • charts/midaz/templates/ledger/configmap.yaml
  • charts/midaz/templates/ledger/secrets.yaml
  • charts/midaz/values.yaml
  • charts/tracer/Chart.yaml
  • charts/tracer/templates/configmap.yaml
  • charts/tracer/values.yaml

📝 Walkthrough

Walkthrough

The Midaz ledger chart adds CRM, Fees, crypto, and Tracer configuration. The Tracer chart adds Reservation Reaper and Rule Sync settings. Both chart versions are incremented.

Changes

Midaz ledger configuration

Layer / File(s) Summary
Ledger configuration and chart release
charts/midaz/values.yaml, charts/midaz/templates/ledger/configmap.yaml, charts/midaz/templates/ledger/secrets.yaml, charts/midaz/Chart.yaml
Adds CRM and Fees MongoDB settings, Tracer environment variables, optional crypto and database secrets, and increments the chart version to 8.6.1.

Tracer configuration

Layer / File(s) Summary
Tracer feature configuration
charts/tracer/values.yaml, charts/tracer/templates/configmap.yaml, charts/tracer/Chart.yaml
Adds Reservation Reaper and Rule Sync settings and increments the chart version to 2.1.1.

Possibly related PRs

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch feat/midaz-v4-monorepo-envs

Comment @coderabbitai help to get the list of available commands.

@Ygohr Ygohr changed the title feat(midaz-v4): add CRM/Fees/Tracer env vars and update tracer image feat(ledger): add CRM/Fees/Tracer env vars and update tracer image Jul 21, 2026
@Ygohr Ygohr changed the title feat(ledger): add CRM/Fees/Tracer env vars and update tracer image feat(midaz): add CRM/Fees/Tracer env vars and update tracer image Jul 21, 2026
@Ygohr Ygohr closed this Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants