mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
chore(deploy): add rescan and scan-wait keys to the example configs
The Helm chart and the Kubernetes configmap listed only rescan_interval. They now also set rescan_active_window, rescan_concurrency, rescan_on_access and scan_wait_timeout. The values match the effective code defaults, so a deploy behaves as before.
This commit is contained in:
@@ -32,6 +32,10 @@ data:
|
|||||||
severity_threshold: medium
|
severity_threshold: medium
|
||||||
block_on_vulnerability: false
|
block_on_vulnerability: false
|
||||||
rescan_interval: 24h
|
rescan_interval: 24h
|
||||||
|
rescan_active_window: 0s
|
||||||
|
rescan_concurrency: 1
|
||||||
|
rescan_on_access: false
|
||||||
|
scan_wait_timeout: 30s
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
npm:
|
npm:
|
||||||
|
|||||||
@@ -89,6 +89,10 @@ data:
|
|||||||
block_on_severity: {{ .Values.security.blockOnSeverity | quote }}
|
block_on_severity: {{ .Values.security.blockOnSeverity | quote }}
|
||||||
scan_on_download: {{ .Values.security.scanOnDownload }}
|
scan_on_download: {{ .Values.security.scanOnDownload }}
|
||||||
rescan_interval: {{ .Values.security.rescanInterval | quote }}
|
rescan_interval: {{ .Values.security.rescanInterval | quote }}
|
||||||
|
rescan_active_window: {{ .Values.security.rescanActiveWindow | quote }}
|
||||||
|
rescan_concurrency: {{ .Values.security.rescanConcurrency }}
|
||||||
|
rescan_on_access: {{ .Values.security.rescanOnAccess }}
|
||||||
|
scan_wait_timeout: {{ .Values.security.scanWaitTimeout | quote }}
|
||||||
update_db_on_startup: {{ .Values.security.updateDbOnStartup }}
|
update_db_on_startup: {{ .Values.security.updateDbOnStartup }}
|
||||||
block_thresholds:
|
block_thresholds:
|
||||||
critical: {{ .Values.security.blockThresholds.critical }}
|
critical: {{ .Values.security.blockThresholds.critical }}
|
||||||
|
|||||||
@@ -395,6 +395,10 @@ security:
|
|||||||
blockOnSeverity: "high" # none, low, medium, high, critical
|
blockOnSeverity: "high" # none, low, medium, high, critical
|
||||||
scanOnDownload: true
|
scanOnDownload: true
|
||||||
rescanInterval: "24h"
|
rescanInterval: "24h"
|
||||||
|
rescanActiveWindow: "0s" # rescan only packages requested within this window; 0 = all
|
||||||
|
rescanConcurrency: 1 # scans run in parallel per rescan cycle
|
||||||
|
rescanOnAccess: false # rescan a stale cache hit before serving it
|
||||||
|
scanWaitTimeout: "30s" # how long a first download waits for its scan
|
||||||
updateDbOnStartup: false
|
updateDbOnStartup: false
|
||||||
|
|
||||||
blockThresholds:
|
blockThresholds:
|
||||||
|
|||||||
Reference in New Issue
Block a user