GitHub 認証・署名を Secure Enclave SSH キーに移行 - #56
Closed
thinceller-hermes wants to merge 1 commit into
Closed
Conversation
- 1Password SSH エージェントから macOS Secure Enclave 管理の SSH キーへ移行 - commit 署名は ~/.ssh/id_github_se を使うように変更 - push 認証も Host github.com で Secure Enclave キーを使用 - SSH_SK_PROVIDER を fish セッション変数に設定
Nix Diffkohei-m4-mac-miniAttribute: Diff OutputSC-N-843Attribute: Diff Output
Generated by nix-diff-action using dix |
Collaborator
Author
|
別セッションで架構を練り直すため一旦 close します。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Claude Code のリモートコントロール中に 1Password SSH エージェントの生体認証プロンプトが操作できなくて作業が止まる問題を解決するため、GitHub への push 認証と commit 署名を macOS Secure Enclave に格納した SSH キーに移行する。
変更点
home-manager/programs/git/default.nixuser.signingkeyを 1Password の公開鍵文字列から~/.ssh/id_github_seへ変更gpg.ssh.programを~/.local/bin/ssh-signラッパースクリプトに変更ssh-signスクリプトを~/.local/binに配置(SSH_SK_PROVIDER設定済み)home-manager/programs/ssh/default.nixHost github.comでIdentityFile ~/.ssh/id_github_seを使用し、IdentityAgent noneで 1Password agent を無効化home-manager/programs/fish/default.nixSSH_SK_PROVIDER=/usr/lib/ssh-keychain.dylibをセッション変数に設定Mac 上での事前作業(必須)
各 Mac で以下を実行して、Secure Enclave 内に SSH キーを生成し、GitHub に登録する必要がある。
確認
ssh -T git@github.comがプロンプトなしで成功するgit commit --allow-empty -m "test"がプロンプトなしで署名される注意