caddy: review the payment webhook rate limit against provider retries #545

Öppen
öppnade 2026-10-05 12:32:56 +00:00 av supernaut · 0 kommentarer
Ägare

Problem

The Caddy billing_webhook rate-limit zone allows 60 events per minute per source IP on POST /webhooks/mollie (roles/caddy/defaults/main.yml:121-122). The payment provider sends webhooks and retries from a small set of addresses. A burst, or a flood from one address, could answer genuine webhooks with 429. Provider retries then run out after 26 hours, and only the billing service's reconciliation sweep catches paid payments afterwards. Failed renewals are not caught that way.

Fix

Measure webhook volume once payments run on staging, then either raise the limit or key it differently. Do not use the provider's IP list for authentication: it is documented to change.

Done when

  • The chosen limit is recorded with its reason in the Caddy role defaults.
## Problem The Caddy `billing_webhook` rate-limit zone allows 60 events per minute per source IP on `POST /webhooks/mollie` (`roles/caddy/defaults/main.yml:121-122`). The payment provider sends webhooks and retries from a small set of addresses. A burst, or a flood from one address, could answer genuine webhooks with 429. Provider retries then run out after 26 hours, and only the billing service's reconciliation sweep catches paid payments afterwards. Failed renewals are not caught that way. ## Fix Measure webhook volume once payments run on staging, then either raise the limit or key it differently. Do not use the provider's IP list for authentication: it is documented to change. ## Done when - The chosen limit is recorded with its reason in the Caddy role defaults.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#545
Ingen beskrivning angiven.