Commit Graph
3 Commits
Author SHA1 Message Date
94694deb91 fix: address code review feedback - add error handling and fix import style
Co-authored-by: ZimengXiong <[email protected]>
2026-02-06 14:52:47 -08:00
ef75f9ebdf test: add user data sandboxing security tests
Co-authored-by: ZimengXiong <[email protected]>
2026-02-06 14:52:47 -08:00
5e782e4044 fix: scope drawings cache by userId and add Socket.io authentication
Security fixes:
1. Drawings cache now includes userId in cache key to prevent data leakage
   between users making identical queries.
2. Socket.io connections now require JWT authentication when auth is enabled.
3. Socket.io join-room verifies drawing ownership before allowing access.
4. Frontend passes auth token when connecting to Socket.io.

Co-authored-by: ZimengXiong <[email protected]>
2026-02-06 14:52:47 -08:00