Lepozepo / S3

A simple helper for easily uploading files to Amazon S3 from Meteor. This package will also make Knox available server-side.
MIT License
274 stars 74 forks source link

Signature v4 for newer datacenters (Frankfurt) #73

Open nalexeric opened 9 years ago

nalexeric commented 9 years ago

Hi!

I'm trying to upload files into my S3 bucket which is located in Frankfurt (eu-central-1). I've tried adding both the 'signature' and 'signatureVersion' options to S3.config but to no avail. The error I'm getting is this:

InvalidRequest

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

Could you please let me know if your package supports signature v4 or if you're planning on supporting it in the foreseeable future?

Thank you, Eric N.

Lepozepo commented 9 years ago

Hi! I do plan to add support for V4. Does eu-central-1 not support V2? It should work by setting the region variable inside the S3.config object to "eu-central-1".

nalexeric commented 9 years ago

Unfortunately, setting the region does not help. That's actually the very reason for the error described above.

From a stackoverflow answer:

According to http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html ... new S3 regions deployed after January, 2014 will only support V4. Since Frankfurt was introduced late in 2014, it apparently does not support V2, which is what this error suggests you are using.

michelalbers commented 9 years ago

+1

ashishgupta2 commented 9 years ago

+1

chmac commented 9 years ago

Firstly, thanks for sharing this package, a real help.

@Lepozepo Any plans to implement v4 support? We just hit this error and discovered this ticket. Unfortunately we're hosted in Frankfurt, so seems like we can't use this package right now...

Lepozepo commented 9 years ago

Hi @chmac I do want to implement v4 soon. I'm currently updating reactive publish for my community work but I'll circle back to S3 after that.

vladshcherbin commented 9 years ago

@Lepozepo same error here. Please add the v4 thing :(

ndevr commented 8 years ago

any progress?

Lepozepo commented 8 years ago

Hey guys! I haven't had a chance to update this package yet, it's just been a crazy couple of months. Pull requests are appreciated for sure! I'll see if I can upgrade the signature soon.

PidginEnemy commented 8 years ago

Can you add support signatureVersion to config, we want to use your library in eu-central-1. Thanks.

Lepozepo commented 8 years ago

Hi! v4 requires a different algorithm as well to work. This package currently does not support v4 but it will fairly soon.