s3tables: remove legacy principal fallback header

Removed the fallback to X-Amz-Principal in getPrincipalFromRequest as
S3 Tables is a new feature and does not require legacy header support.
This commit is contained in:
Chris Lu
2026-01-28 13:28:42 -08:00
parent dfdace9a13
commit e4e4dea140

View File

@@ -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