veza/veza-chat-server
senke ad0b761d07 fix(chat): replace .unwrap() with safe alternatives in production code
- request_id.rs:36: UUID.to_string().parse().unwrap() replaced with
  unwrap_or_else fallback to HeaderValue::from_static("unknown")
- prometheus_metrics.rs:357: Response::builder().body().unwrap() replaced
  with unwrap_or_else fallback to a plain error response

Both were panic-capable paths in request handling middleware.

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

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 23:20:49 +01:00
..
config adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
docs report generation and future tasks selection 2025-12-08 19:57:54 +01:00
migrations report generation and future tasks selection 2025-12-08 19:57:54 +01:00
proto adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
scripts report generation and future tasks selection 2025-12-08 19:57:54 +01:00
src fix(chat): replace .unwrap() with safe alternatives in production code 2026-02-11 23:20:49 +01:00
.clippy.toml adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
.dockerignore adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
.env.lab.example chore(rust): chat server env, veza-common auth, stream server routes/websocket 2026-02-11 22:19:17 +01:00
.gitignore report generation and future tasks selection 2025-12-08 19:57:54 +01:00
AUDIT_CHAT_SERVER_RUST.md adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
AUDIT_EXHAUSTIF_CHAT_SERVER.md refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05: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_output.txt stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
check_output_2.txt STABILISATION: phase 1 & phase 2 2025-12-06 14:45:07 +01:00
deploy-simple.sh adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
docker-compose.local.yml adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
docker-compose.yml adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
Dockerfile adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
Dockerfile.production adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
env.example adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
Makefile adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00
sqlx-data.json adding initial chat server (Rust) 2025-12-03 20:33:26 +01:00