From 30ebfaae3e305620f81a263e8335be3d39a1e48f Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Tue, 24 Nov 2026 00:20:01 +0000 Subject: [PATCH] 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. --- deployments/kubernetes/configmap-config.yaml | 4 ++++ helm/gohoarder/templates/configmap.yaml | 4 ++++ helm/gohoarder/values.yaml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/deployments/kubernetes/configmap-config.yaml b/deployments/kubernetes/configmap-config.yaml index d349f70..5b0abf3 100644 --- a/deployments/kubernetes/configmap-config.yaml +++ b/deployments/kubernetes/configmap-config.yaml @@ -32,6 +32,10 @@ data: severity_threshold: medium block_on_vulnerability: false rescan_interval: 24h + rescan_active_window: 0s + rescan_concurrency: 1 + rescan_on_access: false + scan_wait_timeout: 30s handlers: npm: diff --git a/helm/gohoarder/templates/configmap.yaml b/helm/gohoarder/templates/configmap.yaml index e02d62e..9d13900 100644 --- a/helm/gohoarder/templates/configmap.yaml +++ b/helm/gohoarder/templates/configmap.yaml @@ -89,6 +89,10 @@ data: block_on_severity: {{ .Values.security.blockOnSeverity | quote }} scan_on_download: {{ .Values.security.scanOnDownload }} 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 }} block_thresholds: critical: {{ .Values.security.blockThresholds.critical }} diff --git a/helm/gohoarder/values.yaml b/helm/gohoarder/values.yaml index 170ab29..c5d98b3 100644 --- a/helm/gohoarder/values.yaml +++ b/helm/gohoarder/values.yaml @@ -395,6 +395,10 @@ security: blockOnSeverity: "high" # none, low, medium, high, critical scanOnDownload: true 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 blockThresholds: