spetz commented on code in PR #2974:
URL: https://github.com/apache/iggy/pull/2974#discussion_r2965726594
##########
core/server/src/http/http_server.rs:
##########
@@ -268,12 +269,30 @@ async fn build_app_state(
tokens_path = shard.config.system.get_state_tokens_path();
}
- let jwt_manager = JwtManager::from_config(persister, &tokens_path,
&config.jwt);
- if let Err(e) = jwt_manager {
- panic!("Failed to initialize JWT manager: {e}");
+ let mut jwt_config = config.jwt.clone();
+ let encoding_empty = jwt_config.encoding_secret.is_empty();
+ let decoding_empty = jwt_config.decoding_secret.is_empty();
+ if encoding_empty || decoding_empty {
Review Comment:
Fixed with more warn logs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]