mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
* mount: refuse SSE-KMS and SSE-C objects the native read path cannot decrypt The native read check only recognized SSE-S3, so objects the S3 gateway stored with SSE-KMS or SSE-C were read chunk by chunk and the mount returned their ciphertext with success. Detect every S3 server-side encryption type, from the object metadata or any chunk, and answer open, read and copy_file_range with ENOTSUP unless the object is SSE-S3 and -sseS3Read routes it through a gateway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: drop S3 encryption markers when a file is truncated to zero A full truncate removes the encrypted payload, but the object metadata still named SSE-C, SSE-KMS or SSE-S3, so the plaintext the mount wrote afterwards was refused on read. Clear those markers in SetAttr and truncateEntry when the size becomes zero, and reset the handle's cached classification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>