pub enum SecurityStableIdInput {
SinkSpan {
start: u32,
end: u32,
},
SecretSignal(String),
SecretReads(Vec<String>),
}Expand description
The detector facts that name a security finding without its line.
The stable id step reads these facts and the anchor file, and hashes the
result. A finding without these facts gets no stable_finding_id.
Variants§
SinkSpan
The byte span of the full sink expression in the anchor file, after a leading byte order mark. For an assignment sink it is the full assignment. For a call sink it is the full call with all arguments.
Fields
SecretSignal(String)
The detector signal of a hard-coded secret: a provider family such as
Stripe key, or entropy for a high-entropy value. The secret value
itself never enters the hash input.
SecretReads(Vec<String>)
The env secrets that the server module of a client-server leak reads,
such as process.env.DATABASE_PASSWORD, sorted and without duplicates.
Trait Implementations§
Source§impl Clone for SecurityStableIdInput
impl Clone for SecurityStableIdInput
Source§impl Debug for SecurityStableIdInput
impl Debug for SecurityStableIdInput
impl Eq for SecurityStableIdInput
Source§impl PartialEq for SecurityStableIdInput
impl PartialEq for SecurityStableIdInput
impl StructuralPartialEq for SecurityStableIdInput
Auto Trait Implementations§
impl Forget for SecurityStableIdInput
impl Freeze for SecurityStableIdInput
impl Move for SecurityStableIdInput
impl RefUnwindSafe for SecurityStableIdInput
impl Send for SecurityStableIdInput
impl Sync for SecurityStableIdInput
impl Unpin for SecurityStableIdInput
impl UnsafeUnpin for SecurityStableIdInput
impl UnwindSafe for SecurityStableIdInput
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§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.