AWS-Sicherheit für Entwickler:innen nutzen
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"
}
}
}

Die Frage
Die Antwort


Identitätsbasiert


Identitätsbasiert
Ressourcenbasiert
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
{"Effect": "Allow", "Action": "s3:*", "Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject", "Resource": "*"}
Anfrage: s3:DeleteObject ergibt: Denied.
Ein explizites Deny sticht jedes Allow, egal wie breit


{"Effect": "Allow", "Action": "s3:*",
"Resource": "*"}
{"Effect": "Deny", "Action": "s3:DeleteObject",
"Resource": "*"}
s3:GetObject → allow: das breite Allow deckt es abs3:DeleteObject → explizites Deny: eine Anweisung sagt neinkms:Decrypt, dynamodb:GetItem → implizites Deny: diese Policy erwähnt diese Services nichtGleicher Fehler, zwei Ursachen
Explizites Deny
Implizites Deny

AWS-Sicherheit für Entwickler:innen nutzen