Repository navigation
fix(proxy)!: scope /health by wildcard keys and team model allowlists the way auth does - #47749
mateo-berri wants to merge 18 commits into
Conversation
|
@litellm-stampbot |
litellm-stampbot: risk lowApproved at Rules (
Judge: skipped, the rules alone decided. Pushes do not re-run this check. Comment |
kerry-berri
left a comment
There was a problem hiding this comment.
Low risk by rule and by judgement at 6803894
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
|
||
| async def _key_may_call_model(model_name: str, user_api_key_dict: UserAPIKeyAuth, llm_router: Router | None) -> bool: | ||
| try: | ||
| await can_key_call_resolved_model( |
There was a problem hiding this comment.
Medium: Alias authorization admits the wrong deployment
For a key with models=["cheap"] and aliases={"expensive":"cheap"}, this helper authorizes expensive by checking cheap, but the health endpoint retains the real expensive deployment: its holder can now use GET /health to probe that deployment with stored credentials or retrieve its cached health data, whereas inference rewrites the request to cheap and the previous health filter excluded expensive. Resolve aliases before selecting deployments and scope both live probes and cached results to the authorized target, rather than treating authorization of an alias as permission to probe the deployment it shadows.
There was a problem hiding this comment.
Fixed in 4f15b37. /health now keeps only the model group an allowed name routes to, so the shadowed deployment is hidden and refused
PR overviewThe PR updates /health deployment filtering to apply wildcard key permissions and team model allowlists in line with authentication behavior. One open issue remains in alias handling: authorization checks the allowed alias target but retains the original deployment. This lets a key holder trigger health probes using stored credentials or retrieve cached health data for a deployment outside their allowed target. No issues have been addressed yet. Open issues (1)
Fixed/addressed: 0 · PR risk: 5/10 |
|
@litereview code-review |
✅ code-review5/5 · Ready for human reviewScope: full · Full PR review. No correctness findings. I traced Checks and execution details
The only inputs that newly fail let a key probe models that auth already refuses for chat. The endpoint's own docstring calls this "same deployment visibility rule as routing", so this is an authorization fix, not a supported behavior being removed. No
Path I traced: Boundary cases I checked:
Test run:
View review · Reviewed |
A key alias, team alias, or router model_group_alias lets auth admit a requested name by checking its target, so /health also kept the deployment under the requested name, one the key's requests never reach. Keep only the served model group each admitted name dispatches to, through the same alias layers /v1/models mirrors, and let alias_map read its own read-only output.
…me for a restricted key
[Medium impact] The PR appears safe to merge, with no confirmed new blocking issues or outstanding numbered findings Summary
No new actionable issues were confirmed. The previous wildcard finding was cleared because chat follows the same early-return path Reviews (8) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
…wlists, and by id when an alias shadows the name
…lowlist now that /health no longer calls it
…like_auth # Conflicts: # litellm/proxy/health_endpoints/_health_endpoints.py
… grant, and keep access-group keys to their group's deployments
…tween checks /health now runs the same user and agent model checks chat runs, so a personal key whose owner may call only some models, or an agent key limited by its access group, no longer sees or probes other deployments. Each per-name check yields to the event loop, and ?model= reaches the wildcard deployment serving an allowed name
|
bugbot run |
…th and fail on non-access auth errors
|
bugbot run |
… record ?model= checks under the requested name
…like_auth # Conflicts: # litellm/router.py
…like_auth # Conflicts: # litellm/proxy/health_endpoints/_health_endpoints.py # tests/code_coverage_tests/router_surface_allowlist.json
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 49efac1. Configure here.
|
Superseded by #49155, which carries this branch at the same commit so it can get the one approval main requires |
/healthmatches deployments by literal name, so a wildcard key can't see a model it chats with, and a team key sees and can probe models its team forbidsThis runs chat's key, team, user, and agent model checks on each name the key could send, so
/healthmatches chatOriginal
TLDR
Problem this solves:
/healthignores wildcard key models likeopenai/*/healthignores team, user, and agent model limitsHow it solves it:
/healthwith chat's model checks, following aliases and wildcardsIntentional product change: a team key's
/healthhides deployments its team forbidsUser Flow
Before: a wildcard key's
/healthhides a model it can chat with, and a team key probes models its team forbids"models": ["openai/*"], and a key with no models on a team that allows onlygpt-5.4-miniPOST https://litellm-domain/v1/chat/completionswithopenai/gpt-5.4-nanogets a 200GET https://litellm-domain/healthlists only theopenai/*deployment, and?model_id=<the nano deployment>gets a 403openai/gpt-5.4-nanogets a 403team_model_access_deniedGET https://litellm-domain/healthlists every deployment, and?model_id=<the forbidden deployment>makes a billed provider callAfter:
/healthshows each key only what it can callGET https://litellm-domain/healthlists the nano deployment, and?model_id=<that deployment>probes itGET https://litellm-domain/healthlists onlygpt-5.4-mini, and?model_id=<the forbidden deployment>gets a 403 with no provider callPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or moreDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Each leg ran two 2-worker proxies (
$A,$B) on shared Postgres and Redis. Lines show the HTTP status and model ids, withIDS='.error // .detail // {healthy: [.healthy_endpoints[].model_id], unhealthy: [.unhealthy_endpoints[].model_id]}'Config and keys
The background pair adds
background_health_checks: trueandhealth_check_interval: 20. Teams come fromPOST /team/newwith{"models":["gpt-5.4-mini"]},{"models":["claude-haiku-5-5"],"model_aliases":{"claude-haiku-5-5":"gpt-5.4-mini"}},{"models":["openai/gpt-5.6"]},{"models":["legacy-mini"]},{"models":["my-mini"],"model_aliases":{"my-mini":"gpt-5.4-mini"}}, and{"models":["openai/gpt-5.4-nano","gpt-4-retired"]}. TEAM_KEY, TEAM_ALIAS_KEY, WILD_TEAM_KEY, LEGACY_TEAM_KEY, OWN_ALIAS_TEAM_KEY, and STALE_TEAM_KEY arePOST /key/generatewith{"team_id":"<that team>"}(TEAM_KEY also sends"models":[]). The other keys send{"models":["openai/*"]}(WILDCARD_KEY),{"models":["haiku-group"]}(GROUP_KEY),{"models":["premium"]}(PREMIUM_KEY),{"models":["openai/gpt-5.4-nano","gpt-4-retired"]}(STALE_KEY),{"models":["gpt-5.4-mini"],"aliases":{"claude-haiku-5-5":"gpt-5.4-mini"}}(KEY_ALIAS_KEY),{"models":["gpt-5.4-mini"],"router_settings":{"model_group_alias":{"claude-haiku-5-5":"gpt-5.4-mini"}}}(ROUTER_ALIAS_KEY),{"models":["gpt-5.4-mini","openai/gpt-5.4-nano"],"router_settings":{"model_group_alias":{"gpt-5.4-mini":"claude-haiku-5-5"}}}(FORBIDDEN_ALIAS_KEY), and{"models":[],"router_settings":{"model_group_alias":{"claude-haiku-5-5":"gpt-5.4-mini"}}}(OPEN_ALIAS_KEY). OWNER_KEY belongs to a user made byPOST /user/newwith{"models":["gpt-5.4-mini"]}, and OWNER_WILD_KEY to one with{"models":["openai/gpt-5.6"]}. AGENT_KEY belongs to an agent made byPOST /v1/agentswhose access group, fromPOST /v1/access_group, holds onlygpt-5.4-mini. Each/healthcommand prints its HTTP status, thenjqlists themodel_idof every healthy and unhealthy endpoint, or the errorglobal-miniopenai-wildcardglobal-mini?model=an alias nameglobal-miniglobal-mini, nano 403openai-wildcardglobal-mini, nano 403?model=a wildcard nameopenai-wildcardCases that answer the same on both legs
global-minianthropic-haikuTeam key
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'Before and after
curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $TEAM_KEY"; jq -c "$IDS" h.jsonBefore (ffcc4f7)
After (49efac1)
curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $TEAM_KEY"; jq -c "$IDS" h.jsonBefore (ffcc4f7)
After (49efac1)
Every other case
Before (ffcc4f7)
Team key, other steps
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'Team allows a wildcard-only name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $WILD_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.6","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $WILD_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=openai-wildcard" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=openai/gpt-5.6" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsonTeam allows a router alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $LEGACY_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"legacy-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $LEGACY_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=legacy-mini" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsonTeam allows its own alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"my-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=global-mini" -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY"; jq -c "$IDS" h.jsonKey alias to a forbidden model
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"legacy-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY"; jq -c "$IDS" h.jsonUnrestricted key whose alias hides a deployment
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OPEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OPEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"anthropic-haiku","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OPEN_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $OPEN_ALIAS_KEY"; jq -c "$IDS" h.jsonWildcard key
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $WILDCARD_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=claude-haiku-5-5" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsonAccess-group key
curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsonAdmin key
curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $MASTER_KEY"; jq -c "$IDS" h.jsonKey alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $KEY_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=claude-haiku-5-5" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsonTeam alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $TEAM_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=anthropic-haiku" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=claude-haiku-5-5" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsonRouter alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $ROUTER_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=claude-haiku-5-5" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsonKey allows a retired name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $STALE_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-4-retired","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $STALE_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=global-mini" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=gpt-4-retired" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsonTeam allows a retired name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $STALE_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-4-retired","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $STALE_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $STALE_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $STALE_TEAM_KEY"; jq -c "$IDS" h.jsonAccess-group key with a fallback
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $GROUP_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsonAccess group holds one of two
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=shared-nano-standard" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=shared-nano" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsonPersonal key whose owner may call only gpt-5.4-mini
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWNER_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWNER_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWNER_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $OWNER_KEY"; jq -c "$IDS" h.jsonPersonal key whose owner may call only a wildcard-served name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWNER_WILD_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.6","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWNER_WILD_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWNER_WILD_KEY"; jq -c "$IDS" h.jsonAgent key whose access group holds only gpt-5.4-mini
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $AGENT_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $AGENT_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $AGENT_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $AGENT_KEY"; jq -c "$IDS" h.jsonBackground health checks
Both legs' outputs are in this gist
After (49efac1)
Team key, other steps
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'Team allows a wildcard-only name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $WILD_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.6","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $WILD_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=openai-wildcard" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=openai/gpt-5.6" -H "Authorization: Bearer $WILD_TEAM_KEY"; jq -c "$IDS" h.jsonTeam allows a router alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $LEGACY_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"legacy-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $LEGACY_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=legacy-mini" -H "Authorization: Bearer $LEGACY_TEAM_KEY"; jq -c "$IDS" h.jsonTeam allows its own alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"my-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=global-mini" -H "Authorization: Bearer $OWN_ALIAS_TEAM_KEY"; jq -c "$IDS" h.jsonKey alias to a forbidden model
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"legacy-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $FORBIDDEN_ALIAS_KEY"; jq -c "$IDS" h.jsonUnrestricted key whose alias hides a deployment
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OPEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OPEN_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"anthropic-haiku","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OPEN_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $OPEN_ALIAS_KEY"; jq -c "$IDS" h.jsonWildcard key
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $WILDCARD_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=claude-haiku-5-5" -H "Authorization: Bearer $WILDCARD_KEY"; jq -c "$IDS" h.jsonAccess-group key
curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsonAdmin key
curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $MASTER_KEY"; jq -c "$IDS" h.jsonKey alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $KEY_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=claude-haiku-5-5" -H "Authorization: Bearer $KEY_ALIAS_KEY"; jq -c "$IDS" h.jsonTeam alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $TEAM_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=anthropic-haiku" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model=claude-haiku-5-5" -H "Authorization: Bearer $TEAM_ALIAS_KEY"; jq -c "$IDS" h.jsonRouter alias
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $ROUTER_ALIAS_KEY" -H 'Content-Type: application/json' -d '{"model":"claude-haiku-5-5","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=anthropic-haiku" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=claude-haiku-5-5" -H "Authorization: Bearer $ROUTER_ALIAS_KEY"; jq -c "$IDS" h.jsonKey allows a retired name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $STALE_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-4-retired","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $STALE_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=global-mini" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=gpt-4-retired" -H "Authorization: Bearer $STALE_KEY"; jq -c "$IDS" h.jsonTeam allows a retired name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $STALE_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-4-retired","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $STALE_TEAM_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $STALE_TEAM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $STALE_TEAM_KEY"; jq -c "$IDS" h.jsonAccess-group key with a fallback
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $GROUP_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=global-mini" -H "Authorization: Bearer $GROUP_KEY"; jq -c "$IDS" h.jsonAccess group holds one of two
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $PREMIUM_KEY" -H 'Content-Type: application/json' -d '{"model":"shared-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=shared-nano-standard" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model=shared-nano" -H "Authorization: Bearer $PREMIUM_KEY"; jq -c "$IDS" h.jsonPersonal key whose owner may call only gpt-5.4-mini
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWNER_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWNER_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWNER_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$A/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $OWNER_KEY"; jq -c "$IDS" h.jsonPersonal key whose owner may call only a wildcard-served name
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $OWNER_WILD_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.6","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $OWNER_WILD_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$B/health" -H "Authorization: Bearer $OWNER_WILD_KEY"; jq -c "$IDS" h.jsonAgent key whose access group holds only gpt-5.4-mini
curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $B/chat/completions -H "Authorization: Bearer $AGENT_KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o /dev/null -w 'HTTP %{http_code} x-litellm-model-id: %header{x-litellm-model-id}\n' $A/chat/completions -H "Authorization: Bearer $AGENT_KEY" -H 'Content-Type: application/json' -d '{"model":"openai/gpt-5.4-nano","messages":[{"role":"user","content":"say ok"}],"max_completion_tokens":16}'curl -s -o h.json -w 'HTTP %{http_code} ' "$A/health" -H "Authorization: Bearer $AGENT_KEY"; jq -c "$IDS" h.jsoncurl -s -o h.json -w 'HTTP %{http_code} ' "$B/health?model_id=openai-prefixed-nano" -H "Authorization: Bearer $AGENT_KEY"; jq -c "$IDS" h.jsonBackground health checks
Both legs' outputs are in this gist
Observed during the run
legacy-minireachesglobal-minipast a key aliasopenai/*key chats with baregpt-5.4-mini, so/healthlists it/live-pr-risk at 49efac1
Every cell ran on both legs against real proxies, Postgres, Redis, and real OpenAI and Anthropic calls, with outputs above and in the gist
Breaking
x-litellm-user-idgot 500 from/healthat c6f1dce, where chat answers 401. It gets 401 now, fixed in 5166ba9x-litellm-team-idnow gets 404 from/healthwhere base answered 200. Chat answers 404 the same way, which is the auth parity mateo-berri asked for in the ticket this PR resolvesBackward incompatible
?model=check was saved under the served group's name at c6f1dce, which moved/health/historyand/health/latest. It is saved under the requested name again, fixed in 5166ba9/health, the intended change mateo-berri asked for in the ticket/healthadmits more?model=values and probes every deployment its pattern reaches, as the same ticket from mateo-berri asksalias_mapnow takes any read-only mapping. Every load path still hands it a dict, so no caller sees a difference, kept by mateo-berri as a Low caveat/healthdocs page still describes the old scoping. A litellm-docs update is filed as a follow-up by mateo-berriRegression risk
/healthnow runs chat's database lookups, so a database fault after key auth fails the call the way it fails chat. A live outage cell failed at key auth on both legs, with no head-only 500/healthuses are main's public registry API since refactor(router): move router callers onto the entry points and invert the proxy imports #48847, so this PR no longer changes the routerDependency graph
GET /healthGET /healthGET /healthGET /health?model=targetGET /health/health/history/health/latest/public/model_hub?model_id=/chat/completionsGET /v1/models/v1/models/{id}GET /healthGET /healthNot verified
pg_stat_statementsType
🐛 Bug Fix
✅ Test
Caveats (if any)
Medium
/healthcall costs about 0.2 s of CPU at 2,000 deployments, or 1.4 s when a team lists all 2,000?model=still answers 403 for a name only a router alias serves, as before/healthstill skips tag, region, and pause filters, as beforeLow
/healthleaves out thedefault_fallbackstarget, since listing it lets any key holding a retired name probe the catch-all, and a 403 breaks monitors/healthnow makes a billed probe of every deployment its pattern reaches?model=answers 200 for some names the key can't chat with, but probes only reachable deploymentshealth_check_modelalias_maptakes any read-only mappingunitcheck failed 6 otel tests at 49efac1, as on main until test(otel): fix main's Langfuse destination tests after the stdout opt-in change #49129 fixed themrust-testfails as it does on mainFinal Attestation
Bugbot summary