Skip to content

Add support to store passwords and tokens in the OS Keyring#5

Closed
notthatjesus wants to merge 10 commits intossp-data:mainfrom
notthatjesus:feature/keyring
Closed

Add support to store passwords and tokens in the OS Keyring#5
notthatjesus wants to merge 10 commits intossp-data:mainfrom
notthatjesus:feature/keyring

Conversation

@notthatjesus
Copy link
Copy Markdown
Contributor

Overview

This PR adds support to use OS default keyring instead of storing the passwords and tokens in files. The implementation is done with backwards compatibility as well as adding a migration path to move current passwords to the keyring.

Changes

  • Adds a new package to manage the keyring to add/modify/delete entries
  • Refactoring of both Oauth2 package and the model to support using the keyring
  • Adds a new UI prompt to add/update passwords
  • Adds commands to set and migrate passwords/tokens
  • Updated configuration to use the keyring by default, fallback to file storage
  • Updated documentation
  • Added go-keyring as direct dependency

@notthatjesus
Copy link
Copy Markdown
Contributor Author

This PR includes as well the update to the benchmark adding support for oauth accounts (#4) because I branched from that one.

@notthatjesus notthatjesus marked this pull request as draft April 7, 2026 08:02
@notthatjesus
Copy link
Copy Markdown
Contributor Author

Moving it back to draft to simplify the changes

Comment thread cmd/neomd/main.go
Host: h,
Port: p,
User: acc.User,
Password: acc.Password,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Password.acc

@sspaeti sspaeti mentioned this pull request May 6, 2026
@sspaeti sspaeti closed this in #13 May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants