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
{{ message }}
Repository navigation
LiteLLM proxy endpoints accept anonymous requests when Copilot is enabled #5420
access-control-service/src/main/scala/org/apache/texera/service/resource/AccessControlResource.scala defines two JAX-RS proxies that forward to the deployment's LiteLLM instance:
LiteLLMProxyResource at /chat/* (chat completions)
LiteLLMModelsResource at /models (model listing)
Both classes are annotated @PermitAll and contain no internal authentication / authorization beyond a GuiConfig.guiWorkflowWorkspaceCopilotEnabled feature-flag check. With the eager JwtAuthFilter from PR #5404 enabled and Copilot turned on at deploy time, any unauthenticated caller can reach /api/chat/... or /api/models and spend the deployment's LLM credits / quota.
PR #5404 left the @PermitAll in place to preserve pre-eager-filter behavior — its description explicitly defers this hardening: "Whether /chat/* should require an authenticated user is a separate hardening decision."
How to reproduce?
Bring up access-control-service (port 8081) on a build that has guiWorkflowWorkspaceCopilotEnabled = true and a live LiteLLM endpoint.
With no Authorization header:
curl -X POST http://localhost:8081/api/chat/completions -H "Content-Type: application/json" -d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'
INFO org.eclipse.jetty.server.RequestLog: [...] - "POST /api/chat/completions HTTP/1.1" 200
INFO org.apache.texera.service.resource.LiteLLMProxyResource: Proxying POST request to LiteLLM: http://localhost:9096/chat/completions
Activity
fix(auth): require REGULAR/ADMIN role on LiteLLM proxy endpoints (#5421)
fix(auth): require REGULAR/ADMIN role on LiteLLM proxy endpoints (apa…
fix(auth): require REGULAR/ADMIN role on LiteLLM proxy endpoints (apa…
fix(auth): require REGULAR/ADMIN role on LiteLLM proxy endpoints (apa…