Repository navigation
fix(#493): S3 resolves encryption from the request then the bucket default, and routes the bucket-encryption operations - #1404
Merged
Conversation
…fault, and routes the bucket-encryption operations A write naming no encryption takes the destination bucket's default, which is SSE-S3 for an unconfigured bucket, as S3 has applied since January 2023. A CopyObject naming none takes the destination's default, never the source's. CreateMultipartUpload resolves the upload's encryption, and UploadPart and UploadPartCopy refuse to restate it. PutBucketEncryption, GetBucketEncryption and DeleteBucketEncryption are routed. Four invalid combinations are InvalidArgument/400. A write naming nothing now reports AES256, deliberately reversing #492's "no header in, none out". This was #1274's last outstanding item. With the role-propagation window (#1402) and #1274's six child issues, foray's adoption list is complete. The operation catalog goes from 1039 to 1042. Fixes #493 Fixes #1274
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A write naming no encryption takes the destination bucket's default, which is
SSE-S3 for an unconfigured bucket, as S3 has applied since January 2023. A
CopyObject naming none takes the destination's default, never the source's.
CreateMultipartUpload resolves the upload's encryption, and UploadPart and
UploadPartCopy refuse to restate it. PutBucketEncryption, GetBucketEncryption
and DeleteBucketEncryption are routed. Four invalid combinations are
InvalidArgument/400.
A write naming nothing now reports AES256, deliberately reversing #492's
"no header in, none out".
This was #1274's last outstanding item. With the role-propagation window
(#1402) and #1274's six child issues, foray's adoption list is complete. The
operation catalog goes from 1039 to 1042.
Fixes #493
Fixes #1274
Compatibility
x-amz-server-side-encryption, which isAES256when nothing else applied. A record stored before this fix reads back asAES256.CopyObjectno longer inherits the source's encryption.?encryption, which answeredNotImplemented/501 since fix(#1349): name every published S3 sub-resource, so an unrouted one is refused rather than reinterpreted #1351, is routed.