From 83a2df83d31ec5000b54bae930e8d6a1e50fc846 Mon Sep 17 00:00:00 2001 From: EurusDevSec Date: Tue, 24 Nov 2026 22:43:24 +0700 Subject: [PATCH] feat(p5): Kyverno policies Audit -> Deny, merge only in the L3 window (DRF-71) SPEC-P5 P5-T4.2 C: the switch to Deny is a Git commit merged by the owner inside the window, after the Audit policy reports are clean on EKS. Prepared before the window so nothing is written during it (A16). Only validationActions and the header comment change. Co-Authored-By: Claude Opus 5.5 --- gitops/platform/policies/zdr-image-digest.yaml | 6 +++--- gitops/platform/policies/zdr-require-resources.yaml | 6 +++--- gitops/platform/policies/zdr-tenant-label.yaml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gitops/platform/policies/zdr-image-digest.yaml b/gitops/platform/policies/zdr-image-digest.yaml index 9541661..adff912 100644 --- a/gitops/platform/policies/zdr-image-digest.yaml +++ b/gitops/platform/policies/zdr-image-digest.yaml @@ -1,6 +1,6 @@ # P5 (DRF-67, SPEC-P5 D6, D8, D9). Validate only, Pods in namespaces that -# carry rag.zero-drift.io/tenant. Starts in Audit; the switch to Deny is a -# pull request after the policy reports are clean. failurePolicy Fail (D8): +# carry rag.zero-drift.io/tenant. Deny: switched from Audit in the P5 L3 window +# (P5-T4.2 C) after the Audit policy reports were clean. failurePolicy Fail (D8): # if Kyverno is down, tenant Pods are refused; platform namespaces are outside # the selector, so teardown still works. No PolicyException (D9). # Autogen is off: kro-created Deployments are judged by their Pods. @@ -11,7 +11,7 @@ metadata: name: zdr-image-digest spec: failurePolicy: Fail - validationActions: [Audit] + validationActions: [Deny] autogen: podControllers: controllers: [] diff --git a/gitops/platform/policies/zdr-require-resources.yaml b/gitops/platform/policies/zdr-require-resources.yaml index 13191c9..9abf2e0 100644 --- a/gitops/platform/policies/zdr-require-resources.yaml +++ b/gitops/platform/policies/zdr-require-resources.yaml @@ -1,6 +1,6 @@ # P5 (DRF-67, SPEC-P5 D6, D8, D9). Validate only, Pods in namespaces that -# carry rag.zero-drift.io/tenant. Starts in Audit; the switch to Deny is a -# pull request after the policy reports are clean. failurePolicy Fail (D8): +# carry rag.zero-drift.io/tenant. Deny: switched from Audit in the P5 L3 window +# (P5-T4.2 C) after the Audit policy reports were clean. failurePolicy Fail (D8): # if Kyverno is down, tenant Pods are refused; platform namespaces are outside # the selector, so teardown still works. No PolicyException (D9). # Autogen is off: kro-created Deployments are judged by their Pods. @@ -13,7 +13,7 @@ metadata: name: zdr-require-resources spec: failurePolicy: Fail - validationActions: [Audit] + validationActions: [Deny] autogen: podControllers: controllers: [] diff --git a/gitops/platform/policies/zdr-tenant-label.yaml b/gitops/platform/policies/zdr-tenant-label.yaml index 04a8896..c47d9f2 100644 --- a/gitops/platform/policies/zdr-tenant-label.yaml +++ b/gitops/platform/policies/zdr-tenant-label.yaml @@ -1,6 +1,6 @@ # P5 (DRF-67, SPEC-P5 D6, D8, D9). Validate only, Pods in namespaces that -# carry rag.zero-drift.io/tenant. Starts in Audit; the switch to Deny is a -# pull request after the policy reports are clean. failurePolicy Fail (D8): +# carry rag.zero-drift.io/tenant. Deny: switched from Audit in the P5 L3 window +# (P5-T4.2 C) after the Audit policy reports were clean. failurePolicy Fail (D8): # if Kyverno is down, tenant Pods are refused; platform namespaces are outside # the selector, so teardown still works. No PolicyException (D9). # Autogen is off: kro-created Deployments are judged by their Pods. @@ -13,7 +13,7 @@ metadata: name: zdr-tenant-label spec: failurePolicy: Fail - validationActions: [Audit] + validationActions: [Deny] autogen: podControllers: controllers: []