Skip to content

fix(plugin-br-pix-indirect-btg): add WEBHOOK_DEFAULT_URL to outbound configmap#1127

Open
gandalf-at-lerian wants to merge 1 commit intodevelopfrom
fix/outbound-webhook-default-url
Open

fix(plugin-br-pix-indirect-btg): add WEBHOOK_DEFAULT_URL to outbound configmap#1127
gandalf-at-lerian wants to merge 1 commit intodevelopfrom
fix/outbound-webhook-default-url

Conversation

@gandalf-at-lerian
Copy link
Contributor

Problem

The outbound worker panics on startup when entity-specific webhook URLs are not configured, because WEBHOOK_DEFAULT_URL is missing from the configmap template.

panic: WEBHOOK_DEFAULT_URL is required when entity DICT_FUNDS_RECOVERY has no specific URL configured

This causes CrashLoopBackOff in dev environments running 1.5.0-beta.16.

Fix

Add WEBHOOK_DEFAULT_URL to the outbound configmap template and default values.yaml. Defaults to empty string — environments that need it can set it in their gitops values.

Related

  • Severino task in #devops-team (ImagePullBackOff investigation)

…configmap

The outbound worker requires WEBHOOK_DEFAULT_URL as a fallback when
entity-specific URLs (e.g. DICT_FUNDS_RECOVERY) are not configured.
Without it, the worker panics on startup:

  panic: WEBHOOK_DEFAULT_URL is required when entity DICT_FUNDS_RECOVERY
  has no specific URL configured

Added to both the configmap template and default values.yaml.
@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

Walkthrough

This change adds a new configuration parameter WEBHOOK_DEFAULT_URL to the outbound webhook global settings in the Helm chart for the plugin-br-pix-indirect-btg. The parameter is defined in both the ConfigMap template and the values.yaml file, allowing operators to optionally specify a default webhook URL at deployment time. The default value is an empty string, preserving backward compatibility with existing deployments.

🚥 Pre-merge checks | ✅ 1 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides clear problem context, the implemented fix, and related references, but does not follow the repository's Midaz Pull Request Checklist template with required sections and checkboxes. Follow the provided PR template by including the Pull Request Type section and Checklist section with appropriate checkboxes to ensure consistency with repository standards.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and specifically describes the main change: adding WEBHOOK_DEFAULT_URL to the outbound configmap for the plugin-br-pix-indirect-btg chart.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

📝 Coding Plan
  • Generate coding plan for human review comments

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

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@charts/plugin-br-pix-indirect-btg/templates/outbound/configmap.yaml`:
- Line 93: Normalize the Helm template brace spacing for the WEBHOOK_DEFAULT_URL
entry so it uses a single space after the opening braces and before the closing
braces; update the template expression for WEBHOOK_DEFAULT_URL to "{{
.Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default \"\" | quote }}"
(adjusting only the brace spacing around the existing
.Values.outbound.configmap.WEBHOOK_DEFAULT_URL expression) to satisfy YAMLlint.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 27c04993-4042-47a4-9733-6cb2becb333c

📥 Commits

Reviewing files that changed from the base of the PR and between ffab13a and 0dd6d81.

📒 Files selected for processing (2)
  • charts/plugin-br-pix-indirect-btg/templates/outbound/configmap.yaml
  • charts/plugin-br-pix-indirect-btg/values.yaml

# ==============================================================================
# WARNING: Webhook URLs must be explicitly set in values.yaml or values-<env>.yaml
# Leaving empty disables external webhook delivery for safety
WEBHOOK_DEFAULT_URL: {{ .Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default "" | quote }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix template brace spacing to satisfy YAMLlint.

Line 93 is currently flagged by YAMLlint (braces) in this PR. Please normalize the template braces on this line to avoid lint failure.

Suggested fix
-  WEBHOOK_DEFAULT_URL: {{ .Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default "" | quote }}
+  WEBHOOK_DEFAULT_URL: {{.Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default "" | quote}}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
WEBHOOK_DEFAULT_URL: {{ .Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default "" | quote }}
WEBHOOK_DEFAULT_URL: {{.Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default "" | quote}}
🧰 Tools
🪛 YAMLlint (1.38.0)

[error] 93-93: too many spaces inside braces

(braces)


[error] 93-93: too many spaces inside braces

(braces)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@charts/plugin-br-pix-indirect-btg/templates/outbound/configmap.yaml` at line
93, Normalize the Helm template brace spacing for the WEBHOOK_DEFAULT_URL entry
so it uses a single space after the opening braces and before the closing
braces; update the template expression for WEBHOOK_DEFAULT_URL to "{{
.Values.outbound.configmap.WEBHOOK_DEFAULT_URL | default \"\" | quote }}"
(adjusting only the brace spacing around the existing
.Values.outbound.configmap.WEBHOOK_DEFAULT_URL expression) to satisfy YAMLlint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant