diff --git a/charts/gohoarder/Chart.yaml b/charts/gohoarder/Chart.yaml index 1d47e8b..e3ab040 100644 --- a/charts/gohoarder/Chart.yaml +++ b/charts/gohoarder/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: gohoarder description: A universal package cache proxy supporting npm, PyPI, and Go modules with security scanning type: application -version: 0.1.281 -appVersion: "0.1.281" +version: 0.1.395 +appVersion: "0.1.395" keywords: - package-manager - cache diff --git a/charts/gohoarder/templates/configmap.yaml b/charts/gohoarder/templates/configmap.yaml index fd1e026..9d13900 100644 --- a/charts/gohoarder/templates/configmap.yaml +++ b/charts/gohoarder/templates/configmap.yaml @@ -10,8 +10,10 @@ data: host: {{ .Values.server.host | quote }} port: {{ .Values.server.port }} read_timeout: {{ .Values.server.readTimeout | quote }} + read_buffer_size: {{ .Values.server.readBufferSize }} write_timeout: {{ .Values.server.writeTimeout | quote }} idle_timeout: {{ .Values.server.idleTimeout | quote }} + allowed_origins: {{ .Values.server.allowedOrigins | default list | toJson }} tls: enabled: false @@ -73,6 +75,8 @@ data: cache: default_ttl: {{ .Values.cache.defaultTTL | quote }} cleanup_interval: {{ .Values.cache.cleanupInterval | quote }} + idle_ttl: {{ .Values.cache.idleTTL | quote }} + deleted_retention: {{ .Values.cache.deletedRetention | default "720h" | quote }} max_size_bytes: {{ .Values.cache.maxSizeBytes }} per_project_quota: {{ .Values.cache.perProjectQuota }} ttl_overrides: @@ -85,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/charts/gohoarder/values.yaml b/charts/gohoarder/values.yaml index 3a3c754..b6d2fe5 100644 --- a/charts/gohoarder/values.yaml +++ b/charts/gohoarder/values.yaml @@ -51,17 +51,17 @@ image: server: repository: ghcr.io/lukaszraczylo/gohoarder-server pullPolicy: IfNotPresent - tag: "0.1.281" + tag: "0.1.395" frontend: repository: ghcr.io/lukaszraczylo/gohoarder-frontend pullPolicy: IfNotPresent - tag: "0.1.281" + tag: "0.1.395" scanner: repository: ghcr.io/lukaszraczylo/gohoarder-scanner pullPolicy: IfNotPresent - tag: "0.1.281" + tag: "0.1.395" # Service Account serviceAccount: @@ -91,8 +91,11 @@ server: host: "0.0.0.0" port: 8080 readTimeout: "5m" + readBufferSize: 16384 # Bytes for the request line plus headers; larger requests get 431 writeTimeout: "5m" idleTimeout: "2m" + # Browser origins allowed to use /api and /ws; empty = same-origin only + allowedOrigins: [] # Additional environment variables for server container # Use this to override config via environment variables @@ -358,7 +361,7 @@ migration: image: repository: ghcr.io/lukaszraczylo/gohoarder-migrate pullPolicy: IfNotPresent - tag: "0.1.281" + tag: "0.1.395" # Migration settings logLevel: "info" # debug, info, warn, error @@ -375,14 +378,16 @@ migration: # Cache configuration cache: - defaultTTL: "168h" # 7 days + defaultTTL: "24h" # Freshness window for metadata pages; keep below the 72h client release-age gate cleanupInterval: "1h" + idleTTL: "168h" # Remove cached items not requested for this long; "0" disables + deletedRetention: "720h" # Purge deleted package rows after this long; "0" keeps them forever maxSizeBytes: 536870912000 # 500GB perProjectQuota: 53687091200 # 50GB - ttlOverrides: - npm: "168h" - pip: "168h" - go: "168h" + ttlOverrides: # Per-registry metadata freshness; replaces defaultTTL for that registry. Keys: npm, pypi, go + npm: "24h" + pypi: "24h" + go: "24h" # Security scanning configuration security: @@ -390,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: @@ -406,7 +415,7 @@ security: osv: enabled: false - apiUrl: "https://api.osv.dev" + apiUrl: "https://api.osv.dev/v1/query" timeout: "30s" grype: diff --git a/charts/packages/gohoarder-0.1.395.tgz b/charts/packages/gohoarder-0.1.395.tgz new file mode 100644 index 0000000..cbb3025 Binary files /dev/null and b/charts/packages/gohoarder-0.1.395.tgz differ diff --git a/index.yaml b/index.yaml index 9b04323..f44da60 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,32 @@ apiVersion: v1 entries: gohoarder: + - apiVersion: v2 + appVersion: 0.1.395 + created: "2026-11-24T03:44:43.955881179Z" + description: A universal package cache proxy supporting npm, PyPI, and Go modules + with security scanning + digest: 34b4a92e7178d9fc8953038f4eab92f37cc0ad721e60c282446fa4383529cff9 + home: https://github.com/lukaszraczylo/gohoarder + keywords: + - package-manager + - cache + - proxy + - npm + - pypi + - go-modules + - security + - vulnerability-scanning + maintainers: + - email: lukasz@raczylo.com + name: Lukasz Raczylo + name: gohoarder + sources: + - https://github.com/lukaszraczylo/gohoarder + type: application + urls: + - https://github.com/lukaszraczylo/helm-charts/releases/download/gohoarder-0.1.395/gohoarder-0.1.395.tgz + version: 0.1.395 - apiVersion: v2 appVersion: 0.1.281 created: "2026-11-22T03:33:42.537075624Z" @@ -9462,4 +9488,4 @@ entries: urls: - https://github.com/lukaszraczylo/helm-charts/releases/download/kubemirror-0.2.8/kubemirror-0.2.8.tgz version: 0.2.8 -generated: "2026-11-24T03:30:05.053519889Z" +generated: "2026-11-24T03:44:43.954135356Z"