Repository navigation
关于 Creator Mode 的插件安全边界与后续设计 #9701
Replies: 1 comment
|
Good question, and the distinction you are drawing is the right one to draw. Two things that hold today, as far as I can verify against the current 1. A plugin is host-process code, not a sandboxed guest. The loader mounts a plugin into the same context tree as everything else, so it runs with the host process's own authority — same user, same filesystem, same network. The tool sandbox ( 2. The only policy seam available at runtime is tool-level, and it is a behaviour boundary. So the trust tiering that works today is by artifact kind rather than by runtime:
For the kit workflow you describe, that argues for: let the agent author and hot-reload the declarative half freely, and keep the executable half behind a review step. The iterate loop can still be fast even when a human owns the accepting step — the loader reports whether a mount succeeded (failed entries stick in the registry status, and I will leave questions 2 and 3 about future direction to the maintainers. |
Uh oh!
There was an error while loading. Please reload this page.
我想请教一下 DSH 目前及后续对 Creator Mode 安全模型的考虑。由于我在进行一些希望能让agent生成成套kit而不是单个plugin的方案并使用进app中并热重载,但是安全似乎是个问题。
Creator Mode 可以让 Agent 创建或修改 preset,再启动新的 Agent 来测试生成的配置。这种构建、试用、迭代的工作流很有吸引力。不过,如果进一步允许 Agent 创建自定义插件,就会遇到一个问题:Agent 生成的代码最终运行在哪里,以及它能获得什么权限?
据我目前的理解,工具调用的沙箱与宿主进程内的插件并不是同一个安全边界。如果插件直接加载进宿主进程,那么即使 Agent 的普通工具调用受到沙箱限制,插件本身也可能拥有更高的权限。
想了解 DSH 目前如何看待这个问题,以及未来是否计划进一步完善 Creator Mode 的安全模型。
我能想到几种可能的方向:
这些方案各有取舍,例如 API 的表达能力、兼容现有插件生态、调试体验,以及沙箱本身的复杂度。
想请教几个具体问题:
我很感兴趣的是,DSH 如何在保持 Creator Mode 灵活性的同时,让 Agent 能够安全地构建自己的扩展,而不必把每次生成代码都视为可信的宿主级插件。
我的进一步想法是,能够存在一种应用,由于用户的需求多样,开发以kit为单位并使用,在使用这个应用时,用户需求agent开发一个kit,并继续使用,同时期望其不用重新加载软件,这样的形式有哪些问题,dsh是否有考虑过这种形式及如何解决
感谢维护和分享这个项目!
All reactions