Skip to content

Store SSH secrets in the OS credential vault instead of plaintext#940

Open
Sajeeth-Wimalasuriyan wants to merge 1 commit into
mainfrom
sw-password-vault
Open

Store SSH secrets in the OS credential vault instead of plaintext#940
Sajeeth-Wimalasuriyan wants to merge 1 commit into
mainfrom
sw-password-vault

Conversation

@Sajeeth-Wimalasuriyan

Copy link
Copy Markdown
Contributor

Add SecretStore, a small wrapper over the OS credential store (Windows Credential Manager, macOS Keychain, libsecret on Linux). SSH passwords and key passphrases now live there, keyed by the connection id, and are no longer written to profiles.json.

SshConnectionStore moves secrets in/out of the vault on load/save/remove. Legacy plaintext left by older builds is ignored (the user re-enters on connect) and stripped from disk on load. When no vault is available, secrets are not persisted and the SSH layer prompts at connect time.

Add SecretStore, a small wrapper over the OS credential store (Windows Credential Manager, macOS Keychain, libsecret on Linux). SSH passwords and key passphrases now live there, keyed by the connection id, and are no longer written to profiles.json.

SshConnectionStore moves secrets in/out of the vault on load/save/remove. Legacy plaintext left by older builds is ignored (the user re-enters on connect) and stripped from disk on load. When no vault is available, secrets are not persisted and the SSH layer prompts at connect time.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant