n8n credentials security
Use whenever auth, API keys, OAuth, tokens, secrets, or credential setup appears in n8n work. Enforces credential system usage, least privilege, and safe HTTP auth patterns.
By- name:
- n8n-credentials-security
- description:
- Use whenever auth, API keys, OAuth, tokens, secrets, or credential setup appears in n8n work. Enforces credential system usage, least privilege, and safe HTTP auth patterns.
n8n Credentials & Security
Author: Taghi Molavi
Non-negotiables
- No secrets in parameters, sticky notes, git, or Code strings.
- Use n8n Credentials UI/API; reference by credential attachment on the node.
- Least privilege scopes; separate prod/staging credentials.
- Rotate on leak; assume chat logs are semi-public.
- For HTTP without native node: HTTP Request + proper credential type (OAuth2, Header Auth, etc.).
Agent behavior
- Do not ask the user for the cosmetic display name obsessively — focus on type + scopes.
- Never echo full API keys back in summaries.
- Prefer managed/connect credentials when the user has no preference and platform supports it.
Checklist
- Credential type matches API
- Test on staging first
- Webhook signatures verified
- No secret in workflow export shared publicly (strip credentials on export)
More in this playbook
Safe to turn on
Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.


