pub struct BitwardenConfig {
pub program: String,
pub server: Option<String>,
pub allow_http: bool,
pub data_dir: Option<PathBuf>,
pub session: Option<Secret<String>>,
pub password: Option<Secret<String>>,
pub client_id: Option<String>,
pub client_secret: Option<Secret<String>>,
pub timeout_secs: u64,
}Expand description
One instance’s settings, from [secret_provider.<name>].
A credential is a secret reference the Station reads when it builds the instance; the provider holds the value in memory only.
Fields§
§program: StringThe bw program, found on the PATH when not a path. Default bw.
server: Option<String>The server, such as a Vaultwarden’s address; https. The CLI’s own choice (Bitwarden’s
cloud, or what it was last pointed at) when unset.
allow_http: boolAccept an http server address. Reported as a weakening: the vault is encrypted, but
the API key and the master password’s proof cross in the clear. Default off.
data_dir: Option<PathBuf>The directory the CLI keeps its state in (BITWARDENCLI_APPDATA_DIR). Set a directory of
its own, so this provider never logs out or locks a CLI a person uses; the CLI’s own
directory when unset.
session: Option<Secret<String>>A session key of an unlocked vault (bw unlock --raw), a secret reference. Set this or
password.
password: Option<Secret<String>>The master password the provider unlocks the vault with, a secret reference. Set this or
session.
client_id: Option<String>The API key’s client_id (user.<uuid>), to log the CLI in when it is not. Needs
client_secret.
client_secret: Option<Secret<String>>The API key’s client_secret, a secret reference. Needs client_id.
timeout_secs: u64Seconds one call to bw may take; a call past it is stopped. Default 60.
Trait Implementations§
Source§impl Clone for BitwardenConfig
impl Clone for BitwardenConfig
Source§impl Debug for BitwardenConfig
impl Debug for BitwardenConfig
Source§impl Default for BitwardenConfig
impl Default for BitwardenConfig
Source§impl FromValue for BitwardenConfig
impl FromValue for BitwardenConfig
Source§const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.