Skip to main content

ApproleOptions

Struct ApproleOptions 

Source
pub struct ApproleOptions {
Show 14 fields pub bind_secret_id: Option<bool>, pub secret_id_bound_cidrs: Option<Vec<String>>, pub secret_id_num_uses: Option<u64>, pub secret_id_ttl: Option<String>, pub enable_local_secret_ids: Option<bool>, pub token_ttl: Option<u64>, pub token_max_ttl: Option<u64>, pub token_policies: Option<Vec<String>>, pub token_bound_cidrs: Option<Vec<String>>, pub token_explicit_max_ttl: Option<u64>, pub token_no_default_policy: Option<bool>, pub token_num_uses: Option<u64>, pub token_period: Option<u64>, pub token_type: Option<String>,
}
Expand description

Struct used for configuring an Approle-Role, contains all the options that are possible to set on said Role

Vault-Documentation

Fields§

§bind_secret_id: Option<bool>

If the secret_id is required to be present when logging in

§secret_id_bound_cidrs: Option<Vec<String>>

Specifies blocks of IP-addresses that can use this role

§secret_id_num_uses: Option<u64>

The Number of times a single Secret-ID can be used for login. 0 means unlimited

§secret_id_ttl: Option<String>

The TTL of a Secret-ID

Example-Value: 30m

§enable_local_secret_ids: Option<bool>

If the Secret-IDs generated for this role should be cluster local.

Can’t be changed after the Role has been created

§token_ttl: Option<u64>

The TTL of the generated Tokens in seconds

§token_max_ttl: Option<u64>

The maximum TTL of generated Tokens in seconds

§token_policies: Option<Vec<String>>

The Policies assigned to the generated Tokens

§token_bound_cidrs: Option<Vec<String>>

Specifies blocks of IP-addresses that can authenticate using this role and ties the tokens to these blocks as well

§token_explicit_max_ttl: Option<u64>

Sets an explicit maximum TTL after which every token will expire even if it was renewed before

§token_no_default_policy: Option<bool>

If the default Policy should not be set generated tokens

§token_num_uses: Option<u64>

The maximum Number of uses per generated Token, in it’s lifetime

§token_period: Option<u64>

The Period, if any, of the Tokens

§token_type: Option<String>

The Type of Token that should be generated

Trait Implementations§

Source§

impl Debug for ApproleOptions

Source§

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

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

impl Serialize for ApproleOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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, 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<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