Templates / Log tamper-evident append-only audit trails with Supabase Postgres

Log tamper-evident append-only audit trails with Supabase Postgres

Ready for 3.0

by María Laura Vitelli · 1 views · created 2026-10-08 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 21 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Postgres.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).

  1. Set demo configuration (Edit Fields (Set)): sets 2 fields: workflow_version, demo_user
  2. Validate audit event (Code): runs custom JavaScript code
  3. Verify hash chain (Postgres): run a query
  4. Try to UPDATE a record (Postgres): run a query
  5. Try to DELETE a record (Postgres): run a query
  6. Create demo events (Code): runs custom JavaScript code
  7. Write audit event (Postgres): run a query
  8. Check if chain is intact (If): checks a condition and branches into true / false
  9. Report UPDATE was allowed (Edit Fields (Set)): sets 3 fields: control, result, next_step
  10. Report UPDATE was blocked (Edit Fields (Set)): sets 3 fields: control, result, database_message

…plus 6 more steps. See the full node list below.

Services it uses

Postgres

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow logs append-only audit events to a Supabase Postgres table with database-enforced sequencing and hash chaining, then verifies the chain integrity on demand or on a schedule, with an optional test form that confirms UPDATE and…

Excerpt from María Laura Vitelli's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.