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.

force overwrite s3-is-admin https://github.com/chrislusf/seaweedfs/issues/2433

Konstantin Lebedev42f4aa824b3e
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go
index 9e1cd7f86a..d29e8692fe 100644
--- a/weed/s3api/auth_credentials.go
+++ b/weed/s3api/auth_credentials.go
@@ -187,6 +187,8 @@ func (iam *IdentityAccessManagement) Auth(f http.HandlerFunc, action Action) htt
r.Header.Set(xhttp.AmzIdentityId, identity.Name)
if identity.isAdmin() {
r.Header.Set(xhttp.AmzIsAdmin, "true")
+ } else if _, ok := r.Header[xhttp.AmzIsAdmin]; ok {
+ r.Header.Del(xhttp.AmzIsAdmin)
}
}
f(w, r)