fix(auth): restore filtered ListBuckets fallback (#5726)

This commit is contained in:
Zhengchao An
2026-08-05 15:21:51 +08:00
committed by GitHub
parent db1daaece2
commit 759ade4770
5 changed files with 103 additions and 2 deletions
+4
View File
@@ -858,6 +858,10 @@ pub async fn authorize_request<T>(req: &mut S3Request<T>, action: Action) -> S3R
return Ok(());
}
if action == Action::S3Action(S3Action::ListAllMyBucketsAction) {
return Err(s3_error!(AccessDenied, "Access Denied"));
}
let policy_allowed_fallback = PolicySys::try_is_allowed(&BucketPolicyArgs {
bucket: bucket.as_str(),
action,