Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(ci): suppress false-positive checkov K8s checks on Knative YAML; drop redundant seccomp annotation

KaifAhmad13f57bab9d3e1
diff --git a/deploy/gcp/cloudrun-service.yaml b/deploy/gcp/cloudrun-service.yaml
index 987fb862..2a48138d 100644
--- a/deploy/gcp/cloudrun-service.yaml
+++ b/deploy/gcp/cloudrun-service.yaml
@@ -1,3 +1,5 @@
+# checkov:skip=CKV_K8S_28:Cloud Run enforces seccomp at the platform level; this Knative YAML is not a K8s deployment
+# checkov:skip=CKV_K8S_30:Cloud Run enforces AppArmor at the platform level; this Knative YAML is not a K8s deployment
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
@@ -12,8 +14,6 @@ spec:
annotations:
autoscaling.knative.dev/minScale: "0"
autoscaling.knative.dev/maxScale: "10"
- container.apparmor.security.beta.kubernetes.io/explorer: runtime/default
- seccomp.security.alpha.kubernetes.io/pod: runtime/default
spec:
containerConcurrency: 80
timeoutSeconds: 300
diff --git a/deploy/helm/knowledge-explorer/values.yaml b/deploy/helm/knowledge-explorer/values.yaml
index 78577d88..7b5914b0 100644
--- a/deploy/helm/knowledge-explorer/values.yaml
+++ b/deploy/helm/knowledge-explorer/values.yaml
@@ -13,9 +13,6 @@ fullnameOverride: ""
podAnnotations:
# AppArmor — must match the container name defined in the Deployment template ("explorer").
container.apparmor.security.beta.kubernetes.io/explorer: runtime/default
- # Legacy seccomp annotation — required by older Terrascan/checkov versions
- # that predate the seccompProfile field in PodSecurityContext.
- seccomp.security.alpha.kubernetes.io/pod: runtime/default
podLabels: {}
podSecurityContext: