Fix IAM defaults and s3tables identities

This commit is contained in:
Chris Lu
2026-02-18 16:21:48 -08:00
parent 53048ffffb
commit bf71fe0039
5 changed files with 260 additions and 12 deletions

View File

@@ -208,6 +208,10 @@ func hasIdentityPermission(operation string, ctx *PolicyContext) bool {
candidates = append(candidates, operation+":"+ctx.TableBucketName, fullAction+":"+ctx.TableBucketName)
}
for _, action := range ctx.IdentityActions {
// Legacy static identities may still use broad admin markers.
if action == "*" || action == "Admin" || action == string(s3_constants.ACTION_ADMIN) || action == "s3:*" || action == "s3tables:*" {
return true
}
for _, candidate := range candidates {
if action == candidate {
return true