mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
Add query param in canonical request of aws Sigv4 signature to avoid 403 from aws (#4977)
Signed-off-by: Ankit Kumar Sinha <ankitsinhaiitg@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ce4ac6ec5e
commit
a4ed69d601
+1
-1
@@ -585,7 +585,7 @@ func signV4(req *http.Request, service string, credService awsCredentialService,
|
||||
// that we're attempting to perform; in this case, a GET from an S3 bucket
|
||||
canonicalReq := req.Method + "\n" // HTTP method
|
||||
canonicalReq += req.URL.EscapedPath() + "\n" // URI-escaped path
|
||||
canonicalReq += "\n" // query string; not implemented
|
||||
canonicalReq += req.URL.RawQuery + "\n" // RAW Query String
|
||||
|
||||
// include the values for the signed headers
|
||||
orderedKeys := sortKeys(headersToSign)
|
||||
|
||||
Reference in New Issue
Block a user