Repository navigation
feat: audit IP/export, webhook replay protection and backend build cleanup - #2043
Merged
yusuftomilola merged 2 commits intoOct 17, 2026
Conversation
…eanup Closes DistinctCodes#1940 Closes DistinctCodes#1939 Closes DistinctCodes#1938 Closes DistinctCodes#1937
|
@OladipupuHussein7 is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@OladipupuHussein7 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! 🚀 |
2 tasks
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.
Summary
Audit enrichment, webhook replay protection, and removing the last React/
Sentryartifacts from the NestJS backend so it type-checks cleanly.1790007000000-AddAdminActionLogRequestMetadataadds the nullableip/user_agentcolumns and is reversible.timestamp + '.' + body, a configurable tolerance (PAYMENT_WEBHOOK_TOLERANCE_SECONDS, default 300s) rejects stale captures, and an event-id ledger in Redis (TTL-scoped,SET NX) acks duplicates without applying them twice; Redis outages fail open so legitimate webhooks aren't dropped.OfflineBanner,AdminBreadcrumbs,AdminToast) are relocated/wired correctly for the app-router layouts, and the backend no longer contains.tsx/React/Sentryreferences (fixes the pre-existingCannot find name 'Sentry', missing./ToastProvider, andrandomUUIDimport errors).npm run buildnow exits 0 with no TypeScript errors.Also fixes the duplicate
export default AppDataSourcethat brokemigration:run/migration:revert.Verification
npm run build→ exit 0, zeroerror TS.npx jest src/admin-audit src/payments/payment-webhook.controller.spec.ts src/payments/webhook-replay.service.spec.ts src/payments/adapters/sandbox-rail.adapter.spec.ts→ 7 suites / 59 tests passing.npm run migration:runandnpm run migration:revertverified against a fresh database.Issues
Closes #1940
Closes #1939
Closes #1938
Closes #1937