From a4ed69d6013f28853043578788290beec45d4161 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Sinha <56164778+sinhaaks@users.noreply.github.com> Date: Tue, 9 Aug 2022 17:15:46 +0530 Subject: [PATCH] Add query param in canonical request of aws Sigv4 signature to avoid 403 from aws (#4977) Signed-off-by: Ankit Kumar Sinha --- plugins/rest/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rest/aws.go b/plugins/rest/aws.go index f583769591..16d5f36427 100644 --- a/plugins/rest/aws.go +++ b/plugins/rest/aws.go @@ -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)