diff --git a/crates/e2e_test/src/security_boundary_test.rs b/crates/e2e_test/src/security_boundary_test.rs index 0a62ef0f5..a221fbef3 100644 --- a/crates/e2e_test/src/security_boundary_test.rs +++ b/crates/e2e_test/src/security_boundary_test.rs @@ -17,14 +17,14 @@ //! These tests verify that RustFS properly enforces security-sensitive //! controls by issuing real requests against a running server and asserting //! the concrete outcome of each control: -//! - DoS protection (oversized tagging payloads, excessive multipart parts) +//! - DoS protection (oversized tagging payloads, out-of-range multipart part numbers) //! - SSRF prevention (internal/private endpoints rejected for tiering) //! - Race condition handling (concurrent writes converge without corruption) use crate::common::{RustFSTestEnvironment, awscurl_available, awscurl_put, init_logging}; use aws_sdk_s3::error::ProvideErrorMetadata; use aws_sdk_s3::primitives::ByteStream; -use aws_sdk_s3::types::{CompletedMultipartUpload, CompletedPart, Tag, Tagging}; +use aws_sdk_s3::types::{Tag, Tagging}; use std::error::Error; use tracing::info; @@ -88,9 +88,9 @@ async fn test_large_xml_body_rejection() -> Result<(), Box Result<(), Box> { +async fn test_multipart_part_number_above_limit() -> Result<(), Box> { init_logging(); let mut env = RustFSTestEnvironment::new().await?; env.start_rustfs_server(vec![]).await?; @@ -108,18 +108,23 @@ async fn test_excessive_multipart_parts() -> Result<(), Box Result<(), Box