Skip to content

Commit e00ea93

Browse files
committed
#2324 Update the Trivy documentation to include the new URL format for the 'location' attribute
Signed-off-by: Boris Shek <boris.shek@iteratec.com>
1 parent c2e3856 commit e00ea93

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

scanners/trivy/.helm-docs.gotmpl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ One way to avoid that is to [preemptively download](https://aquasecurity.github.
8585
:::
8686

8787
In case only a single scan or very few are run, and you want to avoid the small performance overhead, client/server mode can be disabled by setting `--set="trivyDatabaseCache.enabled=false"` during helm install.
88+
89+
## Parser specifics
90+
Our parser customizes the format of Trivy scan results by using a unique `location` attribute that employs a custom URL format (`scb://trivy/`) with URL parameters. These parameters are extracted from the corresponding scan result file attributes and vary depending on the type of scan performed — either a Kubernetes (K8S) resource scan or a container image scan.
91+
92+
### URL Format Patterns
93+
#### For Kubernetes (K8S) Resource Scans:
94+
`scb://trivy/?ClusterName=<ClusterName>&Namespace=<Namespace>&Kind=<Kind>&Name=<Name>`
95+
96+
##### Parameters:
97+
- ClusterName: The name of the Kubernetes cluster (optional).
98+
- Namespace: The namespace within the cluster (optional).
99+
- Kind: The type of Kubernetes resource (e.g., Deployment, Service, Pod).
100+
- Name: The name of the resource.
101+
102+
#### For Container Image Scans:
103+
`scb://trivy/?ArtifactName=<ArtifactName>`
104+
105+
##### Parameter:
106+
- ArtifactName: The name (and optionally the tag) of the container image.
88107
{{- end }}
89108

90109
{{- define "extra.chartConfigurationSection" -}}

0 commit comments

Comments
 (0)