Skip to content

Support secure password storage via OS keychain #63

@mquandalle

Description

@mquandalle

Currently the password can be stored in plaintext in ~/.bourso/settings.json. It would be nice to support secure storage using the OS native credential manager.

The https://crates.io/crates/keyring crate provides cross-platform support for:

  • macOS Keychain
  • Linux Secret Service (GNOME Keyring, KWallet)
  • Windows Credential Manager
  use keyring::Entry;

  let entry = Entry::new("bourso-cli", &username)?;
  entry.set_password(&password)?;
  // ...
  let password = entry.get_password()?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions