You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Breaking:WebhookEventStoreInterface::claim() now returns ?WebhookClaimToken instead of bool, and complete()/release() require
the token as a third argument. Both finalisers must be no-ops when the token
no longer matches the stored claim. This fences claim ownership: with
lease-based expiry a stalled worker whose claim was taken over could
otherwise finalise an attempt it no longer owns — and its release() would
delete the new owner's live claim, letting a third delivery start processing
concurrently. WebhookProcessor threads the token from claim() through to
both finalisers; implementations mint a token per claim
(WebhookClaimToken::generate()) and compare it before acting. Same-store
claims with no expiry semantics are unaffected beyond the signature change.
Added
WebhookClaimToken: opaque claim-ownership token — non-empty URL-safe value
of at most 128 bytes, generate() factory (128 bits of entropy) and
constant-time equals().