pub struct AuthConfig {
pub enabled: bool,
pub session_ttl_secs: u64,
pub require_auth: bool,
pub auto_encrypt_storage: bool,
pub vault_enabled: bool,
pub cert: CertAuthConfig,
pub oauth: OAuthConfig,
}Expand description
Configuration knobs for the auth subsystem.
Fields§
§enabled: boolMaster switch – when false auth is completely bypassed.
session_ttl_secs: u64Session time-to-live in seconds (default 3600 = 1 h).
require_auth: boolWhen true, unauthenticated requests are rejected even for reads.
auto_encrypt_storage: boolWhen true, storage files are encrypted when auth is active.
vault_enabled: boolWhen true, auth state (users, api keys, bootstrap flag) is persisted
to reserved vault pages inside the main .rdb database file using
AES-256-GCM encryption. The encryption key is read from
REDDB_VAULT_KEY env var or a passphrase.
cert: CertAuthConfigOptional mTLS client-certificate auth policy (Phase 3.4 PG parity). Disabled by default; TLS listeners opt-in per config.
oauth: OAuthConfigOptional OAuth/OIDC Bearer-token validator (Phase 3.4 PG parity). Disabled by default.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§fn clone(&self) -> AuthConfig
fn clone(&self) -> AuthConfig
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 AuthConfig
impl Debug for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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