You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Only reject when the flag is explicitly enabled (true / non-empty string)
93
+
enabled:=false
94
+
switchv:=flagVal.(type) {
95
+
casebool:
96
+
enabled=v
97
+
casestring:
98
+
enabled=v!=""
99
+
}
100
+
if!enabled {
101
+
returnnil
102
+
}
103
+
strictModeValidationLog.Printf("disable-xpia-prompt validation failed: feature flag enabled in strict mode")
104
+
returnerrors.New("strict mode: 'disable-xpia-prompt: true' is not allowed because it removes XPIA (Cross-Prompt Injection Attack) protection from the workflow. This eliminates the primary defense against prompt-injection attacks. Remove the disable-xpia-prompt feature flag or set 'strict: false' to disable strict mode")
105
+
}
106
+
76
107
// validateStrictFirewall requires firewall to be enabled in strict mode for copilot and codex engines
77
108
// when network domains are provided (non-wildcard).
78
109
// In strict mode, ALL engines (regardless of LLM gateway support) disallow sandbox.agent: false.
0 commit comments