question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for signature version 4

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:4
  • Comments:37 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
lxecommented, Jul 14, 2016

+1

2reactions
xoryouyoucommented, Nov 9, 2016

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authenticating Requests (AWS Signature Version 4)
Amazon S3 supports Signature Version 4, a protocol for authenticating inbound API requests to AWS services, in all AWS Regions. At this time,...
Read more >
Support for Signature version 4 with the AWS S3 Client - IBM
As up to the latest version of the product, Sterling B2B Integrator version 6.1.1.0, the AWS S3 Client service does not support signature...
Read more >
FantasticFiasco/aws-signature-version-4 - GitHub
Having to sign requests in AWS I went through a series of emotions. My first was disappointment, directed at Amazon for not including...
Read more >
Securing AWS Api Gateway Requests with Signature ...
Learn how to use AWS Amplify to sign your API Gateway requests with Signature Version 4. It is important to secure your API...
Read more >
Amazon S3 Signature Version 4 Authentication Specific Policy ...
In Signature Version 2, this value is always set to 0. In Signature Version 4, the signing key is valid for up to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found