fix: resolve compiler warnings and downgrade JWT secret log to warn

- Downgrade OXICLOUD_JWT_SECRET missing log from error to warn level,
  since generating a random secret per session is valid behavior
- Remove unused import super::* in calendar_storage_adapter tests
- Remove unused import tokio_stream::StreamExt in compression_service tests
- Prefix unused validate_user_ownership with _ in trash_service
- Add nohup.out to .gitignore
This commit is contained in:
Dionisio
2026-02-12 12:29:12 +01:00
parent 59af22390d
commit 76d9038e5b
5 changed files with 8 additions and 10 deletions
+6 -6
View File
@@ -464,12 +464,12 @@ impl AppConfig {
let generated_secret: String = key.iter().map(|b| format!("{:02x}", b)).collect();
config.auth.jwt_secret = generated_secret;
tracing::error!("==========================================================");
tracing::error!("SECURITY WARNING: OXICLOUD_JWT_SECRET is not set!");
tracing::error!("A random secret has been generated for this session.");
tracing::error!("All tokens will be INVALIDATED on restart.");
tracing::error!("Set OXICLOUD_JWT_SECRET env var for production use.");
tracing::error!("==========================================================");
tracing::warn!("==========================================================");
tracing::warn!("OXICLOUD_JWT_SECRET is not set.");
tracing::warn!("A random secret has been generated for this session.");
tracing::warn!("All tokens will be INVALIDATED on restart.");
tracing::warn!("Set OXICLOUD_JWT_SECRET env var for production use.");
tracing::warn!("==========================================================");
}
if let Ok(access_token_expiry) = env::var("OXICLOUD_ACCESS_TOKEN_EXPIRY_SECS")