1.6 KiB
1.6 KiB
Changelog - Remediation "Full Audit Fix"
[Unreleased] - 2024-12-07
Security
- chat-server: Implemented JWT Authentication Middleware for HTTP API.
- Secured
/api/messages(POST) and/api/messages/{id}(GET). - Enforced permission checks (
can_send_message,can_read_conversation). - Patched
sender_idspoofing vulnerability by enforcing User ID from Token Claims.
- Secured
- backend: Resolved
veza_errors_totalmetric collision preventing proper monitoring initialization.
Fixed
- backend: Fixed
JobWorkerstarvation issue by replacing blockingtime.Sleepwith non-blocking scheduler. - stream-server: Improved task safety by replacing unsafe
abort()with gracefuljoin/awaitfor monitoring tasks. - chat-server: Fixed resource leak by implementing 60s WebSocket inactivity/heartbeat timeout.
- chat-server: Implemented Graceful Shutdown handling for OS signals (SIGTERM/SIGINT).
- backend-tests: Fixed
RoomHandlerunit tests.- Refactored
RoomHandlerto useRoomServiceInterfacefor dependency injection. - Updated
CreateRoomtests to match actual Service signatures. - Fixed
bitrate_handler_test.gocompilation errors. - Resolved global metric registration panics during testing.
- Refactored
Removed
- backend: Deleted legacy maintenance code (
migrations_legacy/andsrc/cmd/main.go.legacy).
Known Issues
- backend: Some unit tests (
metrics_test.go,profile_handler_test.go,system_metrics_test.go) are disabled due to bitrot/missing dependencies. - stream-server: Compilation requires active Database connection (sqlx compile-time verification) or
sqlx-data.json.