s3_direct_upload icon indicating copy to clipboard operation
s3_direct_upload copied to clipboard

update to use AWS Signature Version 4

Open mattwarrenrnp opened this issue 11 years ago • 8 comments

this is a rewrite of the form helper to implement the current AWS Signature version 4 method of signing the policy.

mattwarrenrnp avatar Jun 24 '14 19:06 mattwarrenrnp

I'd love to see this merged into s3_direct_upload gem. New buckets only work with v4 policy.

lenart avatar Jan 14 '15 14:01 lenart

Seems like this would only work with us-east-1? What about other regions?

hakunin avatar Mar 19 '15 12:03 hakunin

@hakunin what do you mean?

You can configure your region in the configurator.

lenart avatar Mar 19 '15 14:03 lenart

I am not an expert at s3, but this part seems hardcoded just for one region, shouldn't it match all the new ones or something?

https://github.com/waynehoover/s3_direct_upload/pull/174/files#diff-98fcf18bb8f0556479337cf71e97dc1fR35

hakunin avatar Mar 19 '15 14:03 hakunin

It's how Amazon decided to name their servers. Have a look at their site (scroll down to Amazon Simple Storage Service) and see how the region name and endpoints are related.

The code you pointed out just follows this (weird) rule.

lenart avatar Mar 19 '15 14:03 lenart

Thanks for clarifying that @lenart, I just checked out Matt's fork and can verify that this works. Would be nice if this was merged after so many months, or if a fork could be made to carry on the awesome direct_s3 gem's functionality.

hakunin avatar Mar 19 '15 15:03 hakunin

I think alot of people are using this in forks. I'd like to see a solution for this problem merged.

This shouldn't break any existing apps right?

mcfiredrill avatar Feb 02 '16 01:02 mcfiredrill

I can't see that this has been implemented yet?

Preen avatar Apr 06 '16 13:04 Preen