Bug/Feat: Sandbox config to selectively enable tools
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
### Describe the feature or problem you'd like to solve
Feature Request: Sandbox config in settings.json to selectively enable tools, and/or whitelist bundled copilot package tools
### Proposed solution
potentially have some tools { ... } within sandbox section in settings.json to enable allowed tools/apps/executables
_(or provide documentation on how best to accomplish this if fits somehow in current schema)_
more specifically, encountered this around copilot bundled rg ripgrep, while in sandbox enabled:
```
Search "xunit\.V3" (sandboxed) sh: 1:~/.copilot/pkg/linux-x64/1.0.75/ripgrep/bin/linux-x64/rg: not found
Search is blocked because the bundled rg executable is unavailable under the current sandbox policy.
Please review /sandbox and retry.
```
ideally specifically around this, executable packages that are bundled within distributed copilot are just marked "safe" by default and end user does not need to do anything additional to whitelist to allow these in sandbox mode
### Example prompts or workflows
_No response_
### Additional context
_No response_
贡献指南
调研方向
先阅读 settings.json 配置和 /sandbox 策略行为,然后跟踪如何检查位于 ~/.copilot/pkg/linux-x64/1.0.75/ripgrep/bin/linux-x64/rg 的捆绑可执行文件。确定现有 schema 是否能够表示允许的工具,或者捆绑工具是否需要一个安全的默认值;当预期的配置或文档已定义,并且 sandboxed Search 可以使用 rg 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- json, shell
- 领域
- cli, security
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 45/100