Skip to content

Commit 484ddd8

Browse files
authored
feat(helm): add support for trivy dbRepository (#2345)
Signed-off-by: Erik Godding Boye <[email protected]>
1 parent 6ce9404 commit 484ddd8

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

helm/trivy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: trivy
3-
version: 0.4.14
3+
version: 0.4.15
44
appVersion: 0.27.0
55
description: Trivy helm chart
66
keywords:

helm/trivy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ The following table lists the configurable parameters of the Trivy chart and the
6969
| `trivy.registryCredentialsExistingSecret` | Name of Secret containing dockerhub credentials. Alternative to the 2 parameters above, has precedence if set. | |
7070
| `trivy.serviceAccount.annotations` | Additional annotations to add to the Kubernetes service account resource | |
7171
| `trivy.skipUpdate` | The flag to enable or disable Trivy DB downloads from GitHub | `false` |
72+
| `trivy.dbRepository` | OCI repository to retrieve the trivy vulnerability database from | `ghcr.io/aquasecurity/trivy-db` |
7273
| `trivy.cache.redis.enabled` | Enable Redis as caching backend | `false` |
7374
| `trivy.cache.redis.url` | Specify redis connection url, e.g. redis://redis.redis.svc:6379 | `` |
7475
| `trivy.serverToken` | The token to authenticate Trivy client with Trivy server | `` |

helm/trivy/templates/configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ data:
1212
{{- end }}
1313
TRIVY_DEBUG: {{ .Values.trivy.debugMode | quote }}
1414
TRIVY_SKIP_UPDATE: {{ .Values.trivy.skipUpdate | quote }}
15+
TRIVY_DB_REPOSITORY: {{ .Values.trivy.dbRepository | quote }}
1516
{{- if .Values.httpProxy }}
1617
HTTP_PROXY: {{ .Values.httpProxy | quote }}
1718
{{- end }}

helm/trivy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ trivy:
9999
# If the flag is enabled you have to manually download the `trivy.db` file and mount it in the
100100
# `/home/scanner/.cache/trivy/db/trivy.db` path (see `cacheDir`).
101101
skipUpdate: false
102+
# OCI repository to retrieve the trivy vulnerability database from
103+
dbRepository: ghcr.io/aquasecurity/trivy-db
102104
# Trivy supports filesystem and redis as caching backend
103105
# https://github.com/aquasecurity/trivy#specify-cache-backend
104106
# This location is only used for the cache, not the db storage: https://github.com/aquasecurity/trivy/issues/765#issue-756010345

0 commit comments

Comments
 (0)