github / github/copilot-cli

Bug/Feat: Sandbox config to selectively enable tools

オープン
#4,298 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

area:configuration area:permissions area:tools
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず settings.json の設定と /sandbox ポリシーの動作を読み、次に ~/.copilot/pkg/linux-x64/1.0.75/ripgrep/bin/linux-x64/rg にあるバンドルされた実行可能ファイルがどのようにチェックされるかを追跡します。既存のスキーマで許可されたツールを表現できるか、またはバンドルされたツールに安全なデフォルトが必要かを判断します。完了とは、意図した設定またはドキュメントが定義され、sandboxed Search が rg を使用できる状態です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
json, shell
領域
cli, security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。