Skip to content

feat(cli): store credentials in system keyring with JSON fallback#2889

Open
vigneshwarrvenkat wants to merge 1 commit into
upstash:masterfrom
vigneshwarrvenkat:feat/2639-keyring-credentials
Open

feat(cli): store credentials in system keyring with JSON fallback#2889
vigneshwarrvenkat wants to merge 1 commit into
upstash:masterfrom
vigneshwarrvenkat:feat/2639-keyring-credentials

Conversation

@vigneshwarrvenkat

Copy link
Copy Markdown

Summary

Test plan

  • pnpm --filter ctx7 lint:check && format:check && typecheck && test && build
  • ctx7 login on macOS — verify Keychain entry created, plaintext file removed
  • ctx7 logout — verify Keychain entry cleared
  • CTX7_CREDENTIAL_STORE=json ctx7 login — verify JSON fallback works

@vigneshwarrvenkat vigneshwarrvenkat force-pushed the feat/2639-keyring-credentials branch from ea6448b to 92fda8c Compare July 8, 2026 05:52
Add a CredentialStore abstraction that prefers the OS keyring (via keytar)
and falls back to the existing XDG credentials.json file. Automatically
migrates plaintext credentials on first run and supports
CTX7_CREDENTIAL_STORE=auto|json|keyring.
Fixes upstash#2639
@vigneshwarrvenkat vigneshwarrvenkat force-pushed the feat/2639-keyring-credentials branch from 92fda8c to 58397bf Compare July 10, 2026 03:51
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.

[Feature]: Store Credentials in System Keyrings with JSON Fallback

1 participant