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:
parent
87c22e71a4
commit
54f2f42710
9 changed files with 35 additions and 10 deletions
|
|
@ -44,7 +44,7 @@ spec:
|
|||
app.kubernetes.io/component: api
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4000
|
||||
port: 8000
|
||||
# Allow to external APIs (GDelt, satellite providers)
|
||||
- to:
|
||||
- ipBlock:
|
||||
|
|
@ -78,7 +78,7 @@ spec:
|
|||
app.kubernetes.io/component: web
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4000
|
||||
port: 8000
|
||||
# Allow from ingress controller / Gateway API
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
|
|
@ -86,7 +86,7 @@ spec:
|
|||
kubernetes.io/metadata.name: ingress-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4000
|
||||
port: 8000
|
||||
egress:
|
||||
# Allow DNS
|
||||
- to:
|
||||
|
|
|
|||
|
|
@ -16,8 +16,11 @@ spec:
|
|||
- Ingress
|
||||
- Egress
|
||||
ingress:
|
||||
# Allow Grafana web access
|
||||
- from: []
|
||||
# Allow Grafana web access from monitoring namespace
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: monitoring
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.monitoring.grafana.port }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue