-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot presign url for s3 delete_objects operation #1510
Comments
think this is the relevant code: Lines 681 to 682 in 939fbeb
|
|
That's the case I found, and what I've ended up using. There is still a problem here however, |
We were forced to write a modified version of this function in order to sign delete operations. |
See #1516 for a pr that allows headers to be passed into the url signing process. |
Bump for a response |
@ExProbitasFiducia - There is no parameter for custom headers in boto3's Please let me know if you have any questions. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
@tim-finnigan appreciate the follow up on this! iirc the url generated here does not include any headers that were passed to it, so the signature generated by boto cannot be validated by s3, because when s3 checks the signature, it does take into account headers. this isn't about enabling custom headers i think it was to make the functionality work at all. |
https://github.com/CenterForOpenScience/waterbutler/pull/351/files#diff-e343fe1cb1d426f8d1f366e29e565554bb2d55cd77055b69e92e94b776d1216aR48-R114 for a use case/ link to the line numbers with the monkeypatch i'd written in file waterbutler/providers/s3/provider.py |
@felliott @mfraezz @Johnetordoff might be interested in any progress here. |
So far as I can tell, the endpoint requires a query parameter,
delete
in the url.See https://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html for documentation.
generate_presigned_post
has no way to provide this query parameter, and so cannot correctly sign a url to be used with this api.generate_presigned_url
does not work either, as it has no way to add what the hash of the body will be when signing the url.Hopefully I am missing something here.
The text was updated successfully, but these errors were encountered: