feat(fnox): age identityをmacOSキーチェーンで管理する#45
Merged
Conversation
fnox 1.26.0 の provider-backed identity 機能を使い、age 秘密鍵を
平文ファイル(~/.config/fnox/age.txt)から macOS キーチェーンへ移行する。
鍵はキーチェーン1項目(service=fnox / account=age-key)に集約し、それ以外
の秘密は従来どおりその age 鍵で暗号化する。recipients(公開鍵)は不変な
ため既存の暗号化値の再暗号化は不要。
- dot_config/fnox/config.toml: keychain プロバイダを追加し、age に
identity = { provider = "keychain", value = "age-key" } を設定
- dot_config/mise/config.toml: identity 機能に必要な fnox を 1.26.0 へ更新
- .chezmoiignore: 鍵がキーチェーン管理になった旨へコメントを更新
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.
概要
fnox 1.26.0 で導入された provider-backed identity 機能を使い、age 秘密鍵を平文ファイル
~/.config/fnox/age.txtから macOS キーチェーンへ移行する。動機
これまで age 秘密鍵は平文ファイルとしてディスク上に存在していた。鍵をキーチェーン1項目に集約することで、ディスク上の平文鍵を排除しつつ、秘密本体は引き続き age 暗号化(git 管理可能)のまま運用できる。
詳細
dot_config/fnox/config.tomlkeychainプロバイダ(service=fnox)を追加identity = { provider = "keychain", value = "age-key" }を設定(鍵をキーチェーンのage-key項目から取得)dot_config/mise/config.toml1.25.1→1.26.0に更新.chezmoiignore気をつけるポイント
NODE_AUTH_TOKEN等)の再暗号化は不要。security add-generic-password -U -s fnox -a age-key -w "<AGE-SECRET-KEY...>"minimum_release_age = 7dはlatest/fuzzy 解決のみゲートするため exact ピンには影響しない。影響範囲
fnox get/fnox exec/ exec 専用 MCP)。chezmoi applyする際は、事前に各マシンのキーチェーンへ鍵投入が必要。テスト
fnox get NODE_AUTH_TOKEN/fnox execが成功することを確認(verbose ログで keychain 経由であることを確認)。確認後に age.txt を削除。