mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: ignore signaturev2 for policy header check (#19551)
This commit is contained in:
@@ -154,7 +154,7 @@ func getSignature(signingKey []byte, stringToSign string) string {
|
||||
// Check to see if Policy is signed correctly.
|
||||
func doesPolicySignatureMatch(formValues http.Header) (auth.Credentials, APIErrorCode) {
|
||||
// For SignV2 - Signature field will be valid
|
||||
if _, ok := formValues["Signature"]; ok {
|
||||
if _, ok := formValues[xhttp.AmzSignatureV2]; ok {
|
||||
return doesPolicySignatureV2Match(formValues)
|
||||
}
|
||||
return doesPolicySignatureV4Match(formValues)
|
||||
|
||||
Reference in New Issue
Block a user