Skip to content

Option to Allow skipping bucket validation #287

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

Merged

Conversation

dschneller
Copy link
Contributor

The S3 uploader fails if bucket permissions are restricted to only allow
accessing certain prefixes in a bucket. The default behavior for boto's
get_bucket() is to "validate" it by accessing the bucket's root, which it might not
be allowed to, and thereby needlessly breaking the uploader even though all
necessary permissions to actually upload stuff might be present.

This patch adds a new command line switch --upload.s3.skip_bucket_validation
to disable this behavior.

The S3 uploader fails if bucket permissions are restricted to only allow
accessing certain prefixes in a bucket. The default behavior for boto's
"get_bucket()" is to "validate" it by accessing the bucket's root, needlessly
breaking the uploader even though all necessary permissions might be present.

This patch adds a new command line switch --upload.s3.skip_bucket_validation
to disable this behavior.
@timvaillancourt
Copy link
Contributor

Thanks @dschneller, LGTM. I like that you used kwargs for the new arg, I should have used that instead of the huge arg lists in this tool!

@timvaillancourt timvaillancourt merged commit 6a11e79 into Percona-Lab:master Dec 4, 2018
@dschneller dschneller deleted the skip-s3-bucket-validation branch December 13, 2018 12:18
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