You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| config.containerAutoDiscovery.scanConfig.annotations | object |`{}`| annotations to be added to the scans started by the auto-discovery |
139
-
| config.containerAutoDiscovery.scanConfig.labels | object |`{}`| labels to be added to the scans started by the auto-discovery |
140
-
| config.containerAutoDiscovery.scanConfig.parameters | list |`["{{ .ImageID }}"]`| parameters used for the scans created by the containerAutoDiscovery |
138
+
| config.containerAutoDiscovery.scanConfig.annotations | object |`{}`| annotations to be added to the scans started by the auto-discovery, all annotation values support templating|
139
+
| config.containerAutoDiscovery.scanConfig.labels | object |`{}`| labels to be added to the scans started by the auto-discovery, all label values support templating|
140
+
| config.containerAutoDiscovery.scanConfig.parameters | list |`["{{ .ImageID }}"]`| parameters used for the scans created by the containerAutoDiscovery, all parameters support templating|
141
141
| config.containerAutoDiscovery.scanConfig.repeatInterval | string |`"168h"`| interval in which scans are automatically repeated. If the target is updated (meaning a new image revision is deployed) the scan will repeated beforehand and the interval is reset. |
| config.containerAutoDiscovery.scanConfig.volumeMounts | list |`[]`| volumeMounts to add to the scan job, see: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 the fields: `name`, `mountPath`, `subPath`, `subPathExpr` of each volumeMount support templating |
144
+
| config.containerAutoDiscovery.scanConfig.volumes | list |`[]`| volumes to add to the scan job, see: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes the fields: `name`, `secret.secretName`, `configMap.name` of each volume support templating |
| config.serviceAutoDiscovery.passiveReconcileInterval | string |`"1m"`| interval in which every service is re-checked for updated pods, if service object is updated directly this the service will get reconciled immediately |
151
-
| config.serviceAutoDiscovery.scanConfig.annotations | object |`{"defectdojo.securecodebox.io/engagement-name":"{{ .Target.Name }}","defectdojo.securecodebox.io/engagement-version":"{{if (index .Target.Labels `app.kubernetes.io/version`) }}{{ index .Target.Labels `app.kubernetes.io/version` }}{{end}}","defectdojo.securecodebox.io/product-name":"{{ .Cluster.Name }} | {{ .Namespace.Name }} | {{ .Target.Name }}","defectdojo.securecodebox.io/product-tags":"cluster/{{ .Cluster.Name }},namespace/{{ .Namespace.Name }}"}` | annotations to be added to the scans started by the auto-discovery |
152
-
| config.serviceAutoDiscovery.scanConfig.labels | object |`{}`| labels to be added to the scans started by the auto-discovery |
153
-
| config.serviceAutoDiscovery.scanConfig.parameters | list |`["-t","{{ .Host.Type }}://{{ .Service.Name }}.{{ .Service.Namespace }}.svc:{{ .Host.Port }}"]`| parameters used for the scans created by the serviceAutoDiscovery |
153
+
| config.serviceAutoDiscovery.scanConfig.annotations | object |`{"defectdojo.securecodebox.io/engagement-name":"{{ .Target.Name }}","defectdojo.securecodebox.io/engagement-version":"{{if (index .Target.Labels `app.kubernetes.io/version`) }}{{ index .Target.Labels `app.kubernetes.io/version` }}{{end}}","defectdojo.securecodebox.io/product-name":"{{ .Cluster.Name }} | {{ .Namespace.Name }} | {{ .Target.Name }}","defectdojo.securecodebox.io/product-tags":"cluster/{{ .Cluster.Name }},namespace/{{ .Namespace.Name }}"}` | annotations to be added to the scans started by the auto-discovery, all annotation values support templating|
154
+
| config.serviceAutoDiscovery.scanConfig.labels | object |`{}`| labels to be added to the scans started by the auto-discovery, all label values support templating|
155
+
| config.serviceAutoDiscovery.scanConfig.parameters | list |`["-t","{{ .Host.Type }}://{{ .Service.Name }}.{{ .Service.Namespace }}.svc:{{ .Host.Port }}"]`| parameters used for the scans created by the serviceAutoDiscovery, all parameters support templating|
154
156
| config.serviceAutoDiscovery.scanConfig.repeatInterval | string |`"168h"`| interval in which scans are automatically repeated. If the target is updated (meaning a new image revision is deployed) the scan will repeated beforehand and the interval is reset. |
155
157
| config.serviceAutoDiscovery.scanConfig.scanType | string |`"zap-advanced-scan"`| scanType used for the scans created by the serviceAutoDiscovery |
158
+
| config.serviceAutoDiscovery.scanConfig.volumeMounts | list |`[]`| volumeMounts to add to the scan job, see: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 the fields: `name`, `mountPath`, `subPath`, `subPathExpr` of each volumeMount support templating |
159
+
| config.serviceAutoDiscovery.scanConfig.volumes | list |`[]`| volumes to add to the scan job, see: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes the fields: `name`, `secret.secretName`, `configMap.name` of each volume support templating |
156
160
| image.pullPolicy | string |`"IfNotPresent"`| Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images|
// Takes in both autoDiscoveryConfig and scanConfig as this function might be used by other controllers in the future, which can then pass in the their relevant scanConfig into this function
0 commit comments