Skip to Content
Asterrr's Handbook
4 · Identity and access management

Amazon Verified Permissions

Externalized, fine-grained authorization for custom applications using Cedar policies, and how it differs from IAM.

Exam tasks: 4.2 (Skill 4.2.1 Amazon Verified Permissions)

The decision: does your application need fine-grained rules over its own resources, decided outside the code and logged, rather than IAM policies or a sign-in service?

Verified Permissions is a managed authorization service for applications you build. Policies are written in the open-source Cedar language and kept in a central policy store. The application asks "may this principal do this action on this resource in this context" and enforces the answer. It does not authenticate users, and it does not control access to AWS resources. IAM does that.

sign inrequest and tokenis authorized?App userCognito or OIDCIdPApplication APIVerifiedPermissions
Authentication happens elsewhere. The application asks Verified Permissions for a decision and enforces the allow or deny it gets back.

Core facts

ItemWhat to remember
LanguageCedar. Policies state principal, action, resource and optional conditions
Decision modelDefault deny. A satisfied forbid policy overrides any satisfied permit policy
Policy storeContainer for policies, templates and a schema that validates them. One per app or one per tenant for isolation
Policy templateReusable policy with placeholders, linked per user or resource
Entity and context dataPrincipal and resource attributes, group membership and request context feed ABAC and RBAC
RBAC and ABACCedar uses principal groups for roles and conditions on attributes for ABAC, and can mix both
Identity sourcesPrincipals and groups can come from a Cognito user pool or an OIDC provider. Verified Permissions trusts the authentication already done
API GatewayPolicy store can be built from an API: actions and resources come from the API
IntegrationsExpress.js middleware for protecting endpoints
ResponseAllow or deny plus the IDs of the determining policies
PricingTiered by monthly authorization requests, plus policy management API calls

How the application calls it

  • Your app, or an API Gateway Lambda authorizer that Verified Permissions can generate, calls IsAuthorized, IsAuthorizedWithToken (passing a Cognito or OIDC token from an identity source) or BatchIsAuthorized.
  • Every decision can be logged, which answers "who could see patient record 88?" for auditors.
permit (
  principal in Clinic::Role::"nurse",
  action in [Clinic::Action::"viewChart"],
  resource
)
when { resource.ward == principal.ward };

Verified Permissions versus IAM

IAMVerified Permissions
ProtectsAWS API actions on AWS resourcesActions inside your own application
PrincipalsIAM users, roles, federated sessionsApplication users, groups and machine identities
Policy languageIAM JSONCedar
Where policy livesIn the account, evaluated by AWSPolicy store, queried by the application
EnforcementAWS serviceYour application code or gateway

Exam signal

"Multi-tenant SaaS app needs per-user and per-tenant authorization decisions without hard-coding them in the app" is Verified Permissions with a policy store per tenant or shared store plus attributes. "Fine-grained, per-record permissions inside a custom application, managed centrally and outside the code" is also Verified Permissions. "Authenticate mobile users" is Cognito, not Verified Permissions.

Exam trap

Verified Permissions decides but does not enforce. The application must act on the decision. It also assumes users were already authenticated, so pair it with Cognito or another OIDC provider.

Exam trap

Verified Permissions decides but does not enforce. The application must act on the decision. It also assumes users were already authenticated, so pair it with Cognito or another OIDC provider.

Scenarios

Scenario
A SaaS company's document service needs rules such as 'editors can change documents in their own tenant, and nobody can change a document on legal hold'. Product managers want to change rules without redeploying code, and auditors want a log of every decision. What should the team use?

Further reading

On this page