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

Ensure public bucket policies are allowed before trying to write one #18

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

RealOrangeOne
Copy link
Member

@RealOrangeOne RealOrangeOne commented Jun 15, 2023

Previously, we tried to set objects in the bucket to be public using a policy, but since April is is blocked by default by AWS, resulting in an error:

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the PutBucketPolicy operation: Access Denied

Instead, we need to allow public policies before we create one.

I've been able to reproduce this reliably locally, and confirmed the test fixes behaviour.

@RealOrangeOne RealOrangeOne requested a review from tomusher June 15, 2023 15:37
@tomusher
Copy link
Member

Looks great to me!

@RealOrangeOne RealOrangeOne merged commit 0d323c7 into master Jul 12, 2023
@RealOrangeOne RealOrangeOne deleted the fix/public-access-block-order branch July 12, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants