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 derived from the
certificate supplied by REDDB_CERTIFICATE / REDDB_CERTIFICATE_FILE.
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
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§fn default() -> AuthConfig
fn default() -> AuthConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for AuthConfig
impl Freeze for AuthConfig
impl Move for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfigwhere
RawVecInner: Send,
impl Sync for AuthConfigwhere
RawVecInner: Sync,
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfigwhere
RawVecInner: UnwindSafe,
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
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