Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase default trivy timeout value #320

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/zora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The following table lists the configurable parameters of the Zora chart and thei
| scan.plugins.trivy.image.pullPolicy | string | `"Always"` | Image pull policy |
| scan.plugins.trivy.env | list | `[]` | List of environment variables to set in trivy container. |
| scan.plugins.trivy.envFrom | list | `[]` | List of sources to populate environment variables in trivy container. |
| scan.plugins.trivy.timeout | string | `"10m"` | Trivy timeout |
| scan.plugins.trivy.timeout | string | `"40m"` | Trivy timeout |
| scan.plugins.trivy.insecure | bool | `false` | Allow insecure server connections for Trivy |
| scan.plugins.trivy.fsGroup | int | `nil` | Trivy fsGroup. Should be greater than 0. |
| scan.plugins.trivy.persistence.enabled | bool | `true` | Specifies whether Trivy vulnerabilities database should be persisted between the scans, using PersistentVolumeClaim |
Expand Down
2 changes: 1 addition & 1 deletion charts/zora/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ scan:
# - secretRef:
# name: trivy-credentials
# -- Trivy timeout
timeout: 10m
timeout: 40m
# -- Allow insecure server connections for Trivy
insecure: false

Expand Down
4 changes: 2 additions & 2 deletions docs/plugins/trivy.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ The `ClusterScan` will have a `Failed` status. You will see a log entry similar
Trivy's scan duration may vary depending on the total images in your cluster
and the time to download the vulnerability database when needed.

By default, Zora sets a timeout of **10 minutes** for Trivy scan completion.
By default, Zora sets a timeout of **40 minutes** for Trivy scan completion.

To adjust this timeout, use the following Helm parameter:

```shell
--set scan.plugins.trivy.timeout=15m
--set scan.plugins.trivy.timeout=60m
```

Once this parameter is updated, the next scan will use the specified value.
Loading