pub struct SsArgs {
pub ss_max_lease_duration: Duration,
pub ss_max_secrets: usize,
pub ss_ns: String,
pub ss_role_id: String,
pub ss_server: Url,
pub ss_server_cert_path: Option<PathBuf>,
pub ss_server_insecure: bool,
pub ss_ttl_field: Option<String>,
pub ss_unauthenticated_timeout: Duration,
pub ss_unauthorized_timeout: Duration,
}Fields§
§ss_max_lease_duration: DurationThe maximum time we allow for a lease to expire. This is important to curb situations where the secret store is not honoring a previously advised lease duration for some reason. While this should never happen, given the nature of the secret store being in a separate process, it technically can happen (and has!).
ss_max_secrets: usizeThe max number of Vault Secret Store secrets to retain by our cache at any time. Least Recently Used (LRU) secrets will be evicted from our cache once this value is exceeded.
ss_ns: StringA namespace to use when communicating with the Vault Secret Store
ss_role_id: StringThe Vault Secret Store role_id to use for approle authentication.
ss_server: UrlA URL of the Vault Secret Store server to communicate with
ss_server_cert_path: Option<PathBuf>A path to a TLS cert pem file to be used for connecting with the Vault Secret Store server.
ss_server_insecure: boolInsecurely trust the Secret Store’s TLS certificate
ss_ttl_field: Option<String>A data field to used in place of Vault’s lease_duration field. Time will be interpreted as a humantime string e.g. “1m”, “1s” etc. Note that v2 of the Vault server does not appear to populate the lease_duration field for the KV secret store any longer. Instead, we can use a “ttl” field from the data.
ss_unauthenticated_timeout: DurationHow long we wait until re-requesting the Vault Secret Store server for an authentication given a bad auth prior.
How long we wait until re-requesting the Vault Secret Store server for an unauthorized secret again.
Trait Implementations§
Source§impl Args for SsArgs
impl Args for SsArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for SsArgs
impl CommandFactory for SsArgs
Source§impl FromArgMatches for SsArgs
impl FromArgMatches for SsArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.