Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(cli): remove defaulting to keyring when --global-config set (cherry-pick)#20953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
zedkipp wants to merge1 commit intorelease/2.29
base:release/2.29
Choose a base branch
Loading
fromzedkipp/cherry-2.29-keyring

Conversation

@zedkipp
Copy link
Contributor

This fixes a regression that caused the VS code extension to be unable to authenticate after making keyring usage on by default. This is because the VS code extension assumes the CLI will always use the session token stored on disk, specifically in the directory specified by --global-config.

This fix makes keyring usage enabled when the --global-config directory is not set. This is a bit wonky but necessary to allow the extension to continue working without modification and without backwards compat concerns. In the future we should modify these extensions to either access the credential in the keyring (like Coder Desktop) or some other approach that doesn't rely on the session token being stored on disk.

Tests:
coder login dev.coder.com -> token stored in keyringcoder login --global-config=/tmp/ dev.coder.com -> token stored in/tmp/session

(cherry picked from commitbbf7b13)

This fixes a regression that caused the VS code extension to be unableto authenticate after making keyring usage on by default. This isbecause the VS code extension assumes the CLI will always use thesession token stored on disk, specifically in the directory specified by--global-config.This fix makes keyring usage enabled when the --global-config directoryis not set. This is a bit wonky but necessary to allow the extension tocontinue working without modification and without backwards compatconcerns. In the future we should modify these extensions to eitheraccess the credential in the keyring (like Coder Desktop) or some otherapproach that doesn't rely on the session token being stored on disk.Tests:`coder login dev.coder.com` -> token stored in keyring`coder login --global-config=/tmp/ dev.coder.com` -> token stored in`/tmp/session`(cherry picked from commitbbf7b13)
@zedkippzedkipp added the cherry-pick/v2.29Needs to be cherry-picked to the 2.29 release branch labelNov 26, 2025
@zedkippzedkipp marked this pull request as ready for reviewNovember 26, 2025 15:10
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@david-fraleydavid-fraleyAwaiting requested review from david-fraley

At least 1 approving review is required to merge this pull request.

Assignees

@zedkippzedkipp

Labels

cherry-pick/v2.29Needs to be cherry-picked to the 2.29 release branch

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@zedkipp

[8]ページ先頭

©2009-2025 Movatter.jp