pub struct SystemAllowlist { /* private fields */ }Expand description
Curated, system-wide outbound allowlist.
Matching reuses NetworkAccessList semantics: the flattened set of group
patterns forms a single non-empty allowed list, so only URLs matching at
least one pattern are permitted.
Implementations§
Source§impl SystemAllowlist
impl SystemAllowlist
Sourcepub fn from_toml(source: &str) -> Result<Self, Error>
pub fn from_toml(source: &str) -> Result<Self, Error>
Parse a TOML document into a SystemAllowlist.
Sourcepub fn embedded() -> Arc<SystemAllowlist> ⓘ
pub fn embedded() -> Arc<SystemAllowlist> ⓘ
The curated allowlist embedded in the binary (parsed once and cached).
Sourcepub fn from_env() -> Option<Arc<SystemAllowlist>>
pub fn from_env() -> Option<Arc<SystemAllowlist>>
Resolve the active allowlist from the environment.
Returns Some(embedded) when EVERRUNS_SYSTEM_ALLOWLIST_ENABLED is
true or 1, otherwise None (no global enforcement).
Sourcepub fn groups(&self) -> &[AllowGroup]
pub fn groups(&self) -> &[AllowGroup]
Categories in the allowlist.
Sourcepub fn is_url_allowed(&self, url: &str) -> bool
pub fn is_url_allowed(&self, url: &str) -> bool
Whether the given URL matches any allowed pattern in any group.
Trait Implementations§
Source§impl Clone for SystemAllowlist
impl Clone for SystemAllowlist
Source§fn clone(&self) -> SystemAllowlist
fn clone(&self) -> SystemAllowlist
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 moreAuto Trait Implementations§
impl Freeze for SystemAllowlist
impl RefUnwindSafe for SystemAllowlist
impl Send for SystemAllowlist
impl Sync for SystemAllowlist
impl Unpin for SystemAllowlist
impl UnsafeUnpin for SystemAllowlist
impl UnwindSafe for SystemAllowlist
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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