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)
46 lines
2 KiB
YAML
46 lines
2 KiB
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
# Two namespaces: `forgejo` (enforce: baseline) and `ci-runners`
|
|
# (enforce: privileged — the CI capsule). Namespace objects sort first.
|
|
- namespace.yaml
|
|
- ci-runners-namespace.yaml
|
|
- httproute.yaml
|
|
# Default-deny ingress+egress + the namespace allow list (audit F3 / t_fed52919).
|
|
- networkpolicy.yaml
|
|
- pvc.yaml
|
|
- cluster.yaml
|
|
- podmonitor.yaml
|
|
- pg-actions-queries.yaml
|
|
# Site-root custom assets (robots.txt) mounted into the forgejo pod.
|
|
- custom-public.yaml
|
|
- deployment.yaml
|
|
- service.yaml
|
|
- runner-configmap.yaml
|
|
# The runner PVCs/Deployments below and the prune CronJob — plus the two
|
|
# runner-token Secrets near the bottom — live in namespace `ci-runners`,
|
|
# not `forgejo`: the dind sidecars need `privileged` and the prune Job needs a
|
|
# hostPath socket, both of which `forgejo` now rejects at admission
|
|
# (enforce: baseline).
|
|
#
|
|
# Static PVs/PVCs pinned to rpi: dynamic local-path cannot provision there
|
|
# (its helper pod is hardcoded to siriussec). Must sort before the runner
|
|
# Deployments that consume the claims.
|
|
- runner-dind-storage.yaml
|
|
# Cluster-scoped RuntimeClass for the Kata microVM that the rpi deploy runner
|
|
# uses (card t_8aa4af50). Its handler exists in containerd on rpi only.
|
|
- kata-runtimeclass.yaml
|
|
- runner-arm64.yaml
|
|
- runner-amd64.yaml
|
|
- runner-deploy-arm64.yaml
|
|
- prune-cronjob.yaml
|
|
# Nightly disaster-recovery backup of forgejo-data + every CNPG database to
|
|
# the Linode VPS. Lives here because a PVC cannot be mounted cross-namespace.
|
|
- cluster-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-pg-app.sops.yaml
|
|
- secret-forgejo-runner-amd64-token.sops.yaml
|
|
- secret-forgejo-runner-deploy-arm64-token.sops.yaml
|
|
- secret-cluster-backup-ssh.sops.yaml
|