編集部セレクト
APIキーを置いたまま、Claude Codeにコマンドを任せるのが不安ではありませんか。
サンドボックスの設定で環境変数をmaskにすると、コマンドには使い捨ての置き換え文字だけが渡ります。
本物の値は、許可した相手への通信のときだけ差し替わります。
隠したい鍵の名前を設定に並べて、今日の作業から鍵を伏せてください。
出典の原文(引用)
Claude Code shows sandboxed commands a per-session placeholder called the sentinel, and the proxy substitutes the real value on outbound requests to hosts you allow. Masking files requires Claude Code v2.1.221 or later.— code.claude.com
この話題のきっかけ
https://github.com/anthropics/claude-code/releases/tag/v2.1.309
題材を見つけた場所です。記事の根拠は上の出典です。
