pub struct SecretProvidersSection {
pub pass: SecretProviderPass,
pub op: SecretProviderOp,
pub bw: SecretProviderBw,
pub sops: SecretProviderSops,
pub keychain: SecretProviderKeychain,
pub secret_tool: SecretProviderSecretTool,
}Expand description
Per-provider configuration. Each block has an enabled flag plus
any provider-specific knobs (e.g. pass.store_dir). Providers
disabled here are not registered in the runtime
SecretRegistry; references to their schemes raise
“no provider for scheme” at resolution time.
Fields§
§pass: SecretProviderPass§op: SecretProviderOp§bw: SecretProviderBw§sops: SecretProviderSops§keychain: SecretProviderKeychain§secret_tool: SecretProviderSecretToolNote the TOML key here is secret_tool (underscore), even
though the scheme prefix in secret(...) references is
secret-tool: (hyphen, matching the binary name). The
reason: confique’s Config derive (re-exported from
clapfig as Config) maps each TOML key 1:1 to a Rust
struct field name, and Rust identifiers can’t contain
hyphens — pub secret-tool: ... won’t compile. TOML
itself accepts bare hyphenated keys; it’s the Rust-side
field-name constraint that forces the underscore form.
User-facing error messages translate via
crate::secret::registry::scheme_to_config_key so a
“no provider for scheme secret-tool” hint suggests the
correct [secret.providers.secret_tool] block.
Trait Implementations§
Source§impl Clone for SecretProvidersSection
impl Clone for SecretProvidersSection
Source§fn clone(&self) -> SecretProvidersSection
fn clone(&self) -> SecretProvidersSection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Config for SecretProvidersSection
impl Config for SecretProvidersSection
Source§type Layer = SecretProvidersSectionLayer
type Layer = SecretProvidersSectionLayer
Self (a potentially partial configuration). Read moreSource§fn from_layer(layer: Self::Layer) -> Result<Self, Error>
fn from_layer(layer: Self::Layer) -> Result<Self, Error>
Self from a layer and validates itself. Read moreSource§fn builder() -> Builder<Self>
fn builder() -> Builder<Self>
#[default = ...]) are merged
(with the lowest priority). Read more