Created
February 23, 2026 18:20
-
-
Save rvennam/8b1f8a460ed117ebc98356ceca5f9179 to your computer and use it in GitHub Desktop.
Issue: Multiple AgentgatewayPolicies targeting same backend - relevant policies only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "policies": [ | |
| { | |
| "key": "backend/enterprise-agentgateway/aliases-policy:ai:enterprise-agentgateway/openai", | |
| "name": { | |
| "kind": "AgentgatewayPolicy", | |
| "name": "aliases-policy", | |
| "namespace": "enterprise-agentgateway" | |
| }, | |
| "target": { | |
| "backend": { | |
| "backend": { | |
| "name": "openai", | |
| "namespace": "enterprise-agentgateway" | |
| } | |
| } | |
| }, | |
| "policy": { | |
| "backend": { | |
| "ai": { | |
| "defaults": { | |
| "max_tokens": 500, | |
| "temperature": 0.7 | |
| }, | |
| "overrides": {}, | |
| "modelAliases": { | |
| "fast": "gpt-4.1-nano" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "key": "backend/enterprise-agentgateway/prompt-policy:ai:enterprise-agentgateway/openai", | |
| "name": { | |
| "kind": "AgentgatewayPolicy", | |
| "name": "prompt-policy", | |
| "namespace": "enterprise-agentgateway" | |
| }, | |
| "target": { | |
| "backend": { | |
| "backend": { | |
| "name": "openai", | |
| "namespace": "enterprise-agentgateway" | |
| } | |
| } | |
| }, | |
| "policy": { | |
| "backend": { | |
| "ai": { | |
| "defaults": {}, | |
| "overrides": {}, | |
| "prompts": { | |
| "append": [ | |
| { | |
| "role": "system", | |
| "content": "APPEND_MARKER" | |
| } | |
| ], | |
| "prepend": [ | |
| { | |
| "role": "system", | |
| "content": "PREPEND_MARKER" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment