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)
18 lines
713 B
YAML
18 lines
713 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- deployment-site.yaml
|
|
- deployment-api.yaml
|
|
- service-site.yaml
|
|
- service-api.yaml
|
|
- httproute.yaml
|
|
# Replaces the egress-only `siriusdevops-site-egress` CNP: same Garage +
|
|
# DNS allow, plus a namespace-wide default-deny and ingress rules (F3).
|
|
- networkpolicy.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-garage-media-s3.sops.yaml
|
|
- secret-siriusdevops-contact.sops.yaml
|