Load a policy store
Package metadata, a Cedar schema, policies, and optional trusted-issuer configuration in the directory-based format.
Policy-store formatCedarling is an embeddable policy decision point. It evaluates Cedar policies close to the application, agent, API, or service that must enforce an authorization decision.

The policy store defines what Cedarling can evaluate. The host application supplies current request facts and enforces the result before the protected operation runs.
Policy store
Rules to evaluate

Cedarling
Returns a decision
Application
Enforces the result
Package metadata, a Cedar schema, policies, and optional trusted-issuer configuration in the directory-based format.
Policy-store formatUse validated token evidence or an application-established principal with the action, resource, and context.
Authorization requestsThe policy enforcement point permits or blocks the operation. A decision does not enforce itself.
Policy store
Keep policy-store files readable in source control, then package them as a rootless Cedar archive for Cedarling. Request-specific principals and resources stay in the runtime request instead of becoming static default entities.
Readable files
Cedar archive
.cjarpolicy-store/
├── metadata.json
├── schema.cedarschema # schema option A
├── schemas/ # schema option B
├── policies/
│ └── access.cedar
├── templates/ # optional
├── entities/ # optional default entities
├── trusted-issuers/ # optional
└── custom-issuers/ # optionalChoose one schema layout. The archive contains directory contents at its root; if an imported store contains both layouts, Cedarling uses the rootschema.cedarschema.
Deployment
Embed Cedarling with a language binding or run the pinned sidecar beside a service. Each trusted enforcement point still owns the operation it protects.
Embed Cedarling in a JavaScript application using its WebAssembly binding.
pnpm add --save-exact @janssenproject/cedarling_wasm@0.0.469Run Cedarling alongside a service and send authorization evaluation requests over HTTP using AuthZen.
Cedarling Sidecar guide
Embedded bindingCedarling runs inside browser, mobile, and backend applications.
Application code → decision → enforcement
Cedarling Sidecar
A Dockerized Flask service powered by cedarling_python.
AuthZen request ↔ ALLOW or DENY
Production architecture
Add the identity, policy delivery, and operational controls your environment requires around that layer.
Design a production authorization stackValidate mapped tokens from configured issuers, including tokens issued by Jans Auth.
Author policies with Agama Lab, review them in Git, and deploy versioned policy stores.
Send Cedarling decision logs to Lock Server for protected operational review.
We use analytics cookies to measure which pages are useful, so we can improve them. They are only set if you accept. Essential cookies needed for the site to work are always on. See our privacy policy.