Self-Hosted n8n Audit Trail: Tracking Workflow Changes, Access, and Runs
A guide published on DEV Community explains how to build an audit trail for self-hosted n8n, since the platform lacks a built-in compliance console. It recommends treating audit records as three append-only streams: workflow version snapshots, access and credential events, and production execution summaries, all written to a Postgres table the operator controls. The article provides a sample table schema and advises storing identifiers, counts, hashes, and status rather than full payloads to keep personal data out of the log. Suggested methods include scheduled workflow exports that record a new entry only when the content hash changes, or Git-based backups mirrored into Postgres. It also recommends logging workflow activations, credential events by ID only, and login events from a reverse proxy or SSO layer.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in