Skip to content

fix(kagent): gate agent agentgateway routes on agentgateway ingress mode#181

Merged
QuentinBisson merged 3 commits into
mainfrom
fix/agent-route-gate-agentgateway
Jun 23, 2026
Merged

fix(kagent): gate agent agentgateway routes on agentgateway ingress mode#181
QuentinBisson merged 3 commits into
mainfrom
fix/agent-route-gate-agentgateway

Conversation

@QuentinBisson

@QuentinBisson QuentinBisson commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

What

Two fixes for agentgateway-backends.yaml introduced in #177.

Gate on ingress mode: resources were rendered whenever kagent.enabled and the agent's enabled were true, regardless of ingress mode. On clusters running muster-direct (e.g. glean) there is no agentgateway data plane — the AgentgatewayBackend and HTTPRoute would be orphaned. Now gated on the existing agentic-platform.ingress.agentgateway helper (agentgateway-muster or agentgateway-direct only).

Drop public HTTPRoute: agent A2A endpoints are consumed in-cluster by other agents and the kagent controller. A public outer route adds attack surface with no current use case. External A2A access can be added via extraObjects when explicitly needed.

The template was gated only on kagent.enabled, so AgentgatewayBackend and
HTTPRoute resources were rendered on clusters running muster-direct mode
(no agentgateway data plane). Gate on the existing ingress.agentgateway
helper, which returns true only for agentgateway-muster and
agentgateway-direct modes.
@QuentinBisson QuentinBisson requested a review from a team as a code owner June 23, 2026 11:52
Agent A2A endpoints are consumed in-cluster (by other agents and the kagent
controller) — not by external clients. The public route added unnecessary
attack surface; the inner agentgateway route is sufficient. External A2A
access can be added via extraObjects when explicitly needed.
@QuentinBisson QuentinBisson merged commit d5c75b2 into main Jun 23, 2026
8 checks passed
@QuentinBisson QuentinBisson deleted the fix/agent-route-gate-agentgateway branch June 23, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant