Linux: Secrets.ts set exits 1 after a successful write because keychainRead spawns the missing macOS security binary
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bun, macos, typescript
- 領域
- backend
調査の方向性
LIFEOS/TOOLS/Secrets.tsを読み、94行目付近のkeychainReadと、327行目付近にあるcmdSetからの呼び出しを確認してください。LinuxでSecrets.ts set KEYを実行して再現し、securityバイナリが存在しない場合にシールIDなしとして扱われることを確認してください。値が書き込まれ、既存の「not sealed」という注記が表示され、コマンドが終了コード0で終了すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Version
LifeOS 8.761.0 · attestation: 1 system file(s) differ from danielmiessler/[email protected] · 8 system file(s) missing:
- skills/LifeOS/SKILL.md
What is broken
On Linux, Secrets.ts set KEY writes the value to .env correctly and then exits 1 with Executable not found in $PATH: "security". After the write, cmdSet calls keychainRead() to decide whether to reseal, and keychainRead spawns the macOS security binary through run(). Bun.spawnSync throws ENOENT when the binary does not exist, instead of returning a non-zero exit, so the throw escapes before the intended "not sealed" message is printed. A user sees a failure for a key that was in fact stored, and any script that checks the exit code treats a good write as a failed one. Related: #2536 (no non-Keychain identity store on Linux); this report is narrower: the missing binary should read as "no seal identity", not crash.
Where (file:line)
LIFEOS/TOOLS/Secrets.ts:94 (keychainRead → run → Bun.spawnSync throws ENOENT), reached from cmdSet at :327
Repro on a clean tree
1. On Linux (no `security` binary), run `printf x | LIFEOS_SECRETS_ENV=/tmp/probe.env bun ~/.claude/LIFEOS/TOOLS/Secrets.ts set PROBE_KEY`.
2. Output: `✓ set PROBE_KEY in /tmp/probe.env (mode 600; value not shown)`, then on stderr `✗ Executable not found in $PATH: "security"`, exit 1.
3. `/tmp/probe.env` does contain the new PROBE_KEY line: the write succeeded and only the reseal check crashed.
4. Workaround: `LIFEOS_SECRETS_SECURITY_BIN=false` makes `keychainRead` get a non-zero exit, and `set` ends with the expected "not sealed" note and exit 0.
Negative control
Probe: cd "$PROBEDIR" && printf x | LIFEOS_SECRETS_ENV=probe.env bun ~/.claude/LIFEOS/TOOLS/Secrets.ts set PROBE_KEY · exit 1 · captured 2026-11-28T00:21:47.487Z
Red looks like: Executable not found in $PATH: "security"
✓ set PROBE_KEY in probe.env (mode 600; value not shown)
--- stderr ---
✗ Executable not found in $PATH: "security"
Suggested fix
Make keychainRead() return null when the security binary is missing (catch the ENOENT from run(), or check Bun.which(SECURITY_BIN) first), so a machine with no Keychain reads as "no seal identity". cmdSet then prints its existing "not sealed" note and exits 0. keychainWrite (used by init) should give a clear "macOS Keychain required, see #2536" error instead of a raw ENOENT.
Environment
- OS: CachyOS (x64)
- Harness: claude-code
- bun: 1.4.5 · git: 2.56.1
- Doctor broken: none
- 主要言語
- TypeScript
- スター
- 20k
- フォーク
- 2.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
danielmiessler/LifeOS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
danielmiessler/LifeOS#3001 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
danielmiessler/LifeOS#2985 ·
メンテナーはふだん 5 日以内に返信
-
MemoryTurnStart: the 300 ms budget skipped memory retrieval on 1 in 4 prompts on a Windows installオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
danielmiessler/LifeOS#2983 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
danielmiessler/LifeOS#2980 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
danielmiessler/LifeOS#2977 ·
メンテナーはふだん 5 日以内に返信
danielmiessler/LifeOS の issue をすべて見る
似ている issue
-
good first issue help wanted
難易度 2/5 1時間未満 初心者へのやさしさ 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
open-webui/open-webui#35184 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信