From 3ba24e2d39902c1f49f564c8fd90c03a3673d090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20J=C3=A1ky?= Date: Tue, 20 Feb 2024 15:57:24 +0100 Subject: [PATCH] feat: add `cisdocker` to api and orchestrator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: András Jáky --- api/types/families.go | 2 +- orchestrator/watcher/assetscan/families.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/types/families.go b/api/types/families.go index abf66a2a5b..d409c38e85 100644 --- a/api/types/families.go +++ b/api/types/families.go @@ -76,7 +76,7 @@ func (c *MisconfigurationsConfig) GetScannersList() []string { return *c.Scanners } - return []string{"lynis"} + return []string{"lynis", "cisdocker"} } func (c *MalwareConfig) IsEnabled() bool { diff --git a/orchestrator/watcher/assetscan/families.go b/orchestrator/watcher/assetscan/families.go index 462be1cac2..f884b20edb 100644 --- a/orchestrator/watcher/assetscan/families.go +++ b/orchestrator/watcher/assetscan/families.go @@ -193,6 +193,10 @@ func withMisconfigurationConfig(config *apitypes.MisconfigurationsConfig, _ *Sca Lynis: misconfiguration.LynisConfig{ BinaryPath: "", }, + CISDocker: misconfiguration.CISDockerConfig{ + Timeout: 0, + Registry: &cliconfig.Registry{}, + }, }, } }