S3 icon indicating copy to clipboard operation
S3 copied to clipboard

Signature v4 for newer datacenters (Frankfurt)

Open nalexeric opened this issue 9 years ago • 11 comments

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:

<Code>InvalidRequest</Code> <Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message>

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.

nalexeric avatar Apr 27 '15 15:04 nalexeric

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".

Lepozepo avatar Apr 28 '15 02:04 Lepozepo

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.

nalexeric avatar Apr 28 '15 07:04 nalexeric

+1

michelalbers avatar Sep 05 '15 18:09 michelalbers

+1

ashishgupta2 avatar Nov 01 '15 21:11 ashishgupta2

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...

chmac avatar Nov 06 '15 15:11 chmac

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.

Lepozepo avatar Nov 06 '15 15:11 Lepozepo

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

vladshcherbin avatar Nov 09 '15 22:11 vladshcherbin

any progress?

ndevr avatar Jan 27 '16 17:01 ndevr

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.

Lepozepo avatar Jan 27 '16 17:01 Lepozepo

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

PidginEnemy avatar Mar 20 '16 13:03 PidginEnemy

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

Lepozepo avatar Mar 20 '16 22:03 Lepozepo