homek8s/apps/base/sirius-growth/kustomization.yaml
Lance Walters 69b003705c infra(netpol): default-deny ingress+egress for the six app namespaces
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)
2026-11-27 02:19:10 -05:00

43 lines
1.6 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment.yaml
- deployment-api.yaml
- deployment-portal.yaml
- deployment-blog.yaml
- deployment-portal-gate.yaml
- configmap-portal-gate.yaml
- service.yaml
- service-api.yaml
- service-portal.yaml
- service-blog.yaml
- service-portal-gate.yaml
- httproute.yaml
# Default-deny ingress+egress + the namespace allow list (audit F3 / t_fed52919).
- networkpolicy.yaml
# The WAL archive store must exist before the Cluster references it.
- objectstore-portal-wal.yaml
- cluster.yaml
- scheduled-backup.yaml
- podmonitor.yaml
- pvc-leadgen.yaml
- cronjob-leadgen.yaml
- cronjob-leadgen-ncda.yaml
# exec-only RBAC so forgejo/cluster-backup can pg_dump this namespace's CNPG
# cluster (portal) without copying a database password across namespaces.
- backup-exec-rbac.yaml
# Snapshot mirror of the lead-gen capture PVC to the Linode.
- leadgen-backup.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-portal-wal-s3.sops.yaml
- secret-sirius-growth-blog-app.sops.yaml
- secret-sirius-growth-blog-s3.sops.yaml
- secret-sirius-growth-contact.sops.yaml
- secret-sirius-growth-portal-app.sops.yaml
- secret-sirius-growth-portal-db.sops.yaml
- secret-sirius-growth-portal-s3.sops.yaml
- secret-cluster-backup-ssh.sops.yaml