diff options
| author | ftong2020 <64820810+ftong2020@users.noreply.github.com> | 2025-01-16 03:58:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 11:58:43 -0800 |
| commit | 2304d2b4728a6860865aac1f976f3faef493bfe0 (patch) | |
| tree | dbb8590efaf344d1b3ecea8e0f2af1c1e930006d | |
| parent | 1609682ac2f6caa0fd1396920f68ab87f84e507c (diff) | |
| download | seaweedfs-2304d2b4728a6860865aac1f976f3faef493bfe0.tar.xz seaweedfs-2304d2b4728a6860865aac1f976f3faef493bfe0.zip | |
Bugfix s3 audit missing requester for PUT requests (#6434)
fix s3 audit missing requster for PUT
| -rw-r--r-- | weed/s3api/auth_credentials.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index 6121aecba..505c49a12 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -341,8 +341,6 @@ 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") @@ -351,7 +349,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 authTypeSigned, authTypePresigned: + case authTypeStreamingSigned, authTypeSigned, authTypePresigned: glog.V(3).Infof("v4 auth type") identity, s3Err = iam.reqSignatureV4Verify(r) authType = "SigV4" |
