Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Aug 16:28
· 5 commits to master since this release
39a7526

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().