fix: add path traversal check in service_logs get_log_file endpoint (#8605)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-03-30 08:18:08 +00:00
committed by GitHub
parent 9bcda7023f
commit 5f2d3e6812
+3
View File
@@ -97,6 +97,9 @@ async fn get_log_file(
require_devops_role(&db, &email).await?;
let path = path.to_path();
if path.contains("..") {
return Err(Error::BadRequest("Invalid path".to_string()));
}
#[cfg(feature = "parquet")]
let s3_client = windmill_object_store::get_object_store().await;
#[cfg(feature = "parquet")]