Repository navigation
[codex] Clarify credential storage security boundary - #299
Merged
likun666661 merged 1 commit intoJun 30, 2026
Merged
Conversation
tt-a1i
force-pushed
the
codex/clarify-credential-boundary
branch
2 times, most recently
from
June 26, 2026 07:08
772641c to
8f816c6
Compare
tt-a1i
force-pushed
the
codex/clarify-credential-boundary
branch
from
June 26, 2026 07:11
8f816c6 to
3895044
Compare
tt-a1i
marked this pull request as ready for review
June 26, 2026 07:46
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 #296.
What changed
credentials.jsonplaintext JSON protected by OS account and POSIX0700/0600filesystem boundaries.safeStorageand fail closed when it is unavailable.safeStoragewording from design/docs and the core walkthrough notes that referred to provider/source API-key storage.Why
The code and tests now intentionally use the pure-Node file-first
FileCredentialStorefor provider credentials, while some subscription token stores still usesafeStorage. The old docs and Settings copy collapsed those two storage models and overstated the provider credential encryption boundary.Validation
rg -n 'API key、OAuth token、bot token、proxy password、gateway token、Tavily key|系统安全存储加密的模型密钥|模型供应商密钥通过系统安全存储|模型密钥使用系统安全存储加密|safeStorage 加密后写|safeStorage 加密 \\+ preload|凭据本地加密' . --glob '!node_modules/**' --glob '!dist/**'\n-npm --workspace @maka/core run build && npm --workspace @maka/storage run build && npm --workspace @maka/runtime run build && npm --workspace @maka/ui run build && npm --workspace @maka/desktop run build:main\n-(cd apps/desktop && node --test --test-name-pattern "Settings app-info|Account settings credential|Data settings backup" dist/main/__tests__/settings-app-info-contract.test.js dist/main/__tests__/account-auth-ui.test.js dist/main/__tests__/settings-roadmap-cleanup-contract.test.js)\n-git diff --check