feat: update Helm chart for FastAPI authentication with dashboard password support
This commit is contained in:
@@ -2,8 +2,8 @@ apiVersion: v2
|
|||||||
name: krawl-chart
|
name: krawl-chart
|
||||||
description: A Helm chart for Krawl honeypot server
|
description: A Helm chart for Krawl honeypot server
|
||||||
type: application
|
type: application
|
||||||
version: 1.1.3
|
version: 1.1.4
|
||||||
appVersion: 1.1.3
|
appVersion: 1.1.4
|
||||||
keywords:
|
keywords:
|
||||||
- honeypot
|
- honeypot
|
||||||
- security
|
- security
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ The following table lists the main configuration parameters of the Krawl chart a
|
|||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|-----------|-------------|---------|
|
|-----------|-------------|---------|
|
||||||
| `config.dashboard.secret_path` | Secret dashboard path (auto-generated if null) | `null` |
|
| `config.dashboard.secret_path` | Secret dashboard path (auto-generated if null) | `null` |
|
||||||
|
| `dashboardPassword` | Password for protected panels (injected via Secret as `KRAWL_DASHBOARD_PASSWORD` env, auto-generated if empty) | `""` |
|
||||||
|
|
||||||
### API Configuration
|
### API Configuration
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,13 @@ spec:
|
|||||||
- name: TZ
|
- name: TZ
|
||||||
value: {{ .Values.timezone | quote }}
|
value: {{ .Values.timezone | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.dashboardPassword }}
|
||||||
|
- name: KRAWL_DASHBOARD_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ include "krawl.fullname" . }}-dashboard
|
||||||
|
key: dashboard-password
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /app/config.yaml
|
mountPath: /app/config.yaml
|
||||||
|
|||||||
11
helm/templates/secret.yaml
Normal file
11
helm/templates/secret.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{{- if .Values.dashboardPassword }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ include "krawl.fullname" . }}-dashboard
|
||||||
|
labels:
|
||||||
|
{{- include "krawl.labels" . | nindent 4 }}
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
dashboard-password: {{ .Values.dashboardPassword | quote }}
|
||||||
|
{{- end }}
|
||||||
@@ -60,6 +60,10 @@ tolerations: []
|
|||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
# Dashboard password for protected panels
|
||||||
|
# If empty, a random password will be auto-generated and printed in the logs
|
||||||
|
dashboardPassword: ""
|
||||||
|
|
||||||
# Application configuration (config.yaml structure)
|
# Application configuration (config.yaml structure)
|
||||||
config:
|
config:
|
||||||
server:
|
server:
|
||||||
|
|||||||
Reference in New Issue
Block a user