Guides
Cedar Integration
Use AWS Cedar as your Grantex policy backend
Last modified on August 29, 2026
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use AWS Cedar as your Grantex policy backend
POLICY_BACKEND=cedar
CEDAR_URL=http://cedar:8180
CEDAR_FALLBACK_TO_BUILTIN=true
| Cedar Concept | Grantex Mapping |
|---|---|
| Principal | Grantex::Agent with agent ID |
| Action | Grantex::Action::authorize |
| Resource | Grantex::Grant with grant ID |
| Context | scopes, principal, developer, time |
// Allow any agent to authorize read-only grants
permit(
principal is Grantex::Agent,
action == Grantex::Action::"authorize",
resource is Grantex::Grant
) when {
context.scopes == ["read"]
};
// Deny delegation beyond depth 2
forbid(
principal is Grantex::Agent,
action == Grantex::Action::"authorize",
resource is Grantex::Grant
) when {
context.delegationDepth > 2
};