Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement S3 native pre-signed POST (PostObject) #8907

Merged
merged 3 commits into from Aug 22, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Aug 14, 2023

Motivation

Implementing the missing PostObject operation, which is needed for pre-signed POST requests.

Changes

PostObject is a bit of a weird operation in itself because everything is in a form, and the parser doesn't handle this kind of request right now, and maybe it shouldn't just for one operation. So most of the "parsing" is done directly in the provider method. I've added a bit more features than moto, as we now handle encryption parameters, tagging, and more response fields.

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases labels Aug 14, 2023
@bentsku bentsku self-assigned this Aug 14, 2023
@coveralls
Copy link

coveralls commented Aug 15, 2023

Coverage Status

coverage: 80.741% (-0.1%) from 80.839% when pulling 63394a0 on s3-native-post-object into 0b7a9ab on master.

@bentsku bentsku requested a review from thrau August 16, 2023 15:10
@bentsku bentsku marked this pull request as ready for review August 16, 2023 15:10
Copy link
Member

@thrau thrau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! the light-weight parsing approach by reading the form seems fine to me. a bit of conceptual duplication with the parser but not an issue IMO

@bentsku bentsku force-pushed the s3-native-acl branch 2 times, most recently from c2b8852 to 2f79dec Compare August 21, 2023 12:49
Base automatically changed from s3-native-acl to master August 21, 2023 18:42
@bentsku bentsku merged commit dacb3c8 into master Aug 22, 2023
22 of 24 checks passed
@bentsku bentsku deleted the s3-native-post-object branch August 22, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:s3 Amazon Simple Storage Service semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants