Service Layer medium complexity backend
0
Dependencies
0
Dependents
18
Entities
0
Integrations

Description

Backend service responsible for recording audit events from across the system and serving queries against the audit log. Enforces append-only semantics and tenant isolation on all reads.

Feature: Audit Log

audit-service

Sources & reasoning

Audit Log is explicitly required by line 193 to back the time-bounded Global Admin support-access mechanism, and is taxonomy-mandated at line 380. GDPR accountability for the sensitive data Meander handles makes it MVP-critical, aligning with admin-security being part of the Admin Web Portal MVP scope (lines 244-247).

Responsibilities

  • Accept and persist audit events from other backend components
  • Enforce append-only write semantics (no updates or deletes)
  • Serve filtered, paginated queries scoped to the requesting organization
  • Validate actor, organization, and target entity references on each event
  • Enforce Org Admin authorization on read endpoints

Interfaces

recordEvent(actor, orgId, actionType, targetEntity, metadata): AuditEventId
queryEvents(orgId, filters, pagination): AuditEventPage
getEventById(orgId, eventId): AuditEvent