Skip to content

fix(webhooks): persist tenant-scoped subscriptions across replicas (#447) - #734

Open
woahwhattheheck wants to merge 5 commits into
Protocol-Guild:mainfrom
woahwhattheheck:fix/payd447-persistent-webhooks-20261008-sol56
Open

woahwhattheheck wants to merge 5 commits into
Protocol-Guild:mainfrom
woahwhattheheck:fix/payd447-persistent-webhooks-20261008-sol56

Conversation

@woahwhattheheck

@woahwhattheheck woahwhattheheck commented Oct 8, 2026 •

Copy link
Copy Markdown

Closes #447.

This original-author contribution replaces the process-local webhook subscription array with persistent, shared database storage, so subscriptions survive restarts and are accessible from multiple backend replicas. It adds migration 032_create_webhook_subscriptions.sql, tenant-scoped database CRUD, UUID identifiers, async controller operations, and an organization-bound dispatch path. The liquidity-alert caller carries organization context. The existing route-level focused regression checks UUID format and readback of a subscription inserted through a second storage path, reflecting the cross-replica requirement.

Original source woahwhattheheck:fix/payd447-persistent-webhooks-20261008-sol56 at 93466cce1f9faddff56841482e52927bccf7522a: 5 source commits across exactly 5 files, ahead 5 / behind 0 against sponsor main at submission preflight. No full backend suite, live DB multi-pod deployment, broad CI-green claim, frontend modification or retry redesign is asserted.

/claim #447

I, @woahwhattheheck, affirmatively claim original-contributor credit and request review for any eligible GrantFox OSS/FWC26 bounty compensation for this issue #447 delivery. Please confirm acceptance, eligibility, any award amount and settlement instructions. No award or actual payment has been confirmed.

Relationship to existing PR #704

The original contributor also has PR #704 for issue #502. The implementations overlap substantially in persistent subscription storage and migration 032_create_webhook_subscriptions.sql. PR #704 additionally implements subscription PATCH CRUD; this PR documents issue #447's cross-replica/tenant-scoping and UUID expectations with its own focused regression. These are alternative overlapping implementation branches and should not be merged independently without reconciling the shared migration and service changes. Please review both issue requirements and preserve attribution to the original author when choosing the integration order. Existing issue-linked reward eligibility remains subject to sponsor evaluation, not automatic payment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhook subscriptions stored in-memory — lost on restart, broken under multi-replica deployment

1 participant