fix: security hardening, CSP, WCAG contrast, env vars#27
Merged
Conversation
Security (agentic review - 7 fixes): - Reject requests in non-dev environments when API_KEY is unset (auth.py) - Add PROXY_SECRET env var to gate frontend API proxy access (route.ts) - Add BRIGHTCLAUSE_API_KEY support to MCP server (index.js) - Replace SQL f-string interpolation with parameterized query (search.py) - Add rate limits to 7 AI-inference endpoints (analysis, graph, deals) - Sanitize filenames in batch upload with null byte and length checks - Add security headers: HSTS, X-Frame-Options, nosniff, Referrer-Policy Remotion video: - Remove GlowOrb from all 8 scenes (AI slop reduction) - Convert width-based bar animations to scaleX (compositor performance) - Remove colored accent stripe from deal cards WCAG: - Fix hero-visual clause refs contrast (text-ink-400 -> text-ink-500) - Add 28-test Playwright verification spec for live site checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ink-500 was dimmer than ink-400 in dark mode (lower numbers = brighter). ink-300 (190, 186, 178) gives well over 4.5:1 contrast on bg-ink-800/30. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
LIVE_URL was hardcoded to brightclause.com. Now reads from BASE_URL env var so tests can run against preview deployments too. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Content-Security-Policy header covering script-src, style-src, font-src, connect-src, worker-src, frame-src. Blocks external script injection while allowing Next.js, Google Fonts, and Vercel Analytics. Add .env.example for frontend (BACKEND_URL, BACKEND_API_KEY, PROXY_SECRET) and update backend .env.example with generation hint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Test plan
🤖 Generated with Claude Code