-
Aryan Noshirvnai authored
POST /remix and GET /remix/{job_id} previously had no authentication at all - user_id was a raw client-supplied form field, and job status was fetchable by guessing sequential ids (IDOR). Both endpoints now require a logged-in user; RemixJob gets a new user_id column (migration 347da5d41656) so job status is scoped to its owner. Also closed an adjacent IDOR found while fixing this: library_song_ids sourcing now scopes to the caller's own library, not any song id. WS /social/rooms/{room_id}/ws took user_id as an unauthenticated query param - anyone could connect claiming to be any user. It now takes a JWT access token instead (browsers can't set WS headers, so it travels as a query param) and verifies it - signature, expiry, real user row - before accepting the connection. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
913721b5
| Name |
Last commit
|
Last update |
|---|---|---|
| alembic | ||
| deploy | ||
| scripts | ||
| src | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| Dockerfile | ||
| README.md | ||
| alembic.ini | ||
| docker-compose.yml | ||
| requirements-remix.txt | ||
| requirements.txt | ||
| setup.sh |