pub struct SecurityConfig {Show 13 fields
pub mtls_enabled: bool,
pub cert_path: Option<String>,
pub key_path: Option<String>,
pub ca_cert_path: Option<String>,
pub jwt_enabled: bool,
pub jwks_url: Option<String>,
pub jwt_issuer: Option<String>,
pub jwt_audience: Option<String>,
pub api_key_enabled: bool,
pub rate_limit_default: u64,
pub rate_limit_burst: u64,
pub audit_enabled: bool,
pub audit_flush_threshold: usize,
}Expand description
Security configuration
Fields§
§mtls_enabled: boolEnable mTLS
cert_path: Option<String>Certificate path (watched for hot reload)
key_path: Option<String>Key path
ca_cert_path: Option<String>CA certificate path (for client verification)
jwt_enabled: boolEnable JWT authentication
jwks_url: Option<String>JWKS URL for JWT verification
jwt_issuer: Option<String>Expected JWT issuer
jwt_audience: Option<String>Expected JWT audience
api_key_enabled: boolEnable API key authentication
rate_limit_default: u64Default rate limit (requests per second)
rate_limit_burst: u64Default burst size
audit_enabled: boolEnable audit logging
audit_flush_threshold: usizeAudit log flush threshold
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SecurityConfig
impl Debug for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnsafeUnpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§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>
Wrap the input message
T in a tonic::Request