Skip to content

HAMUR_E1258: Cedar policies without an authorization schema

Cedar policies without an authorization schema. Error HAMUR_E1258 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1258 server/policies has policies and no schema; write server/policies/schema.cedarschema

Cause

server/policies/ of the app or a layer has .cedar policies, and no .cedarschema file declares the entity types and actions they use.

Fix

Write server/policies/schema.cedarschema with the entity types and actions of the policies.