Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
fix(ci): suppress CKV_K8S_21 false-positive on Cloud Run Knative YAML
KaifAhmad1bacc37ab7711
diff --git a/.checkov.yaml b/.checkov.yamlindex 4dfd2cc2..b5f8058e 100644--- a/.checkov.yaml+++ b/.checkov.yaml@@ -1,11 +1,17 @@# Checkov configuration — applies when running checkov locally or via the# bridgecrewio/checkov-action in CI.#-# CKV_K8S_28 / CKV_K8S_30 are suppressed globally because-# deploy/gcp/cloudrun-service.yaml uses apiVersion: serving.knative.dev/v1-# which checkov scans as a Kubernetes resource. Cloud Run is a fully managed-# platform that enforces seccomp (CKV_K8S_28) and AppArmor (CKV_K8S_30) at-# the infrastructure level without requiring pod-level annotations.+# The rules below are suppressed because deploy/gcp/cloudrun-service.yaml uses+# apiVersion: serving.knative.dev/v1 which checkov scans as a Kubernetes resource.+# Cloud Run is a fully managed platform — K8s namespace, AppArmor, and seccomp+# concepts do not apply to it.+#+# CKV_K8S_21 — "default namespace should not be used": Cloud Run services have no+# namespace concept; checkov sees the absence of metadata.namespace+# as using the "default" namespace.+# CKV_K8S_28 — seccomp profile: Cloud Run enforces this at the platform level.+# CKV_K8S_30 — AppArmor profile: Cloud Run enforces this at the platform level.skip-check:+ - CKV_K8S_21- CKV_K8S_28- CKV_K8S_30diff --git a/deploy/gcp/cloudrun-service.yaml b/deploy/gcp/cloudrun-service.yamlindex 2a48138d..8fabfb3a 100644--- a/deploy/gcp/cloudrun-service.yaml+++ b/deploy/gcp/cloudrun-service.yaml@@ -1,3 +1,4 @@+# checkov:skip=CKV_K8S_21:Cloud Run has no namespace concept; Knative services are project-scoped not namespace-scoped# 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 deploymentapiVersion: serving.knative.dev/v1