fix: security audit fixes + cookie consent + GDPR data export - #9
Merged
Conversation
…EC-017 audit findings - SEC-001: Fail-closed middleware catch block returns 503 for protected routes - SEC-003: Document rate limiter in-memory limitation and upgrade path - SEC-004: Server-side is_active false→true plan limit check on lead reactivation - SEC-008: Server-side CSV import with auth, rate limiting (5/min), field validation, plan enforcement - SEC-016: Sentry PII scrubber (emails, phones, UUIDs in breadcrumbs/exceptions/URLs) - SEC-017: Stripe customer ID race condition fix (23505 error handling) + unique partial index migration
- CookieConsent component: role=dialog, aria-live=polite, keyboard Escape, localStorage persistence - ConsentAwareAnalytics: conditionally renders Vercel Analytics/SpeedInsights based on user consent - GET /api/export: authenticated data export (profile, leads, actions) with rate limiting (5/min) - Settings page: Download My Data button triggers JSON file download - middleware.test.ts: fix vi.fn constructor mock (arrow → function, remove this: unknown) - 21 new source-assertion tests (11 cookie-consent + 10 export) - 275/275 unit tests pass, tsc clean, lint clean, build succeeds
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI/CD Pipeline Results
Preview URL: https://agentflow-mupuppzc7-ryans-projects-9d1f8f11.vercel.app |
…sting next.js vulns)
dream-creator
added a commit
that referenced
this pull request
Jun 21, 2026
fix: security audit fixes + cookie consent + GDPR data export
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.
Security Fixes (GLM 5.2 Audit)
New Features
Verification