Skip to content

Conversation

@zedkipp
Copy link
Contributor

@zedkipp zedkipp commented Nov 26, 2025

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 keyring coder login --global-config=/tmp/ dev.coder.com -> token stored in /tmp/session

(cherry picked from commit bbf7b13)

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 keyring
`coder login --global-config=/tmp/ dev.coder.com` -> token stored in
`/tmp/session`

(cherry picked from commit bbf7b13)
@zedkipp zedkipp added the cherry-pick/v2.29 Needs to be cherry-picked to the 2.29 release branch label Nov 26, 2025
@zedkipp zedkipp marked this pull request as ready for review November 26, 2025 15:10
@zedkipp zedkipp requested a review from david-fraley November 26, 2025 15:31
@david-fraley david-fraley merged commit 8430dd6 into release/2.29 Dec 1, 2025
38 checks passed
@david-fraley david-fraley deleted the zedkipp/cherry-2.29-keyring branch December 1, 2025 20:09
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants