Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(ci): resolve MSDO/checkov and Terrascan failures on K8s and Helm manifests

KaifAhmad1095e8c8714ef
diff --git a/deploy/helm/knowledge-explorer/values.prod.yaml b/deploy/helm/knowledge-explorer/values.prod.yaml
index 7305a8e2..1d1ee6d6 100644
--- a/deploy/helm/knowledge-explorer/values.prod.yaml
+++ b/deploy/helm/knowledge-explorer/values.prod.yaml
@@ -1,6 +1,7 @@
image:
repository: ghcr.io/semantica-agi/semantica-knowledge-explorer
- tag: latest
+ # Pin to a specific release tag or digest before deploying to production.
+ tag: "0.5.0"
pullPolicy: IfNotPresent
ingress:
diff --git a/deploy/helm/knowledge-explorer/values.yaml b/deploy/helm/knowledge-explorer/values.yaml
index ee179986..7b5914b0 100644
--- a/deploy/helm/knowledge-explorer/values.yaml
+++ b/deploy/helm/knowledge-explorer/values.yaml
@@ -3,13 +3,16 @@ replicaCount: 2
image:
repository: semantica-knowledge-explorer
pullPolicy: IfNotPresent
- tag: latest
+ # Use a pinned tag (e.g. "0.5.0") or digest in production; empty string falls back to .Chart.AppVersion.
+ tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
-podAnnotations: {}
+podAnnotations:
+ # AppArmor — must match the container name defined in the Deployment template ("explorer").
+ container.apparmor.security.beta.kubernetes.io/explorer: runtime/default
podLabels: {}
podSecurityContext:
@@ -20,7 +23,10 @@ podSecurityContext:
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
+ runAsNonRoot: true
runAsUser: 1000
+ seccompProfile:
+ type: RuntimeDefault
capabilities:
drop:
- ALL
diff --git a/deploy/kubernetes/deployment.yaml b/deploy/kubernetes/deployment.yaml
index 61c87c34..4a6c9d3d 100644
--- a/deploy/kubernetes/deployment.yaml
+++ b/deploy/kubernetes/deployment.yaml
@@ -18,6 +18,8 @@ spec:
app.kubernetes.io/name: knowledge-explorer
template:
metadata:
+ annotations:
+ container.apparmor.security.beta.kubernetes.io/explorer: runtime/default
labels:
app.kubernetes.io/name: knowledge-explorer
app.kubernetes.io/part-of: semantica
@@ -65,7 +67,10 @@ spec:
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
+ runAsNonRoot: true
runAsUser: 1000
+ seccompProfile:
+ type: RuntimeDefault
capabilities:
drop:
- ALL
diff --git a/deploy/kubernetes/ingress.yaml b/deploy/kubernetes/ingress.yaml
index a9b1c0cd..50264357 100644
--- a/deploy/kubernetes/ingress.yaml
+++ b/deploy/kubernetes/ingress.yaml
@@ -6,6 +6,7 @@ metadata:
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
+ nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
tls:
- hosts:
diff --git a/deploy/kubernetes/namespace.yaml b/deploy/kubernetes/namespace.yaml
index ebca2fdc..1bf5ecda 100644
--- a/deploy/kubernetes/namespace.yaml
+++ b/deploy/kubernetes/namespace.yaml
@@ -2,3 +2,5 @@ apiVersion: v1
kind: Namespace
metadata:
name: semantica
+ labels:
+ owner: semantica