Commit c74fb208 authored by Nick Gaskill's avatar Nick Gaskill

Merge branch 'bwill/cluster-image-scanning-location' into 'master'

Document new location fields for Cluster Image Scanning reports

See merge request gitlab-org/gitlab!70731
parents 013616d4 4532b2a0
...@@ -534,15 +534,24 @@ affecting version `2.50.3-2+deb9u1` of Debian package `glib2.0`: ...@@ -534,15 +534,24 @@ affecting version `2.50.3-2+deb9u1` of Debian package `glib2.0`:
}, },
"version": "2.50.3-2+deb9u1", "version": "2.50.3-2+deb9u1",
"operating_system": "debian:9", "operating_system": "debian:9",
"image": "index.docker.io/library/nginx:1.18" "image": "index.docker.io/library/nginx:1.18",
"kubernetes_resource": {
"namespace": "production",
"kind": "Deployment",
"name": "nginx-ingress",
"container": "nginx",
"agent_id": "1"
}
} }
``` ```
The affected package is found when scanning the image of the pod `index.docker.io/library/nginx:1.18`. The affected package is found when scanning a deployment using the `index.docker.io/library/nginx:1.18` image.
The location fingerprint of a Cluster Image Scanning vulnerability combines the The location fingerprint of a Cluster Image Scanning vulnerability combines the
`operating_system` and the package `name`, so these attributes are mandatory. The `image` is also `namespace`, `kind`, `name`, and `container` fields from the `kubernetes_resource`,
mandatory. All other attributes are optional. as well as the package `name`, so these fields are required. The `image` field is also mandatory.
The `cluster_id` and `agent_id` are mutually exclusive, and one of them must be present.
All other fields are optional.
#### SAST #### SAST
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment