Skip to content

Commit 2b69e22

Browse files
butler54claude
andcommitted
fix: ensure GPU attestation is required when GPU is enabled
Previously, when GPU attestation was enabled, the policy would still allow access with only CPU attestation due to the first rule being unconditionally present. This fix ensures the CPU-only rule only applies when GPU is disabled, preventing the bypass. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a2aa3cc commit 2b69e22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

templates/resource-policy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ data:
1212
import rego.v1
1313
1414
default allow := false
15+
{{- if not .Values.kbs.gpu.enabled }}
1516
1617
allow if {
1718
input["submods"]["cpu0"]["ear.status"] == "affirming"
1819
}
19-
{{- if .Values.kbs.gpu.enabled }}
20+
{{- else }}
2021
2122
allow if {
2223
input["submods"]["cpu0"]["ear.status"] == "affirming"

0 commit comments

Comments
 (0)