Securitatea AWS pentru dezvoltatori
Rahul Singh
Technical Product Manager
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
},
"IpAddress": {
"aws:SourceIp": "203.0.113.0/24"
}
}
}

{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::reports/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "true"
},
"IpAddress": {
"aws:SourceIp": "203.0.113.0/24"
}
}
}

Întrebarea
Răspunsul


Bazat pe identitate


Bazat pe identitate
Bazat pe resursă
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
Cerere: s3:DeleteObject rezultă în: Refuzat.
Un refuz explicit are prioritate față de orice permisiune, oricât de largă


{"Effect": "Allow", "Action": "s3:*",
"Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject",
"Resource": "*"}
s3:GetObject → allow: permisiunea largă o acoperăs3:DeleteObject → refuz explicit: o declarație spune nukms:Decrypt, dynamodb:GetItem → refuz implicit: această politică nu menționează niciodată aceste serviciiAceeași eroare, două cauze
Refuz explicit
Refuz implicit

Securitatea AWS pentru dezvoltatori