fix(s3): reject SSE-C with partial headers per S3 spec (#2007)

This commit is contained in:
安正超
2026-02-28 22:56:35 +08:00
committed by GitHub
parent 27ff35e574
commit 1872bdcedd
5 changed files with 152 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
# - SSE-C: Server-side encryption with customer-provided keys
# - Object ownership: Bucket ownership controls
#
# Total: 174 tests
# Total: 177 tests
test_basic_key_count
test_bucket_create_naming_bad_short_one
@@ -160,6 +160,9 @@ test_get_checksum_object_attributes
test_encryption_sse_c_method_head
test_encryption_sse_c_present
test_encryption_sse_c_other_key
test_encryption_sse_c_no_key
test_encryption_sse_c_no_md5
test_put_obj_enc_conflict_c_s3
# ListObjectsV2 delimiter and encoding tests
test_bucket_list_encoding_basic

View File

@@ -28,8 +28,6 @@ test_copy_part_enc
test_encryption_key_no_sse_c
test_encryption_sse_c_invalid_md5
test_encryption_sse_c_multipart_bad_download
test_encryption_sse_c_no_key
test_encryption_sse_c_no_md5
test_get_versioned_object_attributes
test_lifecycle_delete
test_lifecycle_expiration_header_put
@@ -66,7 +64,6 @@ test_put_bucket_logging_permissions
test_put_bucket_logging_policy_wildcard
test_put_obj_enc_conflict_bad_enc_kms
test_put_obj_enc_conflict_c_kms
test_put_obj_enc_conflict_c_s3
test_put_obj_enc_conflict_s3_kms
test_rm_bucket_logging
test_sse_kms_no_key