pub struct ContainerScanConfig {
pub docker_socket: String,
pub max_image_size: u64,
pub scan_layers: bool,
pub check_dockerfile: bool,
pub check_secrets: bool,
pub check_packages: bool,
pub dangerous_base_images: Vec<String>,
pub suspicious_packages: Vec<String>,
pub secret_patterns: Vec<String>,
}Expand description
Configuration for the container scanner.
Fields§
§docker_socket: StringDocker socket path.
max_image_size: u64Maximum image size to scan (bytes).
scan_layers: boolScan image layers for malware signatures.
check_dockerfile: boolCheck for dangerous Dockerfile patterns.
check_secrets: boolCheck for hardcoded secrets in env vars and config.
check_packages: boolCheck for suspicious installed packages.
dangerous_base_images: Vec<String>Known-dangerous base images.
suspicious_packages: Vec<String>Suspicious packages that shouldn’t be in production images.
secret_patterns: Vec<String>Secret patterns to detect in environment variables.
Trait Implementations§
Source§impl Clone for ContainerScanConfig
impl Clone for ContainerScanConfig
Source§fn clone(&self) -> ContainerScanConfig
fn clone(&self) -> ContainerScanConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ContainerScanConfig
impl Debug for ContainerScanConfig
Source§impl Default for ContainerScanConfig
impl Default for ContainerScanConfig
Source§impl<'de> Deserialize<'de> for ContainerScanConfig
impl<'de> Deserialize<'de> for ContainerScanConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContainerScanConfig
impl RefUnwindSafe for ContainerScanConfig
impl Send for ContainerScanConfig
impl Sync for ContainerScanConfig
impl Unpin for ContainerScanConfig
impl UnsafeUnpin for ContainerScanConfig
impl UnwindSafe for ContainerScanConfig
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