Защита внутренних соединений и сервисных прав

This commit is contained in:
EgorAnti
2026-11-27 09:22:26 +03:00
parent 3c412926e5
commit a7463797e6
15 changed files with 453 additions and 54 deletions
+27 -2
View File
@@ -4,11 +4,37 @@
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__"
],
"Condition": {
"StringLike": {
"s3:prefix": [
"attachments/*",
"staging/*"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__/attachments/*"
]
},
{
@@ -19,7 +45,6 @@
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::__S3_BUCKET__/attachments/*",
"arn:aws:s3:::__S3_BUCKET__/staging/*"
]
}