pub struct AuthzConfig {
pub limits: Limits,
pub mapping: SubjectMapping,
pub consistency: Consistency,
pub fresh_for: BTreeSet<ActionClass>,
pub expand_relations: Vec<String>,
pub catalog_object: ObjectRef,
pub check_cache_capacity: usize,
pub break_glass: Option<BreakGlass>,
pub refresh_interval: Duration,
}Expand description
Tuning for SystemDbAuthorizer.
Fields§
§limits: LimitsSearch bounds for one check.
mapping: SubjectMappingHow a principal’s claims become subjects.
consistency: ConsistencyDefault consistency for a decision.
fresh_for: BTreeSet<ActionClass>Action classes that always re-read the source, whatever consistency
says. Empty by default; setting [Admin] makes control-plane changes
wait for the newest policy while reads stay on the pinned snapshot.
expand_relations: Vec<String>Relations a plain (non-userset) subject object is expanded through, so
group:eng writer database:music grants everyone with member on
group:eng.
catalog_object: ObjectRefThe object catalog-wide actions target.
check_cache_capacity: usizeEntries kept in the check-result cache; 0 disables it.
break_glass: Option<BreakGlass>Operator recovery access when policy cannot be read.
refresh_interval: DurationHow often the refresh task polls when the source has no change signal.
Trait Implementations§
Source§impl Clone for AuthzConfig
impl Clone for AuthzConfig
Source§fn clone(&self) -> AuthzConfig
fn clone(&self) -> AuthzConfig
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 AuthzConfig
impl Debug for AuthzConfig
Auto Trait Implementations§
impl Freeze for AuthzConfig
impl RefUnwindSafe for AuthzConfig
impl Send for AuthzConfig
impl Sync for AuthzConfig
impl Unpin for AuthzConfig
impl UnsafeUnpin for AuthzConfig
impl UnwindSafe for AuthzConfig
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> 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