Skip to content

feat(infra): OS keychain token storage #112

Open

Description

@omriariav

Summary

Store OAuth tokens in OS keychain (macOS Keychain, Linux Secret Service) instead of plain JSON file at ~/.config/gws/token.json.

Priority: P2 | Complexity: Medium

Motivation

Both bkt (go-keyring) and gogcli use keyring-based credential storage. Storing tokens in plaintext JSON is a security concern.

Implementation

  • Use go-keyring library
  • Store/retrieve tokens via OS keychain by default
  • Fall back to file-based storage if keychain unavailable
  • Add --no-keychain flag to gws auth login to opt out
  • Migration: auto-migrate existing token.json to keychain on first use

Activity

  1. added this to the v1.44.0 milestone on Jun 16, 2026
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

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions