admin管理员组文章数量:1336145
I am trying to get AWS secrets via API in uipath and I am not sure if the format of my canonical request is correct. I am getting this error:
{
"__type":"InvalidSignatureException",
"message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."
}
Below is my canonical request:
POST
/
content-type:application/x-amz-json-1.1
host:secretsmanager.ap-southeast-2.amazonaws
x-amz-content-sha256:{hashed_payload}
x-amz-date:{timestamp}
x-amz-target:secretsmanager.GetSecretValue
content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target
{hashed_payload}
This is my string to sign:
AWS4-HMAC-SHA256
{timestamp}
{YYYYMMDD}/{region}/secretsmanager/aws4_request
{hashedCanonicalRequest}
This is my authorization header:
AWS4-HMAC-SHA256 Credential={accesskey}/{YYYYMMDD}/{region}/secretsmanager/aws4_request,SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date;x-amz-target,Signature={aws_signature}
I pass along same arguments in the authorization to the headers in my POST request. I can get correct hash output with my code using the samples from AWS documentation. Can someone please check where did it go wrong? Thank you!
本文标签: amazon web servicesAWS Secret Manager API Canonical RequestStack Overflow
版权声明:本文标题:amazon web services - AWS Secret Manager API Canonical Request - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742395614a2466857.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论