Automattic / knox

S3 Lib
MIT License
1.74k stars 285 forks source link

Support for signature version 4 #254

Open makkeu opened 10 years ago

makkeu commented 10 years ago

It seems that knox doesn't support signature v4 (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). On Frankfurt data center (eu-central-1), it is required, and I can't get knox to work with it. Trying to get a list of files in bucket results following error:

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

Here is the sample code:

var knox = require('knox');

var client = knox.createClient({
    key: '*****'
  , secret: '*****'
  , bucket: 'my-bucket'
  , region: 'eu-central-1'
});

client.list({}, function(err, data){
    console.log(err, data);
});
domenic commented 10 years ago

Oh, nice find. It would be really great to get a pull request for this.

nickast commented 9 years ago

Any news on this?

fubu commented 9 years ago

I need this! Regarding a pull request, since I don't know the internals, can someone give me some hints where to start looking in the code?

shfx commented 9 years ago

I'm working on a patch to fix this issue using aws4. Stay tuned.

screenshot 2015-03-10 12 24 40

svenvarkel commented 9 years ago

+1 waiting for fix. Thanks!:)

djaax commented 9 years ago

+1 that would be great :)

jurajpetrik commented 9 years ago

+1

thibalte commented 9 years ago

same here, would be super great! thanks

domenic commented 9 years ago

The place to watch is #273 :). Unfortunately I dropped the ball for 27 days responding to @shfx's last comment, but hopefully he hasn't given up on this idea...

marcelboettcher commented 9 years ago

+1

itoldya commented 9 years ago

+1

bheller84 commented 9 years ago

+1

tanertopal commented 9 years ago

:+1:

newenegue commented 9 years ago

+1

fabdrol commented 9 years ago

Any progress on this?

pculka commented 9 years ago

same ship ...

pculka commented 8 years ago

well it seems this whole stuff works with aws-sdk and I can connect and put object to S3 in eu-central-1. gonna check the internals of knox

vladshcherbin commented 8 years ago

oh come on :(

achimkoellner commented 8 years ago

+1

arnoldstoba commented 8 years ago

+1

Weltraumakustik commented 8 years ago

+1

slavafomin commented 8 years ago

+1

sebbsan commented 8 years ago

+1

TorgeirHeim commented 8 years ago

+1

giuseppeminnella commented 8 years ago

+1

namse commented 8 years ago

+1

ghost commented 8 years ago

Sigh

joanrodriguez commented 8 years ago

+1

delijah commented 8 years ago

+1

lxe commented 8 years ago

+1

subinsebastien commented 8 years ago

+1 Same ship.

kilianc commented 8 years ago

+1

nervous-energy commented 8 years ago

+1

Still nothing.

xoryouyou commented 8 years ago

Since the effort of @shfx has never made it into knox as it seems. And the documentation to derive the key is given here http://docs.aws.amazon.com/general/latest/gr/signature-v4-examples.html#signature-v4-examples-jscript

Can someone point me to the places in code that need the signature implementation ?

also +1

dderrickpaul commented 7 years ago

+1

bmustata commented 6 years ago

Any update on this issue? (putBuffer & pufFile are not working)

victornikitin commented 3 years ago

Is any solution for this?