Skip to main content

Module creds_store

Module creds_store 

Source
Expand description

Re-export the credential store under the historical harmont_cli::creds_store path. File-backed credential store at ~/.config/hm/credentials.toml.

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

Constants§

CLOUD_SERVICE
Credential service name for the cloud bearer token (account = API base URL).

Functions§

cloud_token
Resolve the cloud bearer token for api_base.
delete
Remove a credential. Silently no-ops if the entry is absent or the underlying write fails.
forget_cloud_token
Remove any stored cloud bearer token for api_base.
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.
set_cloud_token
Persist the cloud bearer token for api_base.