Skip to main content

SecretsConfig

Struct SecretsConfig 

Source
pub struct SecretsConfig {
Show 27 fields 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 plaintext_mode: bool, pub plaintext: Option<PlaintextSecrets>, pub plaintext_bootstrap_seed: Option<String>,
}

Fields§

§aws_secret_name: Option<String>§aws_region: Option<String>§gcp_project: Option<String>§gcp_secret_name: Option<String>§azure_vault_url: Option<String>

Azure Key Vault DNS URL (e.g. https://my-vault.vault.azure.net/). Required when azure_secret_name is set.

§azure_secret_name: Option<String>

Azure Key Vault secret name. Used by azure-secrets backend.

§keyring_service: String§vault_addr: Option<String>

HashiCorp Vault server URL (vault-secrets feature). Setting this activates the Vault backend.

§vault_kv_mount: String

KV v2 mount path (vault-secrets feature). Default secret.

§vault_secret_path: Option<String>

KV v2 secret path under the mount, e.g. webvh/server-secrets (vault-secrets feature). Required when vault_addr is set.

§vault_secret_key: String

Field name within the KV v2 secret that holds the JSON secrets envelope (vault-secrets feature). Default seed.

§vault_namespace: Option<String>

Vault Enterprise namespace, if any (vault-secrets feature).

§vault_auth_method: String

Auth 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: String

Kubernetes auth mount path (vault-secrets feature). Default kubernetes.

§vault_k8s_jwt_path: String

File 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: String

AppRole mount path (vault-secrets feature). Default approle.

§vault_skip_verify: bool

Skip TLS certificate verification — dev/test only (vault-secrets feature).

§k8s_secret_name: Option<String>

Kubernetes Secret name holding the JSON secrets envelope (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: String

Key within the Secret’s data map that holds the JSON secrets envelope (k8s-secrets feature). Default seed.

§plaintext_mode: bool

Explicitly select the plaintext backend even when a keyring backend is compiled in. Without this, a keyring-enabled build always prefers the OS keyring, which panics on a headless host with no Secret Service. The non-interactive recipe sets this for backend = "plaintext"; cloud backends (AWS/GCP/Azure), when configured, still take precedence.

§plaintext: Option<PlaintextSecrets>

Plaintext secrets stored directly in the config file. Used when no secure backend (keyring, AWS, GCP) is compiled in, or when plaintext_mode explicitly selects it.

§plaintext_bootstrap_seed: Option<String>

Plaintext-mode-only stash for the offline-bootstrap ephemeral seed (base64url-no-pad, 32 raw bytes). Set during phase 1 of the offline wizard when no secure backend is available, and removed at the end of phase 2. Never populated when a secure backend (keyring, AWS, GCP) is active.

Trait Implementations§

Source§

impl Clone for SecretsConfig

Source§

fn clone(&self) -> SecretsConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SecretsConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for SecretsConfig

Source§

fn default() -> SecretsConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SecretsConfig

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<SecretsConfig, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SecretsConfig

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more