diff --git a/docs/security/threat-model.md b/docs/security/threat-model.md index 975e50859..aa428e7df 100644 --- a/docs/security/threat-model.md +++ b/docs/security/threat-model.md @@ -59,7 +59,9 @@ The actors below are decomposed **by trust boundary**, not by component: two com | Tenant-to-tenant / tenant-to-platform traffic | Workload (T3) → workload (T3) / system | East-west packets | Cilium enforces policy at **both** endpoints, so a flow needs the source's egress *and* the destination's ingress to allow it. Every tenant pod's egress is confined to its own tenant subtree (namespaces labelled `tenant.cozystack.io/`), platform system services (DNS, apiserver, ingress, dashboard, Keycloak, CDI), and `world` (out-of-cluster). Ingress is permissively open to `world` and `cluster`. | Cross-tenant pod-to-pod traffic is **denied** — an unrelated tenant has no egress path to another tenant's pod, even though that pod's ingress would accept it. Within a tenant subtree, parent→descendant traffic is allowed (descendants carry ancestor namespace labels); child→parent traffic is denied except for specific ancestor services (vminsert, etcd, ingress). See Non-goals for the ingress-side and LoadBalancer caveats. | | Distribute platform config to tenants | Platform (T1) → tenant namespace (T2) | `cozystack-values` Secret (cluster/namespace host, OIDC toggles, gateway references) | Rendered by the platform charts and merged into every tenant HelmRelease as `valuesFrom`. | Tenants inherit platform config (host apex, etc.) but cannot forge it. | -> **`networkingVariant: cozyplane` (opt-in, draft):** the two Cilium-dependent rows above do not hold on this variant. CiliumNetworkPolicy objects apply but are not enforced, so tenant-to-tenant traffic on the default network is **not** denied until the variant's isolation is rebuilt on native NetworkPolicy; and `sdn.cozystack.io` is served by cozyplane's aggregated apiserver, not by `cozystack-api` — its SecurityGroup is a first-class tenant instrument policing traffic inside and across VPCs, not a projection onto CiliumNetworkPolicy. +> **`networkingVariant: cozyplane` (opt-in, experimental):** the two Cilium-dependent rows above do not hold on this variant. CiliumNetworkPolicy objects apply but are not enforced, so tenant-to-tenant traffic on the default network is **not** denied until the variant's isolation is rebuilt on native NetworkPolicy; and `sdn.cozystack.io` is served by cozyplane's aggregated apiserver, not by `cozystack-api` — its SecurityGroup is a first-class tenant instrument policing traffic inside and across VPCs, not a projection onto CiliumNetworkPolicy. +> +> The platform components' own Cilium policies lose their enforcement too: linstor's `restrict-drbd-reactor` and monitoring-agents' `restrict-node-exporter`, which keep the world off ports 9942 and 9100, the ingress-nginx admission-webhook policy, and keda's. Several are `ingressDeny` rules, which native NetworkPolicy has no equivalent for, so rebuilding isolation on native NetworkPolicy will not restore them; cozyplane's operator-only HostFirewall is the layer that can. ## Goals diff --git a/packages/core/platform/values.yaml b/packages/core/platform/values.yaml index 2712c288f..d6aba3d96 100644 --- a/packages/core/platform/values.yaml +++ b/packages/core/platform/values.yaml @@ -41,10 +41,13 @@ bundles: # CNI/networking selector for the "isp-full" (Talos) variant: # "kubeovn-cilium" — KubeOVN fabric + Cilium (default) # "cozyplane" — cozyplane eBPF CNI + cozyplane-kpr socket-LB KPR - # (no Cilium, no kube-proxy) + # (no Cilium, no kube-proxy). EXPERIMENTAL: no e2e + # coverage, not for production clusters. # On "cozyplane", CiliumNetworkPolicy objects apply but are NOT ENFORCED # (the CRDs ship inert so stock charts install): tenant network isolation - # on the default network and the Cilium host firewall are not in effect. + # on the default network, the Cilium host firewall, and the platform + # components' own Cilium policies (ingressDeny rules included) are not in + # effect. # cozystack-api's SecurityGroup — a restricted interface over # CiliumNetworkPolicy — is not served either; cozyplane's own SecurityGroup # polices traffic inside and across VPCs instead.