feat(backend): harden Payment Session Validator and Merchant Settings… - #1588
Merged
Conversation
… & API Key Service - Retry transient payment session persistence failures with full-jitter exponential backoff; never retry validation/constraint errors, and treat a duplicate key on a retry as an already-persisted session (emdevelopa#1449) - Add distributed per-(merchant, Idempotency-Key) session lock using Redis SET NX PX with compare-and-delete release, in-process fallback, and an idempotency replay check inside the lock; concurrent twins get 409 (emdevelopa#1450) - Add integration and stress test suite for the session pipeline, including multi-node concurrency and fault injection (emdevelopa#1451) - Sanitize merchant settings/API key payloads (prototype-pollution keys, control chars, size limits) and enforce strict schemas, webhook header rules, and bounded API key expiry, with service-level guards (emdevelopa#1482) Closes emdevelopa#1449 Closes emdevelopa#1450 Closes emdevelopa#1451 Closes emdevelopa#1482 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@LawalRahman is attempting to deploy a commit to the Emmanuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@LawalRahman 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! 🚀 |
…chant-settings-hardening
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.
… & API Key Service
Closes #1449
Closes #1450
Closes #1451
Closes #1482