secretx-keyring
OS keychain backend for secretx.
Reads and writes secrets via the platform keychain: macOS Keychain Services, Windows Credential Manager, or libsecret / KWallet on Linux.
URI
secretx:keyring:<service>/<account>
service— keychain service name (groups credentials by application)account— account name within the service
Usage
[]
= "0.2"
= "0.2"
use KeyringBackend;
use SecretStore;
let store = from_uri?;
let value = store.get.await?;
Platform notes
- macOS — uses Keychain Services; works in both GUI and server contexts.
- Windows — uses Windows Credential Manager.
- Linux — requires a running keyring daemon (
gnome-keyring-daemon, KWallet). On headless serversputmay succeed butgetreturnsNotFoundwithout a daemon. Do not use in headless CI without a keyring daemon.
Part of secretx
This crate is part of the secretx workspace. Enable the keyring feature on the secretx umbrella crate to use it via URI dispatch.