Support for signature version 4
See original GitHub issueIt 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:
- Created 9 years ago
- Reactions:4
- Comments:37 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1
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