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

fix validation of PutBucketLogging #8654

Merged
merged 2 commits into from Jul 8, 2023
Merged

Conversation

bentsku
Copy link
Contributor

@bentsku bentsku commented Jul 7, 2023

This PR fixes #6764.

Features

Moto was a bit overzealous in their validation of the bucket logging configuration. We're keeping the same checks that are made in moto, without the problematic part. We could extend the validation then, as now with Object Ownership, a bucket created without config shouldn't be able to get a config with TargetGrants. This would be part of a bigger effort to use the same new defaults as AWS.

@bentsku bentsku added aws:s3 Amazon Simple Storage Service semver: patch Non-breaking changes which can be included in patch releases labels Jul 7, 2023
@bentsku bentsku self-assigned this Jul 7, 2023
@bentsku bentsku marked this pull request as ready for review July 8, 2023 00:11
@coveralls
Copy link

Coverage Status

coverage: 82.26% (-0.01%) from 82.27% when pulling db61472 on s3-put-bucket-logging-validation into 7d7d253 on master.

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 30m 31s ⏱️
2 203 tests 1 868 ✔️ 335 💤 0
2 204 runs  1 868 ✔️ 336 💤 0

Results for commit db61472.

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.

nicely done! patches and parity tests ❤️

@thrau thrau merged commit a4e2410 into master Jul 8, 2023
25 checks passed
@thrau thrau deleted the s3-put-bucket-logging-validation branch July 8, 2023 14:35
@dfangl dfangl added this to the 2.2 milestone Jul 17, 2023
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: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PutBucketLogging giving MalformedXML error for payload working with real AWS
4 participants