Merge pull request #126 from pgsty/fix/issue-118-no-compressed-ssec

fix: exclude SSE-C objects from compression
This commit is contained in:
Feng Ruohang
2026-09-06 09:26:12 +08:00
committed by GitHub
6 changed files with 825 additions and 17 deletions
+4 -1
View File
@@ -364,7 +364,10 @@ func testAPICopyObjectServerSideChecksumEncryption(obj ObjectLayer, instanceType
compressed bool
}{
{name: "encrypted-only", extension: ".bin"},
{name: "compressed-encrypted", extension: ".txt", compressed: true},
// SSE-C is excluded from compression whatever allow_encryption says,
// so a compressible destination extension changes nothing here. The
// SSE-S3 sibling above keeps the compressed-encrypted coverage.
{name: "compressible-extension", extension: ".txt"},
} {
t.Run(variant.name, func(t *testing.T) {
destination := "copy-checksum/sse-c-" + variant.name + variant.extension