ElevenID
ElevenID LLC
Login
All Posts
Trust & Governance
3 of 5
9 min read

Policy Engines with Cedar

MIP uses AWS Cedar for authorization decisions. Cedar policies are deny-by-default, human-readable, and designed to be auditable - not just by engineers, but by compliance teams.


Cedar is an open-source policy language and evaluation engine originally designed at AWS. In MIP, Cedar governs every authorization decision: who can create Trust Profiles, who can approve credential applications, who can revoke credentials, and who can update Presentation Policies. The Cedar schema defines what entities and actions exist; policies define what is permitted.

Deny by Default

Cedar policies are deny-by-default. Unless an explicit permit policy matches an action, it is denied. This is the correct security posture for any authorization system - you enumerate what is allowed, not what is forbidden. Missing a deny doesn't create a vulnerability; missing a permit simply means the action cannot be performed.

Cedar policy examples

cedar
// Only organization admins can create Trust Profiles
permit(
  principal in Role::"org-admin",
  action == Action::"create",
  resource is TrustProfile
);

// No user can approve their own credential application
forbid(
  principal,
  action == Action::"approve",
  resource is Application
) when {
  resource.applicant == principal
};

// Reviewers can only approve applications in their department
permit(
  principal in Role::"reviewer",
  action == Action::"approve",
  resource is Application
) when {
  resource.department == principal.department
};
Audit-Friendly by Design

Cedar policies are readable text, not code. A compliance auditor can read MIP's Cedar policies and understand exactly what each role is permitted to do, without needing to understand a programming language. When a policy changes, the diff is a readable text diff. This is a fundamental improvement over authorization logic scattered across application code, which requires a developer to explain every permission decision.