Automattic / Automattic/knox

Support for signature version 4

Open
#254 37 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
283
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the sample client.list call and the AWS Signature Version 4 documentation linked in the issue. Trace how Knox authorizes requests for the eu-central-1 region, then verify completion by making the bucket listing succeed with AWS4-HMAC-SHA256.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
authentication, cloud, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.