fix: reject unknown websocket routes #10
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/websocket-route-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/ws/household/route unchanged; scanner paths are not aliased.Root cause
Channels
URLRouterraisesValueErrorfor unmatched paths. A final rejecting consumer turns those probes into normal handshake failures, leaving no exception for Sentry to capture.Verification
env -u PYTHONPATH DJANGO_SECRET_KEY=x uv run python manage.py test— 58 tests passed after compiling the translation catalogs with gettext. The test run emitted one non-failing warning that the localstaticfiles/directory was absent.git diff --checkpassed./websocketreturned HTTP 403; there were zero unhandled-route error log lines and zero Sentry events captured by a localbefore_sendcallback with a dummy DSN. The callback dropped events locally; nothing was sent to external Sentry.Risk
Only unknown WebSocket paths change. No database or deployment changes are included.