Per-environment platform layers (dev, stage, world0) with restricted pod security, quotas, limit ranges, default-deny networking and token-less service accounts, applied by an administrator rather than Argo. A native ValidatingAdmissionPolicy denies deleting World0 data, identity and Argo objects to every requester without the break-glass group. Stage and World0 Argo projects are scoped to one namespace, World0 blocks automated sync, and a cleanup tool refuses World0. An offline policy check runs as a new CI suite; a live verification script uses only can-i, reads and server dry runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
618 B
YAML
16 lines
618 B
YAML
# M8.2 per-environment guardrails (docs/infrastructure/ENVIRONMENTS.md). Applied by a
|
|
# cluster administrator with `kubectl apply -k deploy/kubernetes/platform/<env>`, never
|
|
# through an Argo CD Application: namespaces, quotas and identities must not be
|
|
# prunable by a workload sync. Each overlay sets the namespace and its quota values.
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- quota.yaml
|
|
- limitrange.yaml
|
|
- networkpolicies.yaml
|
|
- serviceaccounts.yaml
|
|
labels:
|
|
- pairs:
|
|
app.kubernetes.io/part-of: aevolution
|
|
app.kubernetes.io/managed-by: aevolution-platform
|