fix(s3): reject invalid SSE algorithm (aes:kms) in PutObject (#2008)

This commit is contained in:
安正超
2026-03-01 00:56:26 +08:00
committed by GitHub
parent 1872bdcedd
commit f93db578df
5 changed files with 56 additions and 9 deletions

View File

@@ -20,7 +20,7 @@
# - SSE-C: Server-side encryption with customer-provided keys
# - Object ownership: Bucket ownership controls
#
# Total: 177 tests
# Total: 182 tests
test_basic_key_count
test_bucket_create_naming_bad_short_one
@@ -162,7 +162,12 @@ test_encryption_sse_c_present
test_encryption_sse_c_other_key
test_encryption_sse_c_no_key
test_encryption_sse_c_no_md5
test_encryption_key_no_sse_c
test_encryption_sse_c_invalid_md5
test_put_obj_enc_conflict_c_s3
test_put_obj_enc_conflict_c_kms
test_put_obj_enc_conflict_s3_kms
test_put_obj_enc_conflict_bad_enc_kms
# ListObjectsV2 delimiter and encoding tests
test_bucket_list_encoding_basic

View File

@@ -25,8 +25,6 @@ test_bucket_policy_put_obj_kms_s3
test_bucket_policy_put_obj_s3_kms
test_copy_enc
test_copy_part_enc
test_encryption_key_no_sse_c
test_encryption_sse_c_invalid_md5
test_encryption_sse_c_multipart_bad_download
test_get_versioned_object_attributes
test_lifecycle_delete
@@ -62,9 +60,6 @@ test_put_bucket_logging
test_put_bucket_logging_errors
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_s3_kms
test_rm_bucket_logging
test_sse_kms_no_key
test_sse_kms_not_declared