Skip to content

[codex] Clarify credential storage security boundary - #299

Merged
likun666661 merged 1 commit into
apache:mainfrom
tt-a1i:codex/clarify-credential-boundary
Jun 30, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
tt-a1i:codex/clarify-credential-boundary

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #296.

What changed

  • Updates README and README.en to describe the current provider credential store as local credentials.json plaintext JSON protected by OS account and POSIX 0700/0600 filesystem boundaries.
  • Keeps subscription OAuth token stores separate: Claude, Codex, Cursor, Antigravity, and similar account services still use Electron safeStorage and fail closed when it is unavailable.
  • Updates SECURITY.md vulnerability-scope examples so intentional provider-store plaintext is not described as a safeStorage bypass.
  • Updates Settings visible copy and pinned contract tests so provider model keys are described as local credential-file data, while subscription account tokens remain system secure storage.
  • Removes stale safeStorage wording 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 FileCredentialStore for provider credentials, while some subscription token stores still use safeStorage. 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

@tt-a1i
tt-a1i force-pushed the codex/clarify-credential-boundary branch 2 times, most recently from 772641c to 8f816c6 Compare June 26, 2026 07:08
@tt-a1i
tt-a1i force-pushed the codex/clarify-credential-boundary branch from 8f816c6 to 3895044 Compare June 26, 2026 07:11
@tt-a1i
tt-a1i marked this pull request as ready for review June 26, 2026 07:46

@likun666661 likun666661 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@likun666661
likun666661 merged commit e997ea8 into apache:main Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify credential-at-rest boundary in security docs

2 participants