Skip to content

Secrets: plain-file store shared with the doperpowers /secret mod; remove the Keychain helper #66

Closed

Description

@SSFSKIM

Goal (owner decision 2026-10-07)

Replace cua's Keychain-backed secret store with the plain-file store that the doperpowers secrets mod already uses: ~/.config/claude-secrets/<KEY> (mode 600, one value per file, KEY matching [A-Za-z_][A-Za-z0-9_]*). Same code path on macOS and Linux. The trusted-side {{secret:KEY}} substitution (the real guarantee: the model sees labels, cua's trusted wrapper fills the value) is unchanged.

Why: Keychain's value was never the guarantee; it is locked under ssh/mosh/daemons and has no Linux counterpart. The owner's trust model (no anti-exfiltration promise, agent alignment) is consistent with a 600 file, which is also how API keys are usually stored. One store means /secret KEY in Claude Code (doperpowers mod: masked input pane, read-guard on tool calls, [secret:KEY] redaction of printed values including base64/hex/URL encodings) immediately serves {{secret:KEY}} in cua, locally, through the remote agent, and in a Linux VM. MAWS will reuse the same directory and mod.

Scope

  • src/secrets/: a file backend behind the existing secrets.read(label) seam; remove the Swift helper (native/keychain), the broker socket protocol, cua-keychain build/sign steps, secrets.helper doctor rows; label grammar aligned to the mod's KEY grammar. secrets_list lists the directory. cua secrets set either points at /secret or keeps a terminal masked prompt writing the same file; the owner's call is the simpler one.
  • Platform: secrets_unsupported_platform goes away; Linux gets secrets.
  • Sandbox: if the vendor scoped profile can deny reads of a root, add ~/.config/claude-secrets to it; otherwise document that a cell under disabled can read the file (same level as Bash under the mod's guard).
  • Acceptance: real substitution into TextEdit on macOS (local and through the remote agent) and into gedit on the Linux VM via pressKey/paste shapes; README, host notes, parent spec Phase B Decision Log entry, docs/evidence.
  • Close Developer ID signing for the Keychain helper and release #14 (nothing left to sign) and Linux secrets backend (libsecret / Secret Service) for the broker #59 (replaced).

Reference: doperpowers hooks/mods/secrets.tsx at /Users/new/Developer/GitHub/doperpowers (DIR, KEY grammar, guard, redaction).

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P1
    status:in-progress
    status:in-review
    and removed
    status:ready-for-implementer
    status:in-progress
    on Oct 7, 2026
  2. SSFSKIM commented on Oct 7, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR open: file store, Keychain helper removed; acceptance 1-4 done (gedit crash recorded)

  3. added a commit that references this issue on Oct 7, 2026
  4. removed
    status:in-review
    on Oct 7, 2026
  5. SSFSKIM commented on Oct 7, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: PR #68 merged: plain-file store shared with /secret, Keychain helper and broker removed; acceptance on macOS local, mini via relay, Linux VM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions