Expand description
Storage for CLI secret material (OIDC client secrets, cached OAuth tokens).
Kept in its own file, separate from crate::cli::config, so that secrets never show
up when a user inspects their config (e.g. haste-health config show-profile) and so
the two files can be handled differently (e.g. excluded from dotfile backups/sync).
StructsΒ§
- CliSecrets π
- All CLI secrets, keyed by profile name. Persisted separately from
CliConfiguration. - Profile
Secrets π - Secret material for a single profile.
- Stored
Tokens π - Cached OAuth tokens for a profile using the
authorization_codeflow, populated byhaste-health login.
FunctionsΒ§
- load_
secrets π - Loads the secrets file, creating an empty one on disk if it doesnβt exist yet.
- read_
existing_ πsecrets - write_
secrets π