diff --git a/helm/utu-engine/templates/deployment.yaml b/helm/utu-engine/templates/deployment.yaml index 34a0ddb..da08443 100644 --- a/helm/utu-engine/templates/deployment.yaml +++ b/helm/utu-engine/templates/deployment.yaml @@ -1,3 +1,6 @@ +{{- if or (hasKey (default dict .Values.testingLab) "enabled") (hasKey (default dict .Values.internal) "fullTechnicalAudit") -}} +{{- fail "Internal capabilities cannot be configured in the public UTU Engine chart" -}} +{{- end }} {{- if ne (int .Values.replicaCount) 1 }} {{- fail "UTU Engine V1 supports exactly one Backend Pod (replicaCount: 1); multi-pod execution requires a distributed investigation owner" }} {{- end }} @@ -139,10 +142,6 @@ spec: containerPort: {{ .Values.service.targetPort }} protocol: TCP env: - # Internal opt-in intentionally absent from the public values.yaml. - # The backend enforces access; the UI never selects full mode itself. - - name: UTU_FULL_TECHNICAL_AUDIT - value: {{ (get (default dict .Values.internal) "fullTechnicalAudit" | default false) | quote }} # This must be on the application container, not the migrator. # It is a Helm-controlled install-time capability, not a Tool setting. - name: UTU_INCLUSTER_DEEP_PROBE_ENABLED @@ -177,9 +176,6 @@ spec: {{- end }} - name: AUTH_ENABLED value: {{ .Values.auth.enabled | quote }} - # Explicit opt-in only; never enabled by the shipped values.yaml. - - name: TOOL_TESTING_LAB_ENABLED - value: {{ get (.Values.testingLab | default dict) "enabled" | default false | quote }} - name: AUTH_SESSION_TTL_SECONDS value: {{ .Values.auth.sessionTtlSeconds | quote }} - name: AUTH_COOKIE_SECURE