github / github/copilot-cli

No approval required for any tool execution in docker sandboxes

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

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

area:permissions
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

Describe the bug

In docker sandboxes, CLI does not ask me approval for any tool executions:

  • create, edit or delete a file
  • call curl GET or POST by bash
  • create instant python script and run it
  • call dotnet command for compiling

Even though /yolo show says Tool, path, and URL requests require individual approval., I have never asked approval for tool executions.

If I ran CLI on Windows outside of docker sandboxes, approvals requested correctly. CLI seems to be affected by the environment but it is not described in reference document. IMO, yolo off should work regardless of the environment.

Affected version

1.0.83

Steps to reproduce the behavior
  1. Install docker sandboxes (winget Docker.sbx) and launch copilot (sbx run copilot)
  2. /yolo off and confirm by /yolo show
  3. Ask to run any of operations above like "I want to check yolo off behavior. Try to create and delete a file, generate and run python script, and access external URL."
Expected behavior

CLI asks me approval for the tool executions.

Additional context

Environment

  • GitHub Copilot CLI in Docker Sandboxes v0.39.0 on Windows 11
  • permissions-config.json not exists
  • permissions.disableBypassPermissionsMode is disable in settings.json

Related link
https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#restricting-the---allow-all-options

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

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

はじめの一歩

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

調査の方向性

Windows 11 上で sbx run copilot を使用して Docker Sandboxes v0.39.0 で再現し、CLI を直接実行した場合と /yolo off および /yolo show を比較する。次に、permissions-config.json および settings.json と併せて権限処理を追跡し、一覧にある各操作が sandbox 内で承認を求める場合に fix を確認する。

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

評価

技術スタック
docker, shell
領域
authorization, cli, security
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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