Skip to content

Commit cf03364

Browse files
nullvariantclaude
andauthored
docs: add Workspace Trust section to README (en, ja) and release v0.11.0 (#121)
* docs(ja): add Workspace Trust section and fix style issues 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101 * docs(en): add Workspace Trust section and bump to v0.11.0 - Add Workspace Trust documentation to en/README.md - Fix VSCode -> VS Code spelling - Regenerate root README.md - Update CHANGELOG.md with 0.11.0 release notes - Bump version to 0.11.0 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Model-Raw: claude-opus-4-5-20251101 --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b90331d commit cf03364

5 files changed

Lines changed: 106 additions & 10 deletions

File tree

extensions/git-id-switcher/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.11.0] - 2026-01-11
11+
12+
### Security
13+
14+
- **Workspace Trust**: Added support for VS Code Workspace Trust
15+
- Dangerous operations (Git config changes, SSH key operations) are blocked in untrusted workspaces
16+
- Identity switching requires explicit user confirmation in untrusted workspaces
17+
- New setting `gitIdSwitcher.disableWorkspaceTrust` for emergency bypass (not recommended)
18+
19+
### Added
20+
21+
- Confirmation dialog for identity switching in untrusted workspaces
22+
- Localized trust-related messages in 17 languages
23+
24+
### Documentation
25+
26+
- Added Workspace Trust section to README (en, ja)
27+
1028
## [0.10.48] - 2026-01-10
1129

1230
### Fixed

extensions/git-id-switcher/README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ While many Git identity switchers exist, **Git ID Switcher** solves the complex
5757
> I don't want to discard them just because they are small in number.
5858
> Even if translations aren't perfect, I hope you can feel our intent to understand and show respect for minority languages.
5959
60-
This extension supports all 17 languages that VSCode supports. Additionally, for README documentation, we're challenging ourselves to translate into minority languages and even joke languages.
60+
This extension supports all 17 languages that VS Code supports. Additionally, for README documentation, we're challenging ourselves to translate into minority languages and even joke languages.
6161

6262
This isn't just "global support" - it's "respect for linguistic diversity." And I'd be happy if this becomes infrastructure where commits that make the world better come from developers living everywhere, transcending language barriers.
6363

@@ -539,6 +539,32 @@ If you previously saved empty settings, they may have synced to the cloud and ar
539539

540540
---
541541

542+
## Workspace Trust
543+
544+
Git ID Switcher supports VS Code's [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust) feature. In untrusted workspaces, dangerous operations are automatically restricted.
545+
546+
### Behavior in Untrusted Workspaces
547+
548+
| Operation | Behavior |
549+
| ----------------------- | ----------------------------- |
550+
| View identities | ✅ Allowed |
551+
| View current Git config | ✅ Allowed |
552+
| Switch identity | ⚠️ User confirmation required |
553+
| Modify Git config | ❌ Blocked |
554+
| SSH key operations | ❌ Blocked |
555+
556+
### Disabling (Not Recommended)
557+
558+
If you absolutely need to disable workspace trust checks:
559+
560+
1. Open Settings (`Cmd+,` / `Ctrl+,`)
561+
2. Search for `gitIdSwitcher.disableWorkspaceTrust`
562+
3. Enable the setting
563+
564+
⚠️ **Warning**: Enabling this setting reduces security. Use only when absolutely necessary.
565+
566+
---
567+
542568
## Design Philosophy
543569

544570
> "Who am I?" — That's the only question this extension answers.

extensions/git-id-switcher/docs/i18n/en/README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ While many Git identity switchers exist, **Git ID Switcher** solves the complex
5353
> I don't want to discard them just because they are small in number.
5454
> Even if translations aren't perfect, I hope you can feel our intent to understand and show respect for minority languages.
5555
56-
This extension supports all 17 languages that VSCode supports. Additionally, for README documentation, we're challenging ourselves to translate into minority languages and even joke languages.
56+
This extension supports all 17 languages that VS Code supports. Additionally, for README documentation, we're challenging ourselves to translate into minority languages and even joke languages.
5757

5858
This isn't just "global support" - it's "respect for linguistic diversity." And I'd be happy if this becomes infrastructure where commits that make the world better come from developers living everywhere, transcending language barriers.
5959

@@ -535,6 +535,32 @@ If you previously saved empty settings, they may have synced to the cloud and ar
535535

536536
---
537537

538+
## Workspace Trust
539+
540+
Git ID Switcher supports VS Code's [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust) feature. In untrusted workspaces, dangerous operations are automatically restricted.
541+
542+
### Behavior in Untrusted Workspaces
543+
544+
| Operation | Behavior |
545+
| ----------------------- | ----------------------------- |
546+
| View identities | ✅ Allowed |
547+
| View current Git config | ✅ Allowed |
548+
| Switch identity | ⚠️ User confirmation required |
549+
| Modify Git config | ❌ Blocked |
550+
| SSH key operations | ❌ Blocked |
551+
552+
### Disabling (Not Recommended)
553+
554+
If you absolutely need to disable workspace trust checks:
555+
556+
1. Open Settings (`Cmd+,` / `Ctrl+,`)
557+
2. Search for `gitIdSwitcher.disableWorkspaceTrust`
558+
3. Enable the setting
559+
560+
⚠️ **Warning**: Enabling this setting reduces security. Use only when absolutely necessary.
561+
562+
---
563+
538564
## Design Philosophy
539565

