Menu

Enum

CredentialStorage

kurogane::CredentialStorageSource
pub enum CredentialStorage { System, Basic, }

Backend used to protect cookies and saved passwords at rest.

Pass to App::credential_storage to control whether the runtime reaches for the platform credential store (default = CredentialStorage::System).

Variants

#System

Use the platform credential store.

Cookies and passwords are encrypted with a key held by the Keychain (macOS), kwallet or gnome-keyring (Linux) or DPAPI (Windows).

Unsigned macOS builds prompt for Keychain access on every run because they have no stable code identity, and Linux hosts without a keyring daemon fall back to unencrypted storage on their own.

#Basic

Bypass the platform credential store.

Chromium protects data with a built-in fixed key instead, which is obfuscation rather than encryption: anything readable by the process is readable by anyone with access to the profile directory.

Suited to development, containers and CI, where the credential store is either absent or prompts on every run. Not suited to profiles holding data worth protecting.

Trait implementations