Add SERVER_HEADER environment variable to customize the HTTP Server response header, defaulting to Apache/2.2.22 (Ubuntu). This allows the honeypot to masquerade as different web servers to attract attackers. - Add server_header field to Config dataclass - Override version_string() in Handler to return configured header - Update documentation and all deployment configs
19 lines
825 B
YAML
19 lines
825 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "krawl.fullname" . }}-config
|
|
labels:
|
|
{{- include "krawl.labels" . | nindent 4 }}
|
|
data:
|
|
PORT: {{ .Values.config.port | quote }}
|
|
DELAY: {{ .Values.config.delay | quote }}
|
|
LINKS_MIN_LENGTH: {{ .Values.config.linksMinLength | quote }}
|
|
LINKS_MAX_LENGTH: {{ .Values.config.linksMaxLength | quote }}
|
|
LINKS_MIN_PER_PAGE: {{ .Values.config.linksMinPerPage | quote }}
|
|
LINKS_MAX_PER_PAGE: {{ .Values.config.linksMaxPerPage | quote }}
|
|
MAX_COUNTER: {{ .Values.config.maxCounter | quote }}
|
|
CANARY_TOKEN_TRIES: {{ .Values.config.canaryTokenTries | quote }}
|
|
PROBABILITY_ERROR_CODES: {{ .Values.config.probabilityErrorCodes | quote }}
|
|
SERVER_HEADER: {{ .Values.config.serverHeader | quote }}
|
|
CANARY_TOKEN_URL: {{ .Values.config.canaryTokenUrl | quote }}
|