540566
> "Who am I?" — That's the only question this extension answers.

extensions/git-id-switcher/docs/i18n/ja/README.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Gitプロフィール切り替えツールは数多く存在しますが、**Git
5353
> 少数だからといって切り捨てたくないのです。
5454
> 完璧に翻訳できなくても、少数言語の存在を理解し、敬意を示す意図だけでも感じていただければと思っています。
5555
56-
この拡張機能は、VSCodeがサポートする17言語すべてに対応しています。さらに、READMEドキュメントについては、少数民族の言語やジョーク言語への翻訳にもチャレンジしています。
56+
この拡張機能は、VS Codeがサポートする17言語すべてに対応しています。さらに、READMEドキュメントについては、少数民族の言語やジョーク言語への翻訳にもチャレンジしています。
5757

5858
これはただの「グローバル対応」ではなく、「言語的多様性への敬意」です。そして、言語を超えて、あらゆる場所に住む開発者から世界が良くなるコミットがされていく...そんなインフラになったら嬉しいです。
5959

@@ -75,7 +75,7 @@ ssh-keygen -t ed25519 -C "kaoru@personal.example.com" -f ~/.ssh/id_ed25519_perso
7575
ssh-keygen -t ed25519 -C "kaoru.takahashi@company.example.com" -f ~/.ssh/id_ed25519_work
7676
```
7777

78-
各キーの**公開鍵**`.pub`ファイル)をそれぞれのGitHubアカウントに登録してください。
78+
各SSH鍵の**公開鍵**`.pub`ファイル)をそれぞれのGitHubアカウントに登録してください。
7979

8080
> **注意**: GitHubに登録するのは `id_ed25519_personal.pub`(公開鍵)です。`id_ed25519_personal`(拡張子なし)は秘密鍵なので、絶対に他人と共有したりアップロードしないでください。
8181
@@ -386,16 +386,16 @@ Gitの設定には3つのレイヤーがあり、下位の設定を上位が上
386386

387387
つまり:
388388

389-
- 各リポジトリの `.git/config` にプロフィールを保存
390-
- リポジトリごとに異なるプロフィールを維持可能
391-
- グローバル設定(`~/.gitconfig`は変更しない
389+
- 各リポジトリの `.git/config` にプロフィールを保存します
390+
- リポジトリごとに異なるプロフィールを維持できます
391+
- グローバル設定(`~/.gitconfig`は変更しません
392392

393393
### プロフィール切り替え時の動作
394394

395395
プロフィールを切り替えると、拡張機能は以下を(順番に)実行します:
396396

397397
1. **Git Config**(常時): `git config --local user.name``user.email`を設定
398-
2. **SSH鍵**`sshKeyPath`設定時): 他のキーをssh-agentから削除し、選択したキーを追加
398+
2. **SSH鍵**`sshKeyPath`設定時): 他の鍵をssh-agentから削除し、選択した鍵を追加
399399
3. **GPG鍵**`gpgKeyId`設定時): `git config --local user.signingkey`を設定し、署名を有効化
400400
4. **サブモジュール**(有効時): すべてのサブモジュールに設定を伝播(デフォルト:深度1)
401401

@@ -438,7 +438,7 @@ Gitサブモジュールを使用する複雑なリポジトリでは、プロ
438438
eval "$(ssh-agent -s)"
439439
```
440440

441-
2. キーパスが正しいか確認
441+
2. 鍵のパスが正しいか確認
442442

443443
```bash
444444
ls -la ~/.ssh/id_ed25519_*
@@ -535,6 +535,32 @@ VS Codeなどのエディタは設定スキーマをメモリにキャッシュ
535535

536536
---
537537

538+
## ワークスペースの信頼
539+
540+
Git ID Switcher は VS Code の [ワークスペースの信頼](https://code.visualstudio.com/docs/editor/workspace-trust) 機能に対応しています。信頼されていないワークスペースでは、危険な操作が自動的に制限されます。
541+
542+
### 信頼されていないワークスペースでの動作
543+
544+
| 操作 | 動作 |
545+
| ---------------------- | ---------------------- |
546+
| プロフィール閲覧 | ✅ 許可 |
547+
| 現在のGit config表示 | ✅ 許可 |
548+
| プロフィール切り替え | ⚠️ ユーザー確認が必要 |
549+
| Git configの変更 | ❌ ブロック |
550+
| SSH鍵操作 | ❌ ブロック |
551+
552+
### 無効化(非推奨)
553+
554+
やむを得ずワークスペースの信頼チェックを無効にする場合:
555+
556+
1. 設定を開く(`Cmd+,` / `Ctrl+,`
557+
2. `gitIdSwitcher.disableWorkspaceTrust` を検索
558+
3. 設定を有効化
559+
560+
⚠️ **警告**: この設定を有効にするとセキュリティが低下します。必要最小限の使用にとどめてください。
561+
562+
---
563+
538564
## 設計哲学
539565

540566
> **「私は誰」を切り替える** — この拡張機能が答える唯一の問い

extensions/git-id-switcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "git-id-switcher",
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
5-
"version": "0.10.48",
5+
"version": "0.11.0",
66
"publisher": "nullvariant",
77
"icon": "images/icon.png",
88
"engines": {

0 commit comments

Comments
 (0)