Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -551,12 +551,12 @@ private static void processBucketResource(String volumeName, Set<S3Action> mappe
if (prefixes != null && !prefixes.isEmpty()) {
for (String prefix : prefixes) {
createObjectResourcesFromConditionPrefix(
volumeName, authorizerType, resourceSpec, prefix, objToAclsMap, EnumSet.of(READ));
volumeName, authorizerType, resourceSpec, prefix, objToAclsMap, EnumSet.of(LIST));
}
} else {
// No condition prefixes, but we need READ access to all objects, so use "*" as the prefix
// No condition prefixes, but we need LIST access to all objects, so use "*" as the prefix
createObjectResourcesFromConditionPrefix(
volumeName, authorizerType, resourceSpec, "*", objToAclsMap, EnumSet.of(READ));
volumeName, authorizerType, resourceSpec, "*", objToAclsMap, EnumSet.of(LIST));
}
}
}
Expand Down Expand Up @@ -809,7 +809,7 @@ enum S3Action {
GET_BUCKET_LOCATION("s3:GetBucketLocation", ActionKind.BUCKET, EnumSet.of(READ), EnumSet.of(READ),
EnumSet.noneOf(ACLType.class)),
// Used for HeadBucket, ListObjects and ListObjectsV2 apis
LIST_BUCKET("s3:ListBucket", ActionKind.BUCKET, EnumSet.of(READ), EnumSet.of(READ, LIST), EnumSet.of(READ)),
LIST_BUCKET("s3:ListBucket", ActionKind.BUCKET, EnumSet.of(READ), EnumSet.of(READ, LIST), EnumSet.of(LIST)),
// Used for ListMultipartUploads API
LIST_BUCKET_MULTIPART_UPLOADS("s3:ListBucketMultipartUploads", ActionKind.BUCKET, EnumSet.of(READ),
EnumSet.of(READ, LIST), EnumSet.noneOf(ACLType.class)),
Expand Down
Loading