fix(osint-dashboard): fix critical manifest issues found during audit

- Fix PostgreSQL topologySpreadConstraints label selector (cnpg.io/cluster)
- Fix Ingress HTTPRoutes: route API and WS traffic to correct backends
- Fix API NetworkPolicy port mismatch (4000 -> 8000)
- Fix MinIO bucket index syntax (_0 -> 0) in ConfigMap
- Add postgresql.port and postgresql.database to values.yaml
- Add container-level securityContext to API deployment
- Restrict monitoring NetworkPolicy ingress to monitoring namespace
- Enable readOnlyRootFilesystem for MinIO container
- Add activeDeadlineSeconds (3600s) to all 4 CronJobs
This commit is contained in:
sirius0xdev 2026-05-23 04:38:51 +00:00
commit 54f2f42710
9 changed files with 35 additions and 10 deletions

View file

@ -19,8 +19,19 @@ spec:
type: PathPrefix
value: {{ $rule.path }}
backendRefs:
{{- if eq $host.host "dashboard.siriusdevops.com" }}
- name: dashboard-web
port: 3000
{{- else if eq $host.host "api.siriusdevops.com" }}
- name: {{ include "osint-dashboard.fullname" $ }}-api
port: 8000
{{- else if eq $host.host "ws.siriusdevops.com" }}
- name: {{ include "osint-dashboard.fullname" $ }}-api
port: 8000
{{- else }}
- name: dashboard-web
port: 3000
{{- end }}
weight: 100
{{- end }}
---