FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #1264 from secureCodeBox/bugfix/nuclei-cache-fix · secureCodeBox/secureCodeBox@7af3a65 · GitHub

Commit 7af3a65

Browse files
authored
Merge pull request #1264 from secureCodeBox/bugfix/nuclei-cache-fix
Make Nuclei Template Cache PVC `accessMode` configurable
2 parents dae41cd + 1954e91 commit 7af3a65

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎scanners/nuclei/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ helm install nuclei secureCodeBox/nuclei --set="nucleiTemplateCache.enabled=fals
176176
|-----|------|---------|-------------|
177177
| cascadingRules.enabled | bool | `true` | Enables or disables the installation of the default cascading rules for this scanner |
178178
| imagePullSecrets | list | `[]` | Define imagePullSecrets when a private registry is used (see: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) |
179+
| nucleiTemplateCache.accessMode | list | `["ReadWriteOnce","ReadOnlyMany"]` | Depending on your setup you can define the pvc access mode for one `ReadWriteOnce` or multiple node clusters `ReadWriteMany` |
179180
| nucleiTemplateCache.concurrencyPolicy | string | `"Replace"` | Determines how kubernetes handles cases where multiple instances of the cronjob would work if they are running at the same time. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy |
180181
| nucleiTemplateCache.enabled | bool | `true` | Enables or disables the use of an persistent volume to cache the always downloaded nuclei-templates for all scans. |
181182
| nucleiTemplateCache.failedJobsHistoryLimit | int | `10` | Determines how many failed jobs are kept until kubernetes cleans them up. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits |

‎scanners/nuclei/docs/README.ArtifactHub.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ helm install nuclei secureCodeBox/nuclei --set="nucleiTemplateCache.enabled=fals
183183
|-----|------|---------|-------------|
184184
| cascadingRules.enabled | bool | `true` | Enables or disables the installation of the default cascading rules for this scanner |
185185
| imagePullSecrets | list | `[]` | Define imagePullSecrets when a private registry is used (see: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) |
186+
| nucleiTemplateCache.accessMode | list | `["ReadWriteOnce","ReadOnlyMany"]` | Depending on your setup you can define the pvc access mode for one `ReadWriteOnce` or multiple node clusters `ReadWriteMany` |
186187
| nucleiTemplateCache.concurrencyPolicy | string | `"Replace"` | Determines how kubernetes handles cases where multiple instances of the cronjob would work if they are running at the same time. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#concurrency-policy |
187188
| nucleiTemplateCache.enabled | bool | `true` | Enables or disables the use of an persistent volume to cache the always downloaded nuclei-templates for all scans. |
188189
| nucleiTemplateCache.failedJobsHistoryLimit | int | `10` | Determines how many failed jobs are kept until kubernetes cleans them up. See: https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits |

‎scanners/nuclei/templates/nuclei-shared-volumeclaim.yaml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ metadata:
1111
name: nuclei-content-claim
1212
spec:
1313
accessModes:
14-
- ReadWriteOnce
15-
- ReadOnlyMany
14+
{{- toYaml .Values.nucleiTemplateCache.accessMode | nindent 4 }}
1615
resources:
1716
requests:
1817
storage: 1Gi

‎scanners/nuclei/values.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ scanner:
9494
nucleiTemplateCache:
9595
# -- Enables or disables the use of an persistent volume to cache the always downloaded nuclei-templates for all scans.
9696
enabled: true
97+
# -- Depending on your setup you can define the pvc access mode for one `ReadWriteOnce` or multiple node clusters `ReadWriteMany`
98+
accessMode:
99+
- ReadWriteOnce
100+
- ReadOnlyMany
97101
# every day at 08:00: "0 8 * * *"
98102
# every full hour: "0 */1 * * *""
99103
# -- The schedule indicates when and how often the nuclei template cache should be updated

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL