René's URL Explorer Experiment


Title: Optionally store CLI authentication tokens in OS keyring · Issue #19403 · coder/coder · GitHub

Open Graph Title: Optionally store CLI authentication tokens in OS keyring · Issue #19403 · coder/coder

X Title: Optionally store CLI authentication tokens in OS keyring · Issue #19403 · coder/coder

Description: Feature Request: Secure Token Storage in OS Keyring Problem Currently, the Coder CLI stores authentication tokens in plaintext configuration files, which poses a security risk. Users' tokens are stored unencrypted and can be easily acces...

Open Graph Description: Feature Request: Secure Token Storage in OS Keyring Problem Currently, the Coder CLI stores authentication tokens in plaintext configuration files, which poses a security risk. Users' tokens are st...

X Description: Feature Request: Secure Token Storage in OS Keyring Problem Currently, the Coder CLI stores authentication tokens in plaintext configuration files, which poses a security risk. Users' tokens ar...

Opengraph URL: https://github.com/coder/coder/issues/19403

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optionally store CLI authentication tokens in OS keyring","articleBody":"## Feature Request: Secure Token Storage in OS Keyring\n\n### Problem\nCurrently, the Coder CLI stores authentication tokens in plaintext configuration files, which poses a security risk. Users' tokens are stored unencrypted and can be easily accessed by other processes or users with file system access.\n\n### Proposed Solution\nImplement secure token storage using the OS keyring with graceful fallback to file storage when keyring is unavailable.\n\n### Acceptance Criteria\n\n- [ ] **CLI should by default store the token in the OS keyring** using a library like [zalando/go-keyring](https://github.com/zalando/go-keyring)\n  - Keychain on macOS\n  - GNOME Keyring on Linux (Secret Service dbus interface) \n  - Wincred on Windows\n\n- [ ] **CLI should fallback to storing the token in text file** if the keyring is not available\n  - Maintain backward compatibility\n  - Ensure minimal disruption if keyring operations fail\n  - Log appropriate warnings when falling back to file storage\n\n- [ ] **Address security considerations** from [GitHub CLI's keyring implementation discussion](https://github.com/cli/cli/pull/7023#discussion_r1113142082):\n  - Consider the security implications of using `zalando/go-keyring` which shells out to the `security` command on macOS\n  - On macOS, this grants access to the `security` binary rather than the specific application, which can weaken the security model\n  - Document this limitation and consider future improvements to use native APIs\n  - Despite this limitation, keyring storage is still significantly more secure than plaintext files\n\n### Implementation Considerations\n\n1. **Library Choice**: Use `zalando/go-keyring` for pure Go implementation without CGO requirements\n2. **Migration**: Handle existing plaintext tokens gracefully during the transition\n3. **Error Handling**: Robust fallback mechanism when keyring operations fail\n4. **Cross-platform**: Ensure consistent behavior across macOS, Linux, and Windows\n5. **User Experience**: Minimal prompts and clear messaging about keyring access\n6. **Testing**: Comprehensive tests for both keyring and fallback scenarios\n\n### Security Benefits\n- Tokens encrypted at rest using OS-provided security mechanisms\n- Reduced risk of accidental token exposure in config files\n- Better integration with enterprise security policies\n\n### References\n- [GitHub CLI keyring implementation](https://github.com/cli/cli/pull/7023)\n- [zalando/go-keyring library](https://github.com/zalando/go-keyring)\n- [Security discussion about macOS implementation](https://github.com/cli/cli/pull/7023#discussion_r1113142082)","author":{"url":"https://github.com/apps/blink-so","@type":"Person","name":"blink-so"},"datePublished":"2025-08-19T08:13:42Z","url":"https://github.com/coder/coder/issues/19403"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c19c242d-81dc-c06f-9e24-c9b73b360930
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D92:21AC3F:143B753:19B654C:6B0111CF
html-safe-nonce3257f588928d4a2c94762c5c1e9589fb87f0ed99267841d64dbdfdee17d1d554
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDkyOjIxQUMzRjoxNDNCNzUzOjE5QjY1NEM6NkIwMTExQ0YiLCJ2aXNpdG9yX2lkIjoiMzUyNzMxMzUyMDgwNDgyNzU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2da8e09f5de9e5df64b874464bbdacf423665c219f6585215d9b51c3f0e090e1
hovercard-subject-tagissue:3333387697
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/19403/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5bf4c176cad5ef9d4919cc5599ff37ab98ead113d28b1211d666f5fb2c588bc8/coder/coder/issues/19403
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5bf4c176cad5ef9d4919cc5599ff37ab98ead113d28b1211d666f5fb2c588bc8/coder/coder/issues/19403
og:image:altFeature Request: Secure Token Storage in OS Keyring Problem Currently, the Coder CLI stores authentication tokens in plaintext configuration files, which poses a security risk. Users' tokens are st...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameblink-so[bot]
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/19403#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F19403
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F19403
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/19403
Reloadhttps://github.com/coder/coder/issues/19403
Reloadhttps://github.com/coder/coder/issues/19403
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests468 (468)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/19403
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/19403
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
Optionally store CLI authentication tokens in OS keyringhttps://github.com/coder/coder/issues/19403#top
https://github.com/zedkipp
https://github.com/apps/blink-so
blink-sohttps://github.com/apps/blink-so
on Aug 19, 2025https://github.com/coder/coder/issues/19403#issue-3333387697
zalando/go-keyringhttps://github.com/zalando/go-keyring
GitHub CLI's keyring implementation discussionhttps://github.com/cli/cli/pull/7023#discussion_r1113142082
GitHub CLI keyring implementationhttps://github.com/cli/cli/pull/7023
zalando/go-keyring libraryhttps://github.com/zalando/go-keyring
Security discussion about macOS implementationhttps://github.com/cli/cli/pull/7023#discussion_r1113142082
blink-sohttps://github.com/apps/blink-so
on Aug 19, 2025https://github.com/coder/coder/issues/19403#event-19228661567
cli: macOS store session token in Keychain with file fallbackhttps://github.com/coder/coder/commit/07510a6cb0301b4146b3684856385838a2276dab
07510a6https://github.com/coder/coder/commit/07510a6cb0301b4146b3684856385838a2276dab
ibetitsmikehttps://github.com/ibetitsmike
f0sselhttps://github.com/f0ssel
on Aug 21, 2025https://github.com/coder/coder/issues/19403#event-19268677436
matifalihttps://github.com/matifali
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
on Aug 22, 2025https://github.com/coder/coder/issues/19403#event-19278517608
f0sselhttps://github.com/f0ssel
zedkipphttps://github.com/zedkipp
zedkipphttps://github.com/zedkipp
f0sselhttps://github.com/f0ssel
on Oct 6, 2025https://github.com/coder/coder/issues/19403#event-20120693389
https://github.com/zedkipp
zedkipphttps://github.com/zedkipp
on Oct 16, 2025https://github.com/coder/coder/issues/19403#issuecomment-3413171183
https://www.notion.so/coderhq/CLI-Session-Token-in-OS-Keyring-293d579be592808b8b7fd235304e50d5https://www.notion.so/coderhq/CLI-Session-Token-in-OS-Keyring-293d579be592808b8b7fd235304e50d5
zedkipphttps://github.com/zedkipp
on Oct 30, 2025https://github.com/coder/coder/issues/19403#event-20621872604
feat(cli): optionally store session token in OS keyring (#20256)https://github.com/coder/coder/commit/139dab7cfe4af1c1b790624aa3d2596eb7796ed8
#20256https://github.com/coder/coder/pull/20256
139dab7https://github.com/coder/coder/commit/139dab7cfe4af1c1b790624aa3d2596eb7796ed8
zedkipphttps://github.com/zedkipp
on Oct 31, 2025https://github.com/coder/coder/issues/19403#event-20644766843
zedkipphttps://github.com/zedkipp
on Nov 12, 2025https://github.com/coder/coder/issues/19403#event-20894845219
feat(cli): add macOS support for session token keyring storage (#20613)https://github.com/coder/coder/commit/5e85663ce3872c41faa3e7ef314be4bac51b717d
#20613https://github.com/coder/coder/pull/20613
5e85663https://github.com/coder/coder/commit/5e85663ce3872c41faa3e7ef314be4bac51b717d
https://github.com/zedkipp
zedkipphttps://github.com/zedkipp
on Nov 26, 2025https://github.com/coder/coder/issues/19403#issuecomment-3578326544
zedkipphttps://github.com/zedkipp
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 26, 2025https://github.com/coder/coder/issues/19403#event-21178381915
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/19403
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/19403
zedkipphttps://github.com/zedkipp
Featurehttps://github.com/coder/coder/issues?q=type:"Feature"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.