Skip to content

强化任务运行器#

¥Hardening task runners

任务运行器 负责执行 代码节点 中的代码。虽然代码节点执行是安全的,但你可以遵循以下建议来进一步强化任务运行器的安全性。

¥Task runners are responsible for executing code from the Code node. While Code node executions are secure, you can follow these recommendations to further harden your task runners.

以外部模式作为 sidecar 运行任务运行器#

¥Run task runners as sidecars in external mode

要增强 n8n 核心进程与“代码”节点中代码之间的隔离,请在 外部模式 中运行任务运行器。外部任务运行器作为独立的容器启动,提供完全隔离的环境来执行在代码节点中定义的 JavaScript 代码。

¥To increase the isolation between the core n8n process and code in the Code node, run task runners in external mode. External task runners launch as separate containers, providing a fully isolated environment to execute the JavaScript defined in the Code node.