Browse Source

Revert "Bugfix s3 audit missing requester for PUT requests (#6434)"

This reverts commit 2304d2b472.
revert-6434-bugfix-missing-s3-audit
Chris Lu 11 months ago
committed by GitHub
parent
commit
9ce058a841
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/s3api/auth_credentials.go

4
weed/s3api/auth_credentials.go

@ -341,6 +341,8 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, action Action)
var found bool
var authType string
switch getRequestAuthType(r) {
case authTypeStreamingSigned:
return identity, s3err.ErrNone
case authTypeUnknown:
glog.V(3).Infof("unknown auth type")
r.Header.Set(s3_constants.AmzAuthType, "Unknown")
@ -349,7 +351,7 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, action Action)
glog.V(3).Infof("v2 auth type")
identity, s3Err = iam.isReqAuthenticatedV2(r)
authType = "SigV2"
case authTypeStreamingSigned, authTypeSigned, authTypePresigned:
case authTypeSigned, authTypePresigned:
glog.V(3).Infof("v4 auth type")
identity, s3Err = iam.reqSignatureV4Verify(r)
authType = "SigV4"

Loading…
Cancel
Save