pub struct VaultSettings {
pub address: String,
pub mount_path: String,
pub kv_secret_path_prefix: Option<String>,
pub jwt_role: Option<String>,
pub jwt_mount_path: Option<String>,
pub namespace: Option<String>,
pub token: Option<String>,
pub skip_ssl_verify: Option<bool>,
}Fields§
§address: StringHashiCorp Vault server address (e.g., https://vault.company.com:8200)
mount_path: StringKV v2 secrets engine mount path (e.g., windmill)
kv_secret_path_prefix: Option<String>Optional path prefix inserted between the KV data/metadata segment and the workspace id (e.g., "apps/windmill"). When set, secrets are stored at <mount>/data/<prefix>/<workspace>/<secret>, allowing a Vault policy scoped to exactly <mount>/data/<prefix>/_*.
jwt_role: Option<String>Vault JWT auth role name for Windmill (optional, if not provided token auth is used)
jwt_mount_path: Option<String>Mount path for the JWT auth method in Vault (optional, defaults to "jwt"). Set this when the JWT auth method is mounted at a non-default path, e.g. via vault auth enable -path=<mount> jwt.
namespace: Option<String>Vault Enterprise namespace (optional)
token: Option<String>Static Vault token for testing/development (optional, if provided this is used instead of JWT authentication)
skip_ssl_verify: Option<bool>Skip TLS certificate verification when connecting to Vault. Only use for self-signed certificates in development environments.
Implementations§
Source§impl VaultSettings
impl VaultSettings
pub fn new(address: String, mount_path: String) -> VaultSettings
Trait Implementations§
Source§impl Clone for VaultSettings
impl Clone for VaultSettings
Source§fn clone(&self) -> VaultSettings
fn clone(&self) -> VaultSettings
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 VaultSettings
impl Debug for VaultSettings
Source§impl Default for VaultSettings
impl Default for VaultSettings
Source§fn default() -> VaultSettings
fn default() -> VaultSettings
Source§impl<'de> Deserialize<'de> for VaultSettings
impl<'de> Deserialize<'de> for VaultSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for VaultSettings
impl PartialEq for VaultSettings
Source§fn eq(&self, other: &VaultSettings) -> bool
fn eq(&self, other: &VaultSettings) -> bool
self and other values to be equal, and is used by ==.