部署与运维
Run security audits
You can run a security audit on your n8n instance, to detect common security issues.
How do I run a security audit in n8n?
You can run an audit using the CLI, the public API, or the n8n node.
CLI
Run n8n audit.
API
Make a POST call to the /audit endpoint. You must authenticate as the instance owner.
n8n node
Add the n8n node to your workflow. Select Resource > Audit and Operation > Generate.
What's in the security audit report?
The audit generates five risk reports:
Credentials
This report shows:
- Credentials not used in a workflow.
- Credentials not used in an active workflow.
- Credentials not use in a recently active workflow.
Database
This report shows:
- Expressions used in Execute Query fields in SQL nodes.
- Expressions used in Query Parameters fields in SQL nodes.
- Unused Query Parameters fields in SQL nodes.
File system
This report lists nodes that interact with the file system.
Nodes
This report shows:
- Official risky nodes. These are n8n built in nodes. You can use them to fetch and run any code on the host system, which exposes the instance to exploits. You can view the list in n8n code | Audit constants, under
OFFICIAL_RISKY_NODE_TYPES. - Community nodes.
- Custom nodes.
Instance
This report shows:
- Unprotected webhooks in the instance.
- Missing security settings
- If your instance is outdated.
官方原文和授权
本页来自 N8N 英文官方网站固定快照,并转换成 xueai 静态页面。内容以 N8N 持续更新的官方页面为准。