src/dazzle_back/runtime/access_evaluator.py¶
Generated: 2026-03-30T04:38:46.698237+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Access rule evaluator with Cedar-style permit/forbid semantics.
Evaluates EntityAccessSpec from BackendSpec at runtime, supporting: - Cedar three-rule evaluation: FORBID > PERMIT > default-deny - Role checks: role(admin) - Persona scoping: restrict rules to specific personas - Relationship traversa...
Key Exports¶
evaluate_access_conditionevaluate_visibilityevaluate_permissionevaluate_permission_boolcan_readcan_createcan_updatecan_deletefilter_visible_records
Dependencies¶
Imports¶
typing.Anydazzle.core.access.AccessDecisiondazzle.core.access.AccessRuntimeContextdazzle_back.runtime._comparison.eval_comparison_opdazzle_back.runtime._comparison.normalize_for_comparisondazzle_back.specs.AccessComparisonKinddazzle_back.specs.AccessConditionSpecdazzle_back.specs.AccessLogicalKinddazzle_back.specs.AccessOperationKinddazzle_back.specs.AccessPolicyEffectdazzle_back.specs.EntityAccessSpecdazzle_back.specs.auth.AccessAuthContextdazzle_back.specs.auth.PermissionRuleSpecuuiddatetime.UTCdatetime.datetimedazzle.rbac.audit.AccessDecisionRecorddazzle.rbac.audit.get_audit_sink
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_access_evaluator.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.