pub enum AuthSignerConfig {
Local {
private_key: String,
},
Vault {
address: String,
key: String,
token_env: String,
alg: SignerAlg,
},
AwsKms {
key_id: String,
region: Option<String>,
},
GcpKms {
key_version: String,
access_token_env: String,
},
AzureKv {
vault_url: String,
key: String,
key_version: String,
access_token_env: String,
},
Pkcs11 {
module: String,
token_label: String,
key_label: String,
pin_env: String,
alg: SignerAlg,
},
}Expand description
External token signer selector (serve.signer). Maps to
boatramp_server::signer::SignerConfig; secrets (tokens/PINs) are resolved
from the named env vars at startup, never stored in config. Written as a RON
enum — signer: Vault(...), signer: AwsKms(...), signer: Pkcs11(...), ….
Variants§
Local
In-process key ("<alg>:<hex>").
Vault
HashiCorp Vault Transit key.
Fields
AwsKms
AWS KMS asymmetric key (ES256).
GcpKms
GCP Cloud KMS key version (ES256).
Fields
AzureKv
Azure Key Vault key (ES256).
Fields
Pkcs11
PKCS#11 HSM key.
Implementations§
Source§impl AuthSignerConfig
impl AuthSignerConfig
Sourcepub fn to_signer_config(&self) -> SignerConfig
pub fn to_signer_config(&self) -> SignerConfig
Map the config-file form to the server’s runtime [SignerConfig].
Trait Implementations§
Source§impl Clone for AuthSignerConfig
impl Clone for AuthSignerConfig
Source§fn clone(&self) -> AuthSignerConfig
fn clone(&self) -> AuthSignerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthSignerConfig
impl Debug for AuthSignerConfig
Source§impl<'de> Deserialize<'de> for AuthSignerConfig
impl<'de> Deserialize<'de> for AuthSignerConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthSignerConfig
impl RefUnwindSafe for AuthSignerConfig
impl Send for AuthSignerConfig
impl Sync for AuthSignerConfig
impl Unpin for AuthSignerConfig
impl UnsafeUnpin for AuthSignerConfig
impl UnwindSafe for AuthSignerConfig
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more