You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/09/28 06:04:01 UTC

[GitHub] [apisix] gxthrj opened a new issue #2336: request help: We’d better change the organization of `signing_string` for hmac-auth

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:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2336: request help: We’d better change the organization of `signing_string` for hmac-auth

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2336:
URL: https://github.com/apache/apisix/issues/2336


   


----------------------------------------------------------------
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:
users@infra.apache.org