阻止对节点的访问#
¥Block access to nodes
出于安全考虑,你可能需要阻止用户访问或操作特定的 n8n 节点。如果你的用户可能不可信,此功能会很有帮助。
¥For security reasons, you may want to block your users from accessing or working with specific n8n nodes. This is helpful if your users might be untrustworthy.
使用 NODES_EXCLUDE 环境变量阻止用户访问特定节点。
¥Use the NODES_EXCLUDE environment variable to prevent your users from accessing specific nodes.
排除节点#
¥Exclude nodes
更新 NODES_EXCLUDE 环境变量,使其包含一个字符串数组,该数组包含你希望阻止用户使用的任何节点。
¥Update your NODES_EXCLUDE environment variable to include an array of strings containing any nodes you want to block your users from using.
例如,按如下方式设置变量:
¥For example, setting the variable this way:
1 | |
阻止 执行命令 和 从磁盘读取/写入文件 节点。
¥Blocks the Execute Command and Read/Write Files from Disk nodes.
你的 n8n 用户将无法搜索或使用这些节点。
¥Your n8n users won't be able to search for or use these nodes.
建议屏蔽的节点#
¥Suggested nodes to block
可能存在安全风险的节点因你的用例和用户配置文件而异。以下是一些你可能想要开始使用的节点:
¥The nodes that can pose security risks vary based on your use case and user profile. Here are some nodes you might want to start with:
相关资源#
¥Related resources
有关此环境变量的更多信息,请参阅 节点环境变量。
¥Refer to Nodes environment variables for more information on this environment variable.
有关设置环境变量的更多信息,请参阅 配置。
¥Refer to Configuration for more information on setting environment variables.