Skip to content

Cedar

The cedar lexicon is the typed authoring layer above Cedar, the vendor-neutral authorization policy language that joined the CNCF as a Sandbox project in December 2025.

Cedar is deliberately abstraction-free: no variables, no modules, no loops, and templates carrying exactly two slots (?principal, ?resource). Its own toolchain validates and evaluates — it checks policies after they are written and decides requests at runtime. Everything upstream of the policy text is unowned, which is where this lexicon lives.

Terminal window
npm install --save-dev @intentius/chant-lexicon-cedar
import { Policy, ReadAction } from "@intentius/chant-lexicon-cedar";
export const ownerRead = new Policy({
effect: "permit",
principal: { is: "App::User" },
action: { eq: ReadAction },
resource: { is: "App::Document" },
when: ["resource.owner == principal"],
});

ReadAction and "App::User" are generated from your Cedar schema, so a renamed entity type is a compiler-guided refactor and a typo’d action is a compile error — not a validation failure after the text is written.

FileWho reads it
<name>.cedarEvery Cedar evaluator — Amazon Verified Permissions, cedar-agent, an embedded cedar-wasm
policies.cedar.jsonThe Cedar JSON policy format; also the parse source for import

chant appears in neither. An emitted policy set walks away and is consumed by any evaluator with chant nowhere in sight.

There is no cedarGate() and there will not be one. Organizational policy in chant is TypeScript post-synth checks; a second policy engine would duplicate the lint engine. chant compiles to Cedar; it is not governed by Cedar.

Cedar with temporal operators, shipping inside this lexicon as a pre-release surface under the DWD id family: a policy that can depend on what already happened in a session. Start at The Dogwood Dialect, which is honest about upstream’s governance before it shows you a builder.

MetricCount
Resources17
Property types16
Services2
Intrinsic functions0
Pseudo-parameters0
Lint rules18

Lexicon version: 0.57.0
Namespace: Cedar