Zum Inhalt springen
Kitbay
Skill

lgpd-audit-logging

MITAktualisiert am 19. Nov. 2026279GitHub-Sterne

One of the sub-skills of a Brazilian LGPD privacy engineering set, for building an audit log that shows tampering.

Was der Skill vermittelt

One of the sub-skills of a Brazilian LGPD privacy engineering set, for building an audit log that shows tampering. It explains that the law does not demand a hash chain but treats one as a sensible control for accountability and security, and it separates retention for incident records from shorter periods for routine logs. The agent adds a Prisma model with an increasing sequence number, a TypeScript writer that serialises entries with a PostgreSQL advisory lock and chains their hashes, database triggers and permissions that block edits and deletes, and a daily job that checks the chain and stores the latest hash in write-once storage or a SIEM, alerting on any mismatch.

Funktionen

  • Add a hash-chained audit log table with Prisma
  • Block edits and deletes with database triggers
  • Schedule a daily chain check with external anchoring
  • Log sensitive actions without raw personal data