Created by: oblivisheee
This pull request includes several changes across multiple files to improve the handling of session tokens, update dependencies, and enhance error handling. The most important changes include modifying the session token mechanism in interfaces.rs
, updating Dockerfile dependencies, and improving error handling in NATS communication.
Session Token Handling:
-
assistant/src/interfaces.rs
: Changed the session token mechanism to use a message instead of a cookie. This includes updates tochat_session
,process_session_token
, and related helper functions. [1] [2] [3] [4] [5] [6] [7] [8] [9]
Dependency Updates:
-
assistant/Dockerfile
,subscription/Dockerfile
,users/Dockerfile
: Updated the base image version forcargo-chef
fromlatest
to0.1.68-rust-latest
. [1] [2] [3] -
users/Cargo.toml
: Updated thenats-handling
dependency from0.1.2
to0.1.3
.
Error Handling Improvements:
-
subscription/src/nats.rs
: Enhanced error handling by wrapping errors inBox
to provide more context. [1] [2] [3] [4] [5] -
users/src/main.rs
: Improved error handling in theRequestProcessor
implementation to usenats_handling::Error
for better error propagation. [1] [2] [3]
Configuration Updates:
-
assistant/config.json
: Updated API key andnats_bind
address. [1] [2] -
docker-compose.yaml
: Updated API key in environment variables.
Minor Changes:
-
assistant/src/interfaces.rs
: Adjusted JWT TTL from 30 to 31 minutes. -
subscription/src/nats.rs
: Improved error handling by wrapping errors inBox
. [1] [2]