Skip to content

fix: add auth to unprotected endpoints, redact .env.example#5

Merged
claygeo merged 1 commit intomainfrom
fix/security-endpoints
Apr 2, 2026
Merged

fix: add auth to unprotected endpoints, redact .env.example#5
claygeo merged 1 commit intomainfrom
fix/security-endpoints

Conversation

@claygeo
Copy link
Copy Markdown
Owner

@claygeo claygeo commented Apr 2, 2026

Summary

  • Add authMiddleware to stress-test POST /speed (was unauthenticated, anyone could toggle stress test on prod)
  • Add authMiddleware to leaderboard POST /sync-all (was unauthenticated, DoS vector)
  • Replace real Supabase project URL in server/.env.example with placeholder

From /cso security audit findings H1, H2, H3.

Test plan

  • Server lint passes
  • Server typecheck passes
  • 69/69 tests passing
  • CI pipeline passes

Add authMiddleware to stress-test /speed POST and leaderboard
/sync-all POST endpoints that were previously unauthenticated.
Replace real Supabase project URL in .env.example with placeholder.
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for trading-sim-hl canceled.

Name Link
🔨 Latest commit 1fb1994
🔍 Latest deploy log https://app.netlify.com/projects/trading-sim-hl/deploys/69cdbc1a1aa773000839bcb4

@claygeo claygeo merged commit c03afc0 into main Apr 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant