ElevenID
ElevenID LLC
Login
All Posts
Technical
3 min read
Cedar
governancecedarpolicy-engine

Writing Cedar Policies for Identity Governance

MIP uses Cedar PolicySets to keep access control, credential verification, and approval rules inspectable, validated, and governed before they reach production.

Elena Kovacs | Identity Governance Specialist - Policy Engines / TrustMarch 17, 2025 | Updated June 13, 2026 | 3 min read | Technical
RBAC & ABAC
Policy Engines
Identity Governance
Enterprise Identity Frameworks
Part of the Marty Identity Protocol
Series

Governance & Policy

Layer

Governance

Topic

Governance

Difficulty
Advanced

Identity governance fails when authorization rules are scattered across too many places. One service decides who can create a Trust Profile. Another decides who can approve an application. A spreadsheet tracks who is allowed to change credential templates. A runbook explains exceptions. Six months later, no one can prove which rule actually controlled the decision.

Governance has to become an explicit control surface. MIP uses Cedar as its policy language because identity systems need authorization rules that are readable, reviewable, testable, and tied to protocol resources rather than hidden in application code.

This post is not a full Cedar tutorial. It explains how Cedar fits into MIP: PolicySets store the rules, the MIP Cedar schema names the entities and actions, and implementations evaluate those policies before sensitive operations proceed.

PolicySet is the durable artifact

A Cedar rule is useful only if the system knows where it belongs. In MIP, Cedar policies live inside PolicySet entities. A PolicySet has a type, a status, a schema version, and one or more Cedar policy entries. That turns authorization from a loose collection of snippets into a governed protocol object.

The standard policy types cover three recurring domains. ACCESS_CONTROL governs API and administrative operations, often through SCIM roles. CREDENTIAL_VERIFICATION adds conditional trust rules to Trust Profiles and Compliance Profiles. APPROVAL_RULES governs application approval flows through Application Templates. CUSTOM policy sets can exist for organization-specific cases, but custom policies must still validate against the MIP Cedar schema. Organizations may extend Cedar with custom entity types and actions under their own namespace, but custom extensions should not modify the MIP namespace.

That structure matters because a policy can now be reviewed beside the object it affects. A team can ask which PolicySet controls trust evaluation for this credential type, which PolicySet controls approval for this application template, or which role has extra access conditions beyond static permissions.

The MIP Cedar schema

The MIP Cedar schema defines entity types for protocol resources such as Organization, User, ApiKey, ServiceAccount, Role, Credential, TrustProfile, ComplianceProfile, Application, Flow, and PolicySet. It also defines actions such as policy_sets:create, policy_sets:update, credentials:issue, applications:approve, flows:execute, and other resource-specific operations.

That schema gives authorization decisions a shared vocabulary. A policy does not check arbitrary strings. It evaluates a principal, action, resource, and context that correspond to real protocol objects. That makes policy review concrete: who can update a Trust Profile, who can activate a PolicySet, who can approve an application, and under which conditions?

A small policy-writing example makes the shape concrete: permit a user in a security-admin role to validate a PolicySet only when the request context says MFA is authenticated. In Cedar terms, the policy names the principal, action, resource, and context condition: principal in MIP::Role::"security-admin", action equals MIP::Action::"policy_sets:validate", resource is MIP::PolicySet, and context.mfa_authenticated is true.

Implementations must validate Cedar text against the MIP Cedar schema before persisting a PolicySet. A malformed or mismatched policy should fail while it is still a draft, not after it is attached to a production trust or approval path.

Deny by default, forbid first

Cedar evaluation gives MIP a clean safety posture: if no permit rule matches, the request is denied; if any forbid rule matches, the request is denied even if another rule would permit it. That is exactly the shape identity governance needs. Exceptional access should be explicit, and hard stops should be hard stops.

Consider separation of duties. The person who submits or creates a credential application should not be able to approve it. In Cedar, that rule belongs in a forbid policy that compares the approver context with the application submitter or creator. The exact field names depend on the implementation context, but the governance pattern is stable: block self-approval before any approval permit can succeed.

This is especially important for identity systems because approvals often create durable credentials. A weak approval rule can become a credential that travels. Governance mistakes are not always confined to the application that caused them.

Baseline policy, local policy

MIP provides reference Cedar policies for common control patterns: API access control, credential verification trust rules, and application approval rules. Those reference policies give implementers a starting point, but they are not a substitute for local governance.

Organizations still need policy that reflects their environment. A hospital network, an airport operator, a university, and an enterprise HR system will not share the same approval model. The point of Cedar is that local rules can extend or constrain the baseline in a structured way instead of bypassing it through custom code.

Policy extension should be treated as governance work. Who can modify policies? How are changes approved? Which tests prove that a custom rule does not weaken a baseline requirement? Which audit record shows when a policy changed? These questions are part of the identity system, not paperwork around it.

Lifecycle matters

PolicySets need lifecycle rules because policy mistakes are production risks. A draft PolicySet should not be referenced by an active Trust Profile, Compliance Profile, Application Template, or role. Activation should be an authorized event. Archival should preserve the audit story for decisions that were made while the policy was active.

This is why MIP treats PolicySet operations as first-class Cedar actions. Creating, updating, deleting, activating, archiving, reading, and validating policy sets are governed actions in the same system they protect. The policy surface is not outside the protocol; it is part of the protocol.

Why policy belongs beside the protocol

Trust Profiles, Credential Templates, Presentation Policies, Deployment Profiles, and Flows are powerful because they are explicit. They also need explicit authorization boundaries. Otherwise, the ability to change trust, issue credentials, widen disclosure, or move a deployment into production becomes another hidden admin assumption.

That boundary has to cover ordinary operations and exceptional ones. Emergency changes, delegated administration, temporary approvals, and break-glass access should still be policy-governed events with evidence, not shortcuts that live outside the identity model. Governance is weakest when exceptions are invisible.

When policy is part of the system model, organizations can reason about who is allowed to change trust, who can alter credential shape, who can narrow or widen disclosure, and who can activate runtime behavior. That is the difference between configurable infrastructure and ungoverned configuration.

Read Compliance Profiles next if you want to see how external standards and regulatory obligations map into governed protocol objects. Read the schema walkthrough if you want to inspect the machine-readable surfaces that make these policy decisions implementable.

This article was produced by an AI research persona and reviewed by the ElevenID editorial team. All technical claims are validated against protocol specifications and reference implementations.
Elena Kovacs

Identity Governance Specialist - Policy Engines / Trust

Elena focuses on the governance layer of identity systems: how organizations define rules, permissions, and trust policies for credential ecosystems.

RBAC & ABAC
Policy Engines
Identity Governance
Enterprise Identity Frameworks
Trust Registries
AI research persona representing curated protocol analysis.
Governance in practice

Compliance profiles and Cedar policies enforce rules at every layer - explore the governance toolkit.