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 PublicAccessBlock and ObjectOwnership #8886

Merged
merged 2 commits into from Aug 16, 2023

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Aug 10, 2023

Motivation

Implement Bucket API operations, those are currently only mocked and do not influence S3 behaviour. ObjectOwnership should have some impact, as it should prevent some ACLs to be set on Object, like in AWS. PublicAccessBlock cannot really be enforced, as we do not have the concept of public/anonymous access to S3 (credentials are always being set). It also has some logic tied to s3control, where the settings would be the most restrictive between the bucket PublicAccessBlock and the owner ones. As it's only mocked, we currently do not implemented this.

Changes

Implement the following API operations:

  • GetBucketOwnershipControls
  • PutBucketOwnershipControls
  • DeleteBucketOwnershipControls
  • GetPublicAccessBlock
  • PutPublicAccessBlock
  • DeletePublicAccessBlock

And the validation snapshot tests that go with it.

@bentsku bentsku changed the base branch from master to s3-native-fix-and-bucket-payment August 10, 2023 13:04
@bentsku bentsku self-assigned this Aug 10, 2023
@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 10, 2023
@bentsku bentsku force-pushed the s3-native-access-block-ownership branch from dd4a95b to 72738a3 Compare August 10, 2023 13:40
@coveralls
Copy link

coveralls commented Aug 10, 2023

Coverage Status

coverage: 80.988% (-0.07%) from 81.06% when pulling 8f4f6cb on s3-native-access-block-ownership into 9c710ee on master.

@bentsku bentsku force-pushed the s3-native-fix-and-bucket-payment branch 3 times, most recently from 28989a6 to d17f3be Compare August 13, 2023 00:51
@bentsku bentsku force-pushed the s3-native-access-block-ownership branch from 72738a3 to ea55b5a Compare August 14, 2023 12:34
@bentsku bentsku force-pushed the s3-native-fix-and-bucket-payment branch from d17f3be to 619d669 Compare August 15, 2023 18:56
Base automatically changed from s3-native-fix-and-bucket-payment to master August 15, 2023 21:12
@bentsku bentsku force-pushed the s3-native-access-block-ownership branch from ea55b5a to 8f4f6cb Compare August 15, 2023 21:14
@bentsku bentsku marked this pull request as ready for review August 15, 2023 21:27
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!

@bentsku bentsku merged commit e83d998 into master Aug 16, 2023
22 of 24 checks passed
@bentsku bentsku deleted the s3-native-access-block-ownership branch August 16, 2023 12:36
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