Security & Identity
Policy evaluation
AWS policy evaluation starts with an implicit deny. Allows from identity and resource policies combine, but an explicit deny in any applicable layer overrides them all.
What you will be able to do
- Explain how explicit denies and implicit denies combine across policy layers.
- Decide which policy layer to inspect first when a request is denied.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Security & Identity
- Authentication versus authorizationBeginner · 4 min
Authentication establishes who the caller is, and authorization decides what that caller may do with a specific resource. A valid token passes the first check and still…
- IAM least privilegeIntermediate · 4 min
Least privilege gives a principal only the actions, resources and conditions a task needs. Activity data shows which grants are unused, so broad roles can be narrowed…
- RBAC permissionsIntermediate · 4 min
Kubernetes RBAC grants rules through roles and bindings, and it has no deny rule. A subject holds the union of every rule it is bound to, so wide bindings must be found…
- ABAC attributesIntermediate · 4 min
Attribute-based access control decides from attributes of the subject, object and environment. Rules can follow the data more precisely than roles, but each attribute…
- OIDC flowsIntermediate · 4 min
OpenID Connect adds identity to OAuth 2.0. The authorization code flow with PKCE keeps tokens on the back end, while the implicit flow exposes them in the browser.
- JWT validationIntermediate · 4 min
A JWT can be read by anyone, so a service must verify the signature, algorithm, issuer, audience and expiry before it trusts any claim. Decoding alone is not validation.