pub enum ChecksumPolicy {
Lenient,
WarnOnMissing,
Required,
}Expand description
Verification policy applied to external rule pack bodies during
load_rules_file. The default — ChecksumPolicy::WarnOnMissing —
emits a tracing::warn! when a pack ships without a <path>.sha256
sidecar but does not block the load. Operators running production
scans against untrusted rule directories should flip to
ChecksumPolicy::Required to enforce integrity verification at the
boundary.
Variants§
Lenient
Skip integrity verification entirely; do not warn on missing sidecars. Use only for built-in / embedded packs that the binary itself ships.
WarnOnMissing
Verify the sidecar when present; emit tracing::warn! when absent.
Default for runtime overlays so operators can incrementally adopt
signed packs without breaking existing deployments.
Required
Verify the sidecar when present; reject the pack if the sidecar is missing. Recommended for production scans against rule directories that any user can write to.
Trait Implementations§
Source§impl Clone for ChecksumPolicy
impl Clone for ChecksumPolicy
Source§fn clone(&self) -> ChecksumPolicy
fn clone(&self) -> ChecksumPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChecksumPolicy
impl Debug for ChecksumPolicy
Source§impl PartialEq for ChecksumPolicy
impl PartialEq for ChecksumPolicy
Source§fn eq(&self, other: &ChecksumPolicy) -> bool
fn eq(&self, other: &ChecksumPolicy) -> bool
self and other values to be equal, and is used by ==.impl Copy for ChecksumPolicy
impl Eq for ChecksumPolicy
impl StructuralPartialEq for ChecksumPolicy
Auto Trait Implementations§
impl Freeze for ChecksumPolicy
impl RefUnwindSafe for ChecksumPolicy
impl Send for ChecksumPolicy
impl Sync for ChecksumPolicy
impl Unpin for ChecksumPolicy
impl UnsafeUnpin for ChecksumPolicy
impl UnwindSafe for ChecksumPolicy
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
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§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
key and return true if they are equal.