Undocumented `logs/security/.security-key` file created in every working directory on startup
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 11.2k
- フォーク
- 1.9k
- 平均マージ
- 14時間 16分
- マージ済み PR(30日)
- 6
説明
Description
Copilot CLI creates a logs/security/.security-key file in the current working directory as soon as a session starts. This happens in every directory, including a brand-new empty one, so it appears to be unconditional CLI startup behavior rather than something tied to a specific repo or project config.
I can't find this documented anywhere - not in the CLI config-directory reference, the command reference, or recent changelogs (checked back through v1.0.76). Filing this to understand what the file is for and whether it's expected to live in the project directory rather than ~/.copilot/.
Steps to reproduce
mkdir /tmp/test-copilot && cd /tmp/test-copilot && copilot
# exit the session
ls -la logs/security/
Observed
harshit@Harshits-MacBook-Pro /tmp/test-copilot » ls -la logs/security
total 8
drwxr-xr-x@ 3 harshit wheel 96 Jul 31 10:52 .
drwxr-xr-x@ 3 harshit wheel 96 Jul 31 10:52 ..
-rw-------@ 1 harshit wheel 32 Jul 31 10:52 .security-key
The file contains 32 bytes of what appears to be binary/random data (confirmed via xxd), not human-readable text.
Questions
- What is this file used for (e.g., local encryption of session state, sandbox integrity verification, telemetry)?
- Is it intentional that it's written under
<cwd>/logs/security/rather than under~/.copilot/? This means every project directory a user runs copilot in accumulates this file, which could easily get committed to version control if not gitignored. - Should this path be added to a default
.gitignoresuggestion, or documented in the config-directory reference alongside the other~/.copilot/contents?
Environment
- Copilot CLI version: GitHub Copilot CLI 1.0.77
- OS: macOS 26.4 (25E246)
- Install method: I don't remember, I have been using copilot for a while now. The only change that happened is I recently updated the version.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
空のディレクトリで、提供されている mkdir、cd、copilot、ls の再現手順を実行し、その後 logs/security/.security-key を作成する CLI の起動経路を追跡します。報告で言及されている CLI の設定ディレクトリのリファレンス、コマンドリファレンス、changelog を読みます。ファイルの目的と想定される配置場所が明らかになり、gitignore に関するガイダンスとともに動作が修正または文書化されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- shell
- 領域
- cli, documentation
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100