veza/veza-chat-server
senke 40569c42d4 refactor(chat): deduplicate JwtManager algorithm/key/validation setup
Extract build_keys_and_validation() private helper that encapsulates
the 20 lines of algorithm parsing, EncodingKey/DecodingKey creation,
and Validation configuration previously duplicated between new() and
with_revocation_store_only().

- Remove with_revocation_store_only() intermediate function
- with_revocation_store() now calls build_keys_and_validation() directly
- with_pool_and_store() delegates to with_revocation_store()

Addresses audit finding D10: code duplication in JwtManager constructors.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 23:24:39 +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 refactor(chat): deduplicate JwtManager algorithm/key/validation setup 2026-02-11 23:24:39 +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