Skip to content

Flux Notification Receiver Quick Fix - Webhook Receiver Config

DodaTech Updated 2026-06-26 1 min read

Flux Receiver resource accepts incoming webhooks from external systems (GitHub, GitLab, Bitbucket) to trigger reconciliations. Misconfigured receivers reject or ignore webhook payloads. This guide covers the fix.

Quick Fix

Wrong

apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Receiver
metadata:
  name: github-receiver
spec:
  type: github
  events:
  - ping
  - push

The issue: missing secretRef for webhook payload validation. Any sender can trigger reconciliations. Also missing resources to specify which resources to reconcile on webhook.

apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Receiver
metadata:
  name: github-receiver
spec:
  type: github
  events:
  - ping
  - push
  secretRef:
    name: webhook-secret
  resources:
  - kind: GitRepository
    name: flux-system
# Expected output after applying the fix
# Receiver ready for GitHub webhooks
# Payload validated with webhook secret
# On push event: GitRepository flux-system reconciled
# Receiver status: True

Prevention

  • Always configure secretRef for webhook payload authentication
  • Specify resources to define which Flux resources reconcile on webhook
  • Match type to the webhook source (github, gitlab, bitbucket, generic)
  • List needed events for selective reconciliation triggering
  • Verify receiver endpoint with kubectl describe receiver

DodaTech Tools

Doda Browser's receiver manager shows webhook delivery history and status. DodaZIP archives receiver configurations for audit. Durga Antivirus Pro validates webhook payloads.

FAQ

How does the Receiver authenticate webhook payloads?

The Receiver compares the received webhook signature with a signature computed using the secret from secretRef. Payloads with invalid signatures are rejected. ||| What is the Receiver's webhook URL? The webhook URL is http://<receiver-service>/hooks/<receiver-name>. Create an Ingress or LoadBalancer to expose it externally for webhook delivery. ||| Can a Receiver trigger reconciliation of multiple resources? Yes, list multiple resources in spec.resources. Each matching resource is reconciled when the webhook event arrives.

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro