Skip to content

Support keyring on linux without gnome-keyring#1502

Merged
vcheung-stripe merged 3 commits intostripe:masterfrom
vfcheung:vcheung-fix-keyring
Mar 20, 2026
Merged

Support keyring on linux without gnome-keyring#1502
vcheung-stripe merged 3 commits intostripe:masterfrom
vfcheung:vcheung-fix-keyring

Conversation

@vfcheung
Copy link
Copy Markdown
Contributor

@vfcheung vfcheung commented Mar 20, 2026

Summary

Fixes the "No directory provided for file keyring" issue on Linux, specifically Ubuntu on WSL.

go run ./cmd/stripe/main.go login
Your pairing code is: free-pepped-woo-enrapt
This pairing code verifies your authentication with Stripe.
Press Enter to open the browser or visit https://dashboard.stripe.com/stripecli/confirm_auth?t=Lfzre45EQXVVTPl5GrAor2Z81nvD4fvU (^C to quit)
Enter passphrase to unlock "/home/vincent/.config/stripe":
> Done! The Stripe CLI is configured for your account with account id acct_1HLW4tLWKVqbbiZw
Please note: this key will expire after 90 days, at which point you'll need to re-authenticate.

This now allows livemode requests:

go run ./cmd/stripe/main.go customers list --live
Enter passphrase to unlock "/home/vincent/.config/stripe":
{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/customers"
}

One caveat is it will ask you to enter your passphrase every time you need livemode. This can be addressed in a followup, as this has been broken to begin with. This doesn't happen on other systems.

@vfcheung vfcheung requested a review from a team as a code owner March 20, 2026 23:05
@vcheung-stripe vcheung-stripe merged commit 735c376 into stripe:master Mar 20, 2026
7 checks passed
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.

3 participants