Engineering guide · By Jamil Fayad ·
How to sanitize an n8n workflow JSON before you share it.
People paste exported workflows into forums, issue trackers and emails to get help. An export can carry more than the logic: credential names, identifiers, headers, addresses and test data. Check the file before it leaves your machine.
n8n's own documentation cautions that exported files may include credential names, IDs or authentication headers. Read its export and import documentation for the current procedure. This guide is my review routine, not an official n8n procedure.
Five steps on a copy of the file
Work on a copy, never the original
Keep the untouched export as your working file and sanitize a separate copy. Removing credential references from the working file can break a workflow that is otherwise valid.
Search for credentials and identifiers
Look at every credential reference, including its name and ID. Credential names can reveal the account, the supplier or the client, even when no secret value is present.
Check headers, URLs and parameters
Read every HTTP node by eye. Authentication headers, API keys in query strings and tokens inside URLs are easy to miss. Replace webhook addresses and any internal host names with placeholders as well.
Look for real data in test values
Pinned or example data, default values and notes can contain real names, email addresses, phone numbers or booking details. Replace them with fictional values.
Replace, do not just delete, then re-read the copy
Use obvious placeholders such as REPLACE_WITH_TOKEN so a reader can see something was removed. Then read the finished copy from top to bottom, as if you were a stranger, before you send it.
What my own analyzer got wrong
I wrote a Python analyzer for n8n workflow JSON. On 30 October 2026 it ran locally against a sanitized copy of a generated 16-node workflow. It did not activate the workflow or call any external system.
- Its credential check flagged an authentication mode name as if it were a secret: a false alarm.
- In a separate test file, four HTTP nodes set to authentication “none” were not reported by its missing-authentication check: a miss.
- Its fixer removed two credential bindings. That can break a valid workflow, so it is not a safe way to prepare a file for sharing.
A tool can point at places to read. It cannot tell you the file is safe to publish. These were observed tool results, not a security verification.
Read the analyzer walkthrough and its limits →Before you send it
If a real secret appeared in a file you already shared, treat it as exposed: rotate it at the provider and do not rely on deleting the post. Then confirm that the workflow still imports and behaves as expected in a test environment.
This is step two of six in the n8n workflow review checklist. Another of the six is the repeated-request test.
Need a second pair of eyes on a workflow?
Share a short summary of the process without credentials or customer records. We can agree a paid scope and acceptance checks before any review work starts.
Workflow automation services →Discuss one workflow