Add M8.2 environment isolation and World0 protection
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>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# M8.2 (world0). REPLACE_WORKLOAD_PATH is deliberately unresolved: the world0
|
||||
# workload is M8.4 work. Manual sync only; no automated policy, no prune on sync of
|
||||
# durable objects (PVCs carry argocd.argoproj.io/sync-options: Prune=false,Delete=false).
|
||||
# World0: never add the resources-finalizer.argocd.argoproj.io finalizer (deleting
|
||||
# the Application must orphan, not cascade), never add an automated policy, and never
|
||||
# list this Application in a parent app-of-apps with prune. The admission policy
|
||||
# also denies deleting this Application without break-glass.
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: aevolution-world0
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: aevolution-world0
|
||||
source:
|
||||
repoURL: https://git.aeternalisgames.com/dingo/AEvolution.git
|
||||
targetRevision: main
|
||||
path: REPLACE_WORKLOAD_PATH
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: evolution-world0
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- FailOnSharedResource=true
|
||||
- PruneLast=true
|
||||
@@ -0,0 +1,33 @@
|
||||
# M8.2 (world0). Apply by hand to the argocd namespace; never from an Application.
|
||||
# One destination namespace only, no cluster-scoped kinds, no Secrets or quotas.
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: aevolution-world0
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: AEvolution world0 (evolution-world0 only)
|
||||
sourceRepos:
|
||||
- https://git.aeternalisgames.com/dingo/AEvolution.git
|
||||
destinations:
|
||||
- server: https://kubernetes.default.svc
|
||||
namespace: evolution-world0
|
||||
clusterResourceWhitelist: []
|
||||
namespaceResourceWhitelist:
|
||||
- {group: "", kind: Service}
|
||||
- {group: "", kind: ConfigMap}
|
||||
- {group: "", kind: PersistentVolumeClaim}
|
||||
- {group: apps, kind: Deployment}
|
||||
- {group: batch, kind: Job}
|
||||
- {group: networking.k8s.io, kind: NetworkPolicy}
|
||||
# Not listed, so never Argo-managed: Namespaces, ServiceAccounts (platform layer),
|
||||
# Secrets, quotas, limit ranges and RBAC.
|
||||
orphanedResources:
|
||||
warn: true
|
||||
# No automated sync can ever run; a human may still sync by hand.
|
||||
syncWindows:
|
||||
- kind: deny
|
||||
schedule: "* * * * *"
|
||||
duration: 24h
|
||||
applications: ["*"]
|
||||
manualSync: true
|
||||
Reference in New Issue
Block a user