Repository navigation
Secrets: plain-file store shared with the /secret mod; remove the Keychain helper (#66) - #68
Merged
Merged
Conversation
…, with the sandbox read-deny measurement
…ead; remove the Keychain helper, broker and build scripts; Linux type_text shape; secrets.store doctor row; host notes rule
The live fixtures no longer use the removed Keychain helper, broker or pty driver. scripts/accept/secret-seed.mjs creates a temporary $HOME, stores a generated value through `cua secrets set` typed at a pty (`script`), and removes key and home; scripts/accept/serve-with-store.mjs runs the production server with HOME set to that home for its store while the runtime launch, Chrome facts and readiness listing keep the account's real home (the vendor finds the native socket under os.homedir()). accept-native: --live-keychain becomes --live-secrets; optional --secret-key KEY [--secret-home DIR] for a caller-stored key; item 1 and the clean clone run npm test only; item 6 exercises set/list/remove in a temporary store; the signing gate and the helper suites are gone; package contents no longer expect native/keychain. probe-secrets: store unreadable replaces broker unavailable. accept-chrome: seeds into a temporary store. verify.mjs: no broker child check.
…ompt, Linux shapes and launch, doctor secrets.store, serve on a temporary HOME
…ells can read, Linux secrets
…(helper-suite debt obsolete)
C2 matrix row renamed to the browser suite's "store refusals" title, with a test that every matrix title exists in that suite; --secret-home resolved to an existing absolute path; a caller's value checked (8+ characters, one line) before it becomes a leak fingerprint; doctor's secrets.store (the account's own store) informational in item 3; serve-fake-sky-target refuses an account HOME; removeStoreHome removes only a cua-* home directly in the temporary directory; probe-secrets cleanup cannot throw out of finally; item 6 header and cleanup detail say what they check.
…eadback compared by hash inside the cell, leak scan
…ough its OK output
…value never crosses the MCP stream; the transcript is scanned again after it
…nux secret fixture
… readback by hash, traffic scanned
…-only for a document a run left open
…ends it), sky tests pin their platform's shape
… relay, the Linux VM) and the spec's Surprises
…hich hung when stdin EOF followed the command's exit
…citation hook, cua-remote skill) into feat/file-secrets; the /secret mod is the plugin's now
…h-debt entries (interrupted fixtures, accept-native's BLOCKED verdict)
…xtures require a fingerprintable value; secrets.store informational in C5; README list wording
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Closes #66
Replaces the Keychain-backed secret store with the plain-file store of the
/secretmod (hooks/mods/secrets.tsx):~/.config/claude-secrets/<KEY>(file 0600, directory 0700, KEY[A-Za-z_][A-Za-z0-9_]*), the same code path on macOSand Linux. The trusted-side
{{secret:KEY}}substitution is unchanged in shape; only the reader changed. The Swifthelper, the broker, their build/test scripts and doctor rows are removed (net about −2,500 lines). Also closes the
ground of #14 (nothing left to sign) and #59 (replaced).
src/secrets/store.mjs: reads only a regular file owned by the user with mode exactly 0600 (openedO_NOFOLLOW|O_NONBLOCK,checked on the descriptor), bounded, UTF-8, exactly one trailing newline dropped, empty refused; every refusal a
value-free classified code (
secret_insecure_mode,secret_not_regular_file,secret_wrong_owner,secret_empty, …).cua secrets set <KEY>: masked raw-mode prompt, typed twice, refused without a terminal; help points at/secret KEY.secrets_unsupported_platformis gone; the Linux sky shapetype_text {window, text}is eligible.secrets.store(directory present, 0700, files 0600) replacessecrets.helper/secrets.signing.entry; README and host notes say a cell can read the store under every mode (Decision Log 2026-10-07).
docs/doperpowers/specs/2026-10-02-standalone-cua-design.md;execution report
docs/doperpowers/specs/2026-10-07-file-secrets-execution-report.md.main(the plugin bundle,e607f2c) is merged in.Validation Evidence
npm testnpm testoncua-linuxbash tests/mods/run-mods-tests.shaccept-native.mjs --live-secrets --live-textedit --secret-key CUA_TEST_SECRET --secret-home <tmp>in a temporaryCUA_HOMEprobe-secrets.mjs34/34 PASSscripts/accept/remote-secret.mjs --config ~/.config/cua-relay/mini.mcp.json …, key set overssh -ttin the mini's storeCUA_HOME; key removed, mini back onmainscripts/accept/linux-secret.mjs --key CUA_TEST_SECRET --app zenity… --app gedittype_textreaches the helper and gedit crashes, exactly as plaintypeTextdoes (#51); fixedsecret_input_failed, no leak{"path":…,"access":"none"}EPERM, trusted workerEPERMDetails:
docs/evidence/2026-10-07-file-secrets-acceptance.md.accept-native's overall verdict reads BLOCKED forreasons that predate this change (a Linux-only skip; a clean clone without
ws), logged intech-debt-tracker.md.Confusions
os.homedir()($HOME), so on macOS a wholecua serveunder a scratch$HOMEhas no native helper; the fixtures usescripts/accept/serve-with-store.mjs(store from the scratch home, runtime with the real home). Production is unaffected.
/secretmod moved into this repo onmainwhile the branch was open; wording was updated on merge.Residue
finallythat removes acua-*home holding a generated sentinel under$TMPDIR. A signal handler or a sweep at the next run would close it(tech-debt entry).
accept-nativecannot read PASS on a healthy macOS checkout. It counts the one Linux-only skip as missingcoverage, and its clean clone skips the
wstests. Expected-skip list plusnpm ciin the clone (tech-debt entry)./secretappears insecrets_list.cua remote enroll --jsonnames aclientSecretKeyfor the client to keep in the same store; since Secrets: plain-file store shared with the doperpowers /secret mod; remove the Keychain helper #66 that key is listed and could be typed as{{secret:…}}like any other. Whether such keys should be hidden fromsecrets_list(a name prefix, say) is aproduct call.