Skip to content

fix(envoy_ai_gateway): publish inference.<domain> in keycloak mode only - #12

Open
Mushtaq-BGA wants to merge 1 commit into
mainfrom
fix/litellm-inference-route-scope
Open

Mushtaq-BGA wants to merge 1 commit into
mainfrom
fix/litellm-inference-route-scope

Conversation

@Mushtaq-BGA

Copy link
Copy Markdown
Contributor

Problem

The inference-external HTTPRoute forwards inference.<domain> straight to the ai-gateway, bypassing LiteLLM. It was created whenever ai_gateway_create was set, regardless of auth mode — so litellm mode exposed a direct, unauthenticated path around LiteLLM (virtual-key auth, budgets, rate limits, Langfuse logging).

Change

  • Gate inference-external creation to keycloak mode, where the gateway JWT policy guards it.
  • Remove any route left behind by a prior keycloak install on a switch to litellm/none.

LiteLLM still reaches the ai-gateway over its own internal ClusterIP service (per the documented litellm request flow), so the model path is unaffected. In litellm mode litellm.<domain> is the single external inference endpoint.

Companion

Pairs with intel/enterprise-ai-solutions#17 (gateway auth scoped to keycloak; litellm gateway is TLS+routing only).

Test

yamllint clean; auth_provider is the same global var already used by the langfuse/litellm/llm_services roles.

The inference-external HTTPRoute forwards inference.<domain> straight to the
ai-gateway, bypassing LiteLLM. It was created whenever ai_gateway_create was
set, so litellm mode exposed a direct, unauthenticated path around LiteLLM's
virtual-key auth, budgets and logging. Gate creation to keycloak mode, where the
gateway JWT policy guards it, and remove any route left behind by a prior
keycloak install on a switch to litellm/none. LiteLLM still reaches ai-gateway
over its own internal ClusterIP service, so the model path is unaffected.
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