Files
object-browser/web-app/tests/policies/conditionsPolicy4.json
2023-12-29 11:44:01 -06:00

45 lines
1.1 KiB
JSON

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowUserToSeeBucketListInTheConsole",
"Action": [
"s3:ListAllMyBuckets",
"s3:GetBucketLocation",
"s3:GetBucketVersioning"
],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"]
},
{
"Sid": "AllowRootAndHomeListingOfCompanyBucket",
"Action": ["s3:ListBucket", "s3:List*"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::my-company2"],
"Condition": {
"StringEquals": {
"s3:prefix": ["", "home/", "home/User"],
"s3:delimiter": ["/"]
}
}
},
{
"Sid": "AllowListingOfUserFolder",
"Action": ["s3:ListBucket", "s3:List*"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::my-company2"],
"Condition": {
"StringLike": {
"s3:prefix": ["home/User/*"]
}
}
},
{
"Sid": "AllowAllS3ActionsInUserFolder",
"Effect": "Allow",
"Action": ["s3:*"],
"Resource": ["arn:aws:s3:::my-company2/home/User/*"]
}
]
}