src/dazzle_back/runtime/audit_log.py¶
Generated: 2026-03-30T04:38:46.824250+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Audit logging for access control decisions.
Provides async, non-blocking audit trail for all authorization decisions, following the _dazzle_event_outbox pattern. PostgreSQL only.
Key Exports¶
AuditDecisionAuditLoggercreate_audit_context_from_requestmeasure_evaluation_timestartstoplog_decisionquery_logsquery_entity_logsquery_stats
Dependencies¶
Imports¶
asynciologgingtimedataclasses.dataclasstyping.Anyuuid.uuid4jsondatetime.UTCdatetime.datetimedatetime.UTCdatetime.datetimedatetime.timedeltapsycopgpsycopg.rows.dict_row
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_audit_log.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.