gxthrj opened a new issue #2336:
URL: https://github.com/apache/apisix/issues/2336
### Issue description
We’d better change the organization of `signing_string` for hmac-auth
```
signing_string = HTTP Method + \n
+ HTTP URI + \n +
+ canonical_query_string + \n +
+ x-hmac-access-key + \n +
+ Date + \n +
+ x-hmac-signed-headers
```
Use `\n` interval between fields, if `x-hmac-signed-headers` is empty, you
don’t need to add `\n`, if other fields are empty, you need to keep`\n`
The key assembly method specified by `x-hmac-signed-headers`:
```
HeaderKey1 + ":" + HeaderValue1 + "\n"\+
HeaderKey2 + ":" + HeaderValue2 + "\n"\+
...
HeaderKeyN + ":" + HeaderValueN + "\n"
```
ref:
https://help.aliyun.com/document_detail/29475.html?spm=a2c4g.11186623.2.15.62c73e789LVg02
https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html#RESTAuthenticationConstructingCanonicalizedAmzHeaders
### Environment
* apisix version : 1.5
* OS:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]