* 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>
* mount: read SSE-S3 objects through an authenticated S3 gateway
* mount: check each comma-joined mount option against -sseS3ReadEndpoint
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: read a mounted version file by its object key and version id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: read a current null-version object without s3:GetObjectVersion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: declare -sseS3ReadEndpoint with the other mount options so weed fuse accepts it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: require the canonical bucket path as the root of an SSE-S3 read mount
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: fall back to the null version when the current object is another version
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* master: list the S3 endpoint each S3 gateway advertises
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* s3: advertise the gateway's S3 endpoint to the master
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: find the S3 gateway through the masters instead of -sseS3ReadEndpoint
-sseS3Read turns gateway reads on. The reader lists the S3 endpoints the
filer's masters have registered, prefers HTTPS, and picks another gateway
when the current one cannot be reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: retry an unreachable S3 gateway read on a different gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: warn when -sseS3Read falls back to a plain-HTTP gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: do not retry an unreachable HTTPS gateway over plain HTTP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* mount: tell HTTPS gateways apart by the parsed URL scheme
An S3 gateway advertised as HTTPS://host lost the HTTPS preference and
the plain-HTTP fallback guard, since the check matched the raw string.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>