pub struct SecretsConfig {Show 27 fields
pub backend: Option<SecretBackend>,
pub seed: Option<String>,
pub aws_secret_name: Option<String>,
pub aws_region: Option<String>,
pub gcp_project: Option<String>,
pub gcp_secret_name: Option<String>,
pub azure_vault_url: Option<String>,
pub azure_secret_name: Option<String>,
pub keyring_service: String,
pub vault_addr: Option<String>,
pub vault_kv_mount: String,
pub vault_secret_path: Option<String>,
pub vault_secret_key: String,
pub vault_namespace: Option<String>,
pub vault_auth_method: String,
pub vault_k8s_role: Option<String>,
pub vault_k8s_mount: String,
pub vault_k8s_jwt_path: String,
pub vault_token: Option<String>,
pub vault_approle_role_id: Option<String>,
pub vault_approle_secret_id: Option<String>,
pub vault_approle_mount: String,
pub vault_skip_verify: bool,
pub k8s_secret_name: Option<String>,
pub k8s_namespace: Option<String>,
pub k8s_secret_key: String,
pub allow_plaintext: bool,
}Fields§
§backend: Option<SecretBackend>Explicit backend selector. When set it wins outright:
create_seed_store builds exactly this
backend and validates its required fields, rather than inferring the
backend from whichever selector field happens to be populated.
Omit to keep the legacy implicit priority chain. Setting it is the
only way to reach a backend that sits below a compiled-in one in
that chain — plaintext in particular is unreachable implicitly on
any build with keyring compiled in (the default), because the
keyring arm matches unconditionally.
seed: Option<String>Hex-encoded BIP-32 seed (config-seed feature)
aws_secret_name: Option<String>AWS Secrets Manager secret name (aws-secrets feature)
aws_region: Option<String>AWS region override (aws-secrets feature)
gcp_project: Option<String>GCP project ID (gcp-secrets feature)
gcp_secret_name: Option<String>GCP secret name (gcp-secrets feature)
azure_vault_url: Option<String>Azure Key Vault URL (azure-secrets feature)
azure_secret_name: Option<String>Azure Key Vault secret name (azure-secrets feature)
keyring_service: StringOS keyring service name (keyring feature). Change this to run multiple VTA instances on the same machine.
vault_addr: Option<String>HashiCorp Vault server URL (vault-secrets feature). Setting this activates the Vault backend.
vault_kv_mount: StringKV v2 mount path (vault-secrets feature). Default secret.
vault_secret_path: Option<String>KV v2 secret path under the mount, e.g. vta/master-seed
(vault-secrets feature).
vault_secret_key: StringField name within the KV v2 secret that holds the hex-encoded
seed (vault-secrets feature). Default seed.
vault_namespace: Option<String>Vault Enterprise namespace, if any (vault-secrets feature).
vault_auth_method: StringAuth method: kubernetes (default), token, or approle
(vault-secrets feature).
vault_k8s_role: Option<String>Kubernetes auth role name (vault-secrets feature, kubernetes auth method).
vault_k8s_mount: StringKubernetes auth mount path (vault-secrets feature). Default
kubernetes.
vault_k8s_jwt_path: StringFile holding the ServiceAccount JWT presented to Vault (vault-secrets feature, kubernetes auth method). Default is the kubelet-mounted projected volume path.
vault_token: Option<String>Static token (vault-secrets feature, token auth method). Prefer
the VAULT_TOKEN env var over hard-coding here.
vault_approle_role_id: Option<String>AppRole role_id (vault-secrets feature, approle auth method).
vault_approle_secret_id: Option<String>AppRole secret_id (vault-secrets feature, approle auth method).
vault_approle_mount: StringAppRole mount path (vault-secrets feature). Default approle.
vault_skip_verify: boolSkip TLS certificate verification — dev/test only (vault-secrets feature).
k8s_secret_name: Option<String>Kubernetes Secret name holding the hex-encoded seed
(k8s-secrets feature). Setting this activates the Kubernetes
backend.
k8s_namespace: Option<String>Kubernetes namespace the Secret lives in (k8s-secrets feature).
When unset, the in-cluster ServiceAccount namespace (or the
kubeconfig context namespace) is used, falling back to default.
k8s_secret_key: StringKey within the Secret’s data map that holds the hex-encoded
seed (k8s-secrets feature). Default seed.
allow_plaintext: boolOpt in to the plaintext file seed-store fallback. Off by
default: when no secure backend (keyring / cloud / Vault /
config-seed) is compiled-in and configured, create_seed_store
errors rather than silently writing the BIP-32 master seed to a
file in clear. Set true only for dev/test where that is
acceptable. (P0.9 — closes the “one wrong TOML key → master seed
on disk in cleartext” footgun.)
Trait Implementations§
Source§impl Clone for SecretsConfig
impl Clone for SecretsConfig
Source§fn clone(&self) -> SecretsConfig
fn clone(&self) -> SecretsConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretsConfig
impl Debug for SecretsConfig
Source§impl Default for SecretsConfig
impl Default for SecretsConfig
Source§fn default() -> SecretsConfig
fn default() -> SecretsConfig
Source§impl<'de> Deserialize<'de> for SecretsConfig
impl<'de> Deserialize<'de> for SecretsConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecretsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SecretsConfig
impl Serialize for SecretsConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SecretsConfig
impl RefUnwindSafe for SecretsConfig
impl Send for SecretsConfig
impl Sync for SecretsConfig
impl Unpin for SecretsConfig
impl UnsafeUnpin for SecretsConfig
impl UnwindSafe for SecretsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.