App öffnen
Moonborn — Developers

Audit-Trail für Brand-Teams

Lies den immutablen Audit-Log für Persona-Mutationen, Refine-Aktionen und Config-Edits. Verifiziere die Hash-Chain.

Brand-Governance braucht oft „wer hat was wann geändert." Moonborns Audit-Log ist die Antwort — hash-chained, immutable, exportierbar.

Letzte Events lesen

const events = await client.audit.listEvents({
  workspaceId: 'ws_...',
  category: 'persona',
  limit: 50,
});
for (const e of events) {
  console.log(e.occurredAt, e.actor.email, e.action, e.target.id);
}

Kategorien enthalten persona, config, rbac, billing, webhooks. Für Brand-QA deckt persona Create / Refine / Fork / Archive ab.

Nach Actor filtern

const events = await client.audit.listEvents({
  workspaceId: 'ws_...',
  actorUserId: 'user_...',
  limit: 100,
});

Die Hash-Chain verifizieren

Jede Zeile speichert hash = sha256(payload || previous_hash). Exportiere die Chain + lasse eine lokale Verifikation laufen:

const exp = await client.audit.export({ workspaceId: 'ws_...' });
// Lokal verifizieren:
let expected = exp.seed;
for (const e of exp.events) {
  const computed = sha256(JSON.stringify(e.payload) + expected);
  if (computed !== e.hash) throw new Error('Tamper at ' + e.id);
  expected = e.hash;
}

Retention

  • 1 Jahr (Pro/Team), 7 Jahre (Enterprise), via privacy.retention.audit_log_years.
  • Per-Workspace-Overrides innerhalb der Plan-Allowance.

Tarif

Audit-Log: jeder Tier. Export + Hash-Chain-Verifikation: Team und höher.

Verwandt