Skip to content

Commit

Permalink
feat: expose trivy.skipFiles in helm values (aquasecurity#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gropyus authored Nov 8, 2023
1 parent 95a7f1f commit b52065d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Keeps security report resources updated
| trivy.serverUser | string | `""` | serverUser this param is the server user to be used to download db from private registry |
| trivy.severity | string | `"UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"` | severity is a comma separated list of severity levels reported by Trivy. |
| trivy.skipDirs | string | `nil` | a comma separated list of directories for Trivy to skip |
| trivy.skipFiles | string | `nil` | a comma separated list of file paths for Trivy to skip |
| trivy.skipJavaDBUpdate | bool | `false` | skipJavaDBUpdate is the flag to enable skip Java index databases update for Trivy client. |
| trivy.slow | bool | `true` | slow this flag is to use less CPU/memory for scanning though it takes more time than normal scanning. It fits small-footprint |
| trivy.sslCertDir | string | `nil` | sslCertDir can be used to override the system default locations for SSL certificate files directory, example: /ssl/certs |
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/templates/configmaps/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ data:
trivy.dbRepository: "{{ .Values.trivy.dbRegistry }}/{{ .Values.trivy.dbRepository }}"
trivy.javaDbRepository: "{{ .Values.trivy.javaDbRegistry }}/{{ .Values.trivy.javaDbRepository }}"
trivy.command: {{ .Values.trivy.command | quote }}
{{- with .Values.trivy.skipFiles }}
trivy.skipFiles: {{ . | quote }}
{{- end }}
{{- with .Values.trivy.skipDirs }}
trivy.skipDirs: {{ . | quote }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ trivy:
# vulnerabilities reported by Trivy. Set to true to enable it.
#
ignoreUnfixed: false
# -- a comma separated list of file paths for Trivy to skip
skipFiles:
# -- a comma separated list of directories for Trivy to skip
skipDirs:

Expand Down

0 comments on commit b52065d

Please sign in to comment.