If you paste a real API key directly into a node's credential field, it can end up baked into the exported workflow JSON in plain text — which becomes a real problem the moment you share that file, commit it, or post it publicly (including as a downloadable template).
The fix:
use environment variable references ({{ $env.YOUR_KEY_NAME }}) inside the workflow instead of the raw key, and set the actual value in your n8n instance's environment settings, not the workflow itself. The exported JSON stays safe to share even with the credential field visible.
Comments
No comments yet — be the first.