pub struct CaptureFnSecurity {
pub security_definer: bool,
pub search_path: Option<String>,
}Expand description
Security posture of core.fn_entity_change_log_capture() for the
fraiseql doctor capture-function check (#443 / #437 F6).
The external-write capture function must be SECURITY DEFINER (so it runs as
the table owner, exempt under change-log RLS) with a pinned search_path (a
DEFINER function with a mutable search_path is a privilege-escalation vector).
Fields§
§security_definer: boolWhether the function is SECURITY DEFINER (pg_proc.prosecdef).
search_path: Option<String>The pinned search_path value from pg_proc.proconfig (the text after
search_path=), or None when no search_path is pinned.
Trait Implementations§
Source§impl Clone for CaptureFnSecurity
impl Clone for CaptureFnSecurity
Source§fn clone(&self) -> CaptureFnSecurity
fn clone(&self) -> CaptureFnSecurity
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 CaptureFnSecurity
impl Debug for CaptureFnSecurity
impl Eq for CaptureFnSecurity
Source§impl PartialEq for CaptureFnSecurity
impl PartialEq for CaptureFnSecurity
Source§fn eq(&self, other: &CaptureFnSecurity) -> bool
fn eq(&self, other: &CaptureFnSecurity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CaptureFnSecurity
Auto Trait Implementations§
impl Freeze for CaptureFnSecurity
impl RefUnwindSafe for CaptureFnSecurity
impl Send for CaptureFnSecurity
impl Sync for CaptureFnSecurity
impl Unpin for CaptureFnSecurity
impl UnsafeUnpin for CaptureFnSecurity
impl UnwindSafe for CaptureFnSecurity
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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