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

feat(cli): add macOS support for session token keyring storage#20613

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

Draft
zedkipp wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromzedkipp/keyring-macos

Conversation

@zedkipp
Copy link
Contributor

@zedkippzedkipp commentedOct 31, 2025
edited
Loading

Add support for storing the CLI session token in the OS keyring on macOS when the --use-keyring flag is provided.

#19403

https://www.notion.so/coderhq/CLI-Session-Token-in-OS-Keyring-293d579be592808b8b7fd235304e50d5

Add support for storing the CLI session token in the OS keyring on macOSwhen the --use-keyring flag is provided.
func (operatingSystemKeyring)Set(service,credentialstring)error {
// if the added secret has multiple lines or some non ascii,
// macOS will hex encode it on return. To avoid getting garbage, we
// encode all passwords
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@ethanndickson what are your thoughts on keeping this base64 encoding/decoding? It's borrowed fromhttps://github.com/zalando/go-keyring/. I don't think we explicitly need it given our token format.

typestoredCredentialsmap[string]struct {
CoderURLstring`json:"coder_url"`
APITokenstring`json:"api_token"`
}
Copy link
ContributorAuthor

@zedkippzedkippOct 31, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@ethanndickson this is essentially what gets stored as a JSON blob (b64 encoded -see my other comment). Looks like this in my keychain. Any problems/concerns for Coder Desktop on macOS, in terms of future session token sharing?
Screenshot 2025-10-31 at 4 27 17 PM

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ethanndicksonethanndicksonAwaiting requested review from ethanndickson

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

Assignees

@zedkippzedkipp

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@zedkipp

[8]ページ先頭

©2009-2025 Movatter.jp