Skip to main content

Module creds_store

Module creds_store 

Source
Expand description

File-backed credential store at ~/.harmont/credentials.toml.

Replaces the OS keyring as the sole backend. The file is written with mode 0o600 (parent dir 0o700) via crate::fs_util::write_atomic_restricted. Keyed by (service, account) to match the host-fn ABI plugins use.

Functionsยง

delete
Remove a credential. Silently no-ops if the entry is absent or the underlying write fails.
get
Read a credential for (service, account). Returns None when the file is missing, unreadable, or the entry is absent.
set
Write a credential. Silently no-ops on I/O failure so plugin callers match the prior keyring-backed best-effort semantics.