Audit F3 / A5-1. Every pod in customer1, osint, sirius-growth, piedmont,
siriusdevops and forgejo was reachable from every other pod, from the API
server, from the internal WireGuard-only Gateway ports on 10.10.0.2 and from
the internet.
- each namespace: a stock NetworkPolicy 'default-deny' (podSelector {},
Ingress+Egress, no rules) plus a CiliumNetworkPolicy allow that names the
gateway/kubelet/health entities, same-namespace pods, cluster DNS and only
the egress each workload actually uses (world for Telegram/news/inference,
remote-node :3900 for Garage, :22 for the backup rsync, kube-apiserver :6443
where CNPG/kubectl needs it, none at all for customer1)
- siriusdevops: replaces the egress-only siriusdevops-site-egress CNP
- customer1: ResourceQuota + LimitRange sized from the declared 1-replica
shape (35Gi already bound, 2 CPU / 4Gi requests) - the sandbox stays parked
- docs/network-isolation.md: the model plus the five gotchas measured while
landing it (both-ends enforcement, kube-apiserver identity covering the
whole node IP, remote-node vs world for Garage, ingress vs host identity)
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- configmap.yaml
|
|
- postgres-pvc.yaml
|
|
- postgres-pvc-linode.yaml
|
|
- postgres-deployment.yaml
|
|
- postgres-service.yaml
|
|
- nats-deployment.yaml
|
|
- nats-service.yaml
|
|
- app-deployment.yaml
|
|
- app-service.yaml
|
|
- ingester-deployment.yaml
|
|
- camera-pvc.yaml
|
|
- camera-deployment.yaml
|
|
- titiler-deployment.yaml
|
|
- titiler-service.yaml
|
|
- news-scraper-deployment.yaml
|
|
- news-summarizer-deployment.yaml
|
|
- httproute.yaml
|
|
# Default-deny ingress+egress + the namespace allow list (audit F3 / t_fed52919).
|
|
- networkpolicy.yaml
|
|
# exec-only RBAC so forgejo/cluster-backup can pg_dump this namespace's plain
|
|
# Postgres Deployment (osint-db) — not a CNPG cluster, so it needs its own path.
|
|
- backup-exec-rbac.yaml
|
|
# Secrets, SOPS/age-encrypted in git. Flux decrypts them (the `apps`
|
|
# Kustomization carries a decryption block; key = flux-system/sops-age).
|
|
# Never add a plaintext Secret next to these — see docs/secrets-sops.md.
|
|
- secret-forgejo-pull.sops.yaml
|
|
- secret-osint-admin.sops.yaml
|
|
- secret-osint-db.sops.yaml
|