diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-01-15 11:59:15 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 11:59:15 -0800 |
| commit | 9ce058a8417860f6a56c5ca2c84af23fe9c662fd (patch) | |
| tree | b61b56b16919e08a65b2a99960816f4ceb2a8631 | |
| parent | 2304d2b4728a6860865aac1f976f3faef493bfe0 (diff) | |
| download | seaweedfs-origin/revert-6434-bugfix-missing-s3-audit.tar.xz seaweedfs-origin/revert-6434-bugfix-missing-s3-audit.zip | |
Revert "Bugfix s3 audit missing requester for PUT requests (#6434)"origin/revert-6434-bugfix-missing-s3-audit
This reverts commit 2304d2b4728a6860865aac1f976f3faef493bfe0.
| -rw-r--r-- | weed/s3api/auth_credentials.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index 505c49a12..6121aecba 100644 --- a/weed/s3api/auth_credentials.go +++ b/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" |
