Skip to content

Support for signature version 4 #254

@makkeu

Description

@makkeu

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions