feat: TTL pruning, retry jitter, priority queue, webhook HMAC enforcement - #788
Open
ofodumchristopher32-web wants to merge 1 commit into
Conversation
…ment - claimableBalanceFallback: add per-entry TTL (default 24h), pruneExpired() method that removes stale entries and returns count, auto-prune on every track() call to prevent unbounded memory growth. Closes Stellar-split#735 - retryEngine: add RetryEngineOptions.jitterFactor (0-1, default 0.2); each computed delay is multiplied by a random value in [1-jf, 1+jf] to spread retry storms. jitterFactor=0 disables jitter entirely and skips the Math.random call. Closes Stellar-split#733 - queue: enqueue() accepts an optional priority (higher = dequeued first); equal-priority items preserve FIFO insertion order via binary insertion. Add peek() to inspect the next-to-drain item without removing it. Closes Stellar-split#732 - webhookValidator: add validateWebhook(payload, rawBody, secret, signature) that verifies hmac-sha256= formatted signatures using Node.js crypto.timingSafeEqual; throws WebhookSignatureError on mismatch; passes when secret is null (opt-out mode). Closes Stellar-split#731
|
@ofodumchristopher32-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
claimableBalanceFallback: add per-entry TTL (default 24h), pruneExpired() method that removes stale entries and returns count, auto-prune on every track() call to prevent unbounded memory growth. Closes Add HMAC-SHA256 signature verification to webhookValidator #735
retryEngine: add RetryEngineOptions.jitterFactor (0-1, default 0.2); each computed delay is multiplied by a random value in [1-jf, 1+jf] to spread retry storms. jitterFactor=0 disables jitter entirely and skips the Math.random call. Closes Add priority-based ordering to the queue module #733
queue: enqueue() accepts an optional priority (higher = dequeued first); equal-priority items preserve FIFO insertion order via binary insertion. Add peek() to inspect the next-to-drain item without removing it. Closes Add per-attempt jitter to retry backoff intervals in retryEngine #732
webhookValidator: add validateWebhook(payload, rawBody, secret, signature) that verifies hmac-sha256= formatted signatures using Node.js crypto.timingSafeEqual; throws WebhookSignatureError on mismatch; passes when secret is null (opt-out mode). Closes Add TTL expiry tracking for claimable balance entries in claimableBalanceFallback #731