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.

s3tables: remove legacy principal fallback header

Chris Lue4e4dea14010
diff --git a/weed/s3api/s3tables/handler.go b/weed/s3api/s3tables/handler.go
index 76be2334ad..ccff1fe7c9 100644
--- a/weed/s3api/s3tables/handler.go
+++ b/weed/s3api/s3tables/handler.go
@@ -159,11 +159,6 @@ func (h *S3TablesHandler) getPrincipalFromRequest(r *http.Request) string {
return identityName
}
- // Fallback to request header (e.g., for testing or legacy clients)
- if principal := r.Header.Get("X-Amz-Principal"); principal != "" {
- return principal
- }
-
// Fallback to the authenticated account ID
if accountID := r.Header.Get(s3_constants.AmzAccountId); accountID != "" {
return accountID