Fix #255 #264 #265 #267: tax export, webhook retries, savings validation, SEP-24 HMAC#272
Merged
davedumto merged 2 commits intodavedumto:mainfrom Feb 26, 2026
Conversation
|
@josephchimebuka is attempting to deploy a commit to the david's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
Fix #255 #264 #265 #267: Tax export crash, webhook retries, savings validation, SEP-24 callback security
Summary
This PR resolves 4 issues in one cohesive update focused on reliability, security, and data integrity:
What Changed
1) Webhook Retry Reliability (#264)
failedafter max retries.GET /api/cron/process-webhook-retriesGET /api/routes-d/developers/webhooks/[id]/deliveries2) Tax Export Null-Date Crash (#255)
completedAtrecords from entering tax report datasets.UNKNOWN_DATE) to avoid runtime crashes if malformed records appear.3) Savings Percentage Validation Hardening (#265)
validateTotalSavingsPercentage(...)4) SEP-24 Callback Security (#267)
lib/sep24-webhook-verify.ts:POST /api/webhooks/sep24?anchor=...yellow-card/yellowcard.Key Files
lib/webhooks.tsapp/api/cron/retry-webhooks/route.tsapp/api/cron/process-webhook-retries/route.tsapp/api/routes-d/developers/webhooks/[id]/deliveries/route.tsapp/api/routes-d/tax-reports/_shared.tsapp/api/routes-d/tax-reports/export/route.tsapp/api/routes-d/tax-reports/annual/route.tsapp/api/routes-d/savings/_shared.tsapp/api/routes-d/savings/goals/route.tsapp/api/routes-d/savings/goals/[id]/route.tslib/sep24-webhook-verify.tsapp/api/webhooks/sep24/route.tsscripts/generate-sep24-test-signature.tstests/lib/sep24-webhook-verify.test.tstests/savings-goals-logic.test.tsvercel.jsonValidation Performed
tests/savings-goals-logic.test.tstests/lib/sep24-webhook-verify.test.tsnpx vitest run --exclude tests/lib/authorization.test.tsNEXT_DISABLE_TURBOPACK=1 npm run buildnpm run lint(warnings only; no new blocking errors)Notes
tests/lib/authorization.test.ts) requiresDATABASE_URLin CI/runtime.middleware.ts,next.config.ts,package.json) are intentionally not included in this PR.Closes #255
Closes #264
Closes #265
Closes #267