pub struct Catalogue { /* private fields */ }Expand description
The parsed catalogue: an ordered list of sink matchers plus untrusted-source matchers. Order is preserved from the TOML so the detector can break on the first match deterministically.
Implementations§
Source§impl Catalogue
impl Catalogue
Sourcepub fn matching_source_for_deps_with_receivers(
&self,
source_path: &str,
declared_deps: &FxHashSet<String>,
request_receivers: &FxHashSet<String>,
) -> Option<(&str, &str)>
pub fn matching_source_for_deps_with_receivers( &self, source_path: &str, declared_deps: &FxHashSet<String>, request_receivers: &FxHashSet<String>, ) -> Option<(&str, &str)>
The id + human title of the first untrusted-source matcher whose pattern, optional framework enabler, and configured request-receiver extension match the given source path.
Sourcepub fn is_secret_source(&self, id: &str) -> bool
pub fn is_secret_source(&self, id: &str) -> bool
Whether the catalogue source id names a deployment secret
(process-env, import-meta-env) instead of attacker-controlled input.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Catalogue
impl Freeze for Catalogue
impl Move for Catalogue
impl RefUnwindSafe for Catalogue
impl Send for Cataloguewhere
RawVecInner: Send,
impl Sync for Cataloguewhere
RawVecInner: Sync,
impl Unpin for Catalogue
impl UnsafeUnpin for Cataloguewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Matcher>: UnsafeUnpin,
PhantomData<SourceMatcher>: UnsafeUnpin,
impl UnwindSafe for Cataloguewhere
RawVecInner: UnwindSafe,
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