pub struct HsmConfig {
pub hsm_model: String,
pub hsm_admin: Vec<String>,
pub hsm_slot: Vec<usize>,
pub hsm_password: Vec<String>,
}Fields§
§hsm_model: StringThe HSM model.
Trustway Proteccio, Trustway Crypt2pay, Utimaco General Purpose HSM,
Smartcard HSM, and SoftHSM2 are natively supported.
Other HSMs are supported too; specify other and check the documentation
hsm_admin: Vec<String>List of KMS usernames that are granted HSM admin privileges.
HSM admins can create, destroy, and potentially export objects on the HSM.
Use "*" as the only entry to grant all authenticated users admin access.
Repeat the option or use a comma-separated list to specify multiple admins:
--hsm-admin alice@example.com --hsm-admin bob@example.com
or set KMS_HSM_ADMIN=alice@example.com,bob@example.com
hsm_slot: Vec<usize>HSM slot number. The slots used must be listed. Repeat this option to specify multiple slots while specifying a password for each slot (or an empty string for no password) e.g.
--hsm-slot 1 --hsm-password password1 \
--hsm-slot 2 --hsm-password password2hsm_password: Vec<String>Password for the user logging in to the HSM Slot specified with --hsm_slot
Provide an empty string for no password
see --hsm_slot for more information.
Set KMS_HSM_PASSWORD to avoid the password appearing in ps output.
Implementations§
Trait Implementations§
Source§impl Args for HsmConfig
impl Args for HsmConfig
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<'de> Deserialize<'de> for HsmConfig
impl<'de> Deserialize<'de> for HsmConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HsmConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HsmConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl FromArgMatches for HsmConfig
impl FromArgMatches for HsmConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<HsmConfig, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<HsmConfig, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<HsmConfig, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<HsmConfig, 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.Source§impl Serialize for HsmConfig
impl Serialize for HsmConfig
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 HsmConfig
impl RefUnwindSafe for HsmConfig
impl Send for HsmConfig
impl Sync for HsmConfig
impl Unpin for HsmConfig
impl UnsafeUnpin for HsmConfig
impl UnwindSafe for HsmConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request