veza/veza-stream-server
senke e273827879 fix(stream): replace critical .unwrap() with safe alternatives
- middleware/logging.rs: UUID header parse .unwrap() -> unwrap_or_else
- routes/api.rs: serde_json::to_value().unwrap() -> proper error return
- routes/api.rs: event_bus.as_ref().unwrap() -> map_or(false, ...) guard
- structured_logging.rs: file_path.parent().unwrap() -> unwrap_or_else(".")
- cache/audio_cache.rs: NonZeroUsize::new().unwrap() -> fallback to 1024

Focuses on highest-risk locations: request handlers and middleware.

Addresses audit finding D9: .unwrap() in production code.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 23:22:03 +01:00
..
.github/workflows fix(ci): upgrade deprecated actions, fix Go version 2026-02-11 23:14:50 +01:00
audio adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
benches adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
dashboards adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
docs P0: stabilisation backend/chat/stream + nouvelle base migrations v1 2025-12-06 11:14:38 +01:00
k8s/production adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
migrations report generation and future tasks selection 2025-12-08 19:57:54 +01:00
proto adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
scripts report generation and future tasks selection 2025-12-08 19:57:54 +01:00
src fix(stream): replace critical .unwrap() with safe alternatives 2026-02-11 23:22:03 +01:00
tools adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
.clippy.toml adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
.env.example fix(security): validate OAuth redirect URL against allowlist, require auth for internal transcode endpoint 2026-02-11 21:28:26 +01:00
.gitignore report generation and future tasks selection 2025-12-08 19:57:54 +01:00
AUDIT_EXHAUSTIF_STREAM_SERVER.md refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
AUDIT_STREAM_SERVER_RUST.md adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
build.rs [T0-002] fix(rust): Corriger erreurs compilation Rust 2026-01-04 01:44:20 +01:00
Cargo.toml fix(deps): upgrade outdated Rust dependencies across services 2026-02-11 23:18:34 +01:00
check_errors.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
docker-compose.yml fix(security): restrict CORS origins in stream-server 2026-02-11 22:42:04 +01:00
Dockerfile fix(stream): migrate sqlx query! macros to runtime queries 2026-02-11 22:49:30 +01:00
Dockerfile.production adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
env.example adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
install.sh adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
Makefile adding initial stream server (Rust) 2025-12-03 20:36:56 +01:00
RAPPORT_LAB.md report generation and future tasks selection 2025-12-08 19:57:54 +01:00
sync_errors.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
sync_test_error.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00
test_output.txt report generation and future tasks selection 2025-12-08 19:57:54 +01:00