Skip to content

Clarify credential-at-rest boundary in security docs #296

Closed

Description

@tt-a1i

Problem

The public docs describe provider credentials as protected by Electron safeStorage / OS keychain encryption, but the current file-first credential store intentionally writes a plaintext JSON file protected by directory/file permissions. That mismatch is security-relevant because it changes both user expectations and vulnerability-reporting boundaries.

Evidence

  • README.md says API keys/OAuth tokens/bot/proxy/gateway/Tavily values use safeStorage and are persisted encrypted.
  • SECURITY.md treats credential-at-rest encryption via safeStorage/OS keychain as load-bearing and lists plaintext token storage as in-scope.
  • packages/storage/src/credential-store.ts documents the current model as plaintext JSON behind 0700/0600 permissions, with encryption deferred.
  • Storage tests assert a versioned plaintext file-first format.

Proposed fix

Update the README and SECURITY boundary language to match the implemented provider credential store: plaintext-at-rest under OS account and filesystem permission boundaries, while preserving any separate safeStorage claims only where the code actually still uses that mechanism.

Validation

  • Grep docs for stale safeStorage / plaintext boundary claims.
  • Run docs/static tests if present.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions