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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
s3api: Allow anonymous access to SOSAPI virtual objects
Chris Lue8baeb3616bb
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.goindex d7f5aa7b8b..9f658aaaae 100644--- a/weed/s3api/s3api_bucket_handlers.go+++ b/weed/s3api/s3api_bucket_handlers.go@@ -624,6 +624,17 @@ func (s3a *S3ApiServer) AuthWithPublicRead(handler http.HandlerFunc, action Actiglog.V(4).Infof("AuthWithPublicRead: bucket=%s, object=%s, authType=%v, isAnonymous=%v", bucket, object, authType, isAnonymous)+ // Allow anonymous access for SOSAPI virtual objects (discovery)+ if isSOSAPIObject(object) {+ // Ensure the bucket exists anyway+ _, errCode := s3a.getBucketConfig(bucket)+ if errCode == s3err.ErrNone {+ glog.V(3).Infof("AuthWithPublicRead: allowing anonymous access to SOSAPI object %s in bucket %s", object, bucket)+ handler(w, r)+ return+ }+ }+// For anonymous requests, check if bucket allows public read via ACLs or bucket policiesif isAnonymous {// First check ACL-based public access