Platform Core

Audit log

One way to record every important event (sign-ins, reviews, payments, deliveries, API-key calls) in each service's own append-only table.

Designedv1

What a service gets without building it

  • One helper in the service template
  • A fixed list of actions, and metadata checked against an allow-list
  • No document contents, tokens or full card numbers, enforced by a test
  • Append-only: the service's role cannot update or delete a row

How to use it

Record an event

await audit(actorId, "auth.signin", target, metadata);

This works once the component is built.

Stories

← All Platform Core components