mirror of
https://github.com/morten-olsen/homelab-nuclei-operator.git
synced 2026-02-08 02:16:23 +01:00
feat: support rescans and backoffs
This commit is contained in:
@@ -252,6 +252,11 @@ spec:
|
||||
lastError:
|
||||
description: LastError contains the error message if the scan failed
|
||||
type: string
|
||||
lastRetryTime:
|
||||
description: LastRetryTime is when the last availability check retry
|
||||
occurred
|
||||
format: date-time
|
||||
type: string
|
||||
lastScanTime:
|
||||
description: LastScanTime is when the last scan was initiated
|
||||
format: date-time
|
||||
@@ -274,6 +279,11 @@ spec:
|
||||
- Completed
|
||||
- Failed
|
||||
type: string
|
||||
retryCount:
|
||||
description: |-
|
||||
RetryCount tracks the number of consecutive availability check retries
|
||||
Used for exponential backoff when waiting for targets
|
||||
type: integer
|
||||
summary:
|
||||
description: Summary provides aggregated scan statistics
|
||||
properties:
|
||||
|
||||
@@ -73,6 +73,21 @@ spec:
|
||||
value: "/nuclei-templates"
|
||||
- name: NUCLEI_TIMEOUT
|
||||
value: "30m"
|
||||
# NUCLEI_RESCAN_AGE controls how old scan results can be before
|
||||
# triggering an automatic rescan. Default is 168h (1 week).
|
||||
# Set to "0" to disable automatic rescans based on age.
|
||||
- name: NUCLEI_RESCAN_AGE
|
||||
value: "168h"
|
||||
# Backoff configuration for target availability checks
|
||||
# NUCLEI_BACKOFF_INITIAL: Initial retry interval (default: 10s)
|
||||
- name: NUCLEI_BACKOFF_INITIAL
|
||||
value: "10s"
|
||||
# NUCLEI_BACKOFF_MAX: Maximum retry interval (default: 10m)
|
||||
- name: NUCLEI_BACKOFF_MAX
|
||||
value: "10m"
|
||||
# NUCLEI_BACKOFF_MULTIPLIER: Multiplier for exponential backoff (default: 2.0)
|
||||
- name: NUCLEI_BACKOFF_MULTIPLIER
|
||||
value: "2.0"
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false # Nuclei needs to write temporary files
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
Reference in New Issue
Block a user