Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

s3: deny anonymous type

Chris Lu48b7ad5fa84b
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index b7a8dbf956..6d33632323 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -134,10 +134,14 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, actions []Acti
glog.V(3).Infof("v4 auth type")
identity, s3Err = iam.reqSignatureV4Verify(r)
case authTypePostPolicy:
- return ErrNotImplemented;
+ glog.V(3).Infof("post policy auth type")
+ return ErrNotImplemented
case authTypeJWT:
- return ErrNotImplemented;
+ glog.V(3).Infof("jwt auth type")
+ return ErrNotImplemented
case authTypeAnonymous:
+ return ErrAccessDenied
+ default:
return ErrNotImplemented
}