Skip to content

Make coder.useKeyring opt-in and store token at login #836

@EhabY

Description

@EhabY

Problem

coder.useKeyring currently defaults to true on macOS/Windows, which has unintended side effects: logging out of the IDE logs out the CLI and vice versa, since they share the same keyring entry. Additionally, tokens are only written to the keyring when connecting to a workspace, not at login time — so the CLI doesn't pick them up until a workspace connection occurs.

Proposed Changes

  • Default coder.useKeyring to false (opt-in) due to shared logout side effects
  • Update the setting description to document sync behavior and version requirements
  • Store token to the OS keyring at login time so the CLI picks it up immediately
  • Show a cancellable progress notification for CLI keyring invocations during login

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions