Repository navigation
LiteLLM without Traefik basic auth: only LiteLLM's own authentication - #7
Merged
Merged
Conversation
…s own login and keys guard them A second router passes /peers/<hub>/llm/* with the door secret only. The hub's /llm/keys route stays behind basic auth: it mints with the master key and authenticates no caller itself. Traefik cleans ./, ../, %2e, %6b and // before matching, so those spellings of /llm/keys land on the admin router (checked on traefik v3.6.4). health.sh now checks LiteLLM without basic auth, /llm/keys and /hub/api refused without it, and LiteLLM refusing a keyless admin call. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The user asked to remove basic auth from LiteLLM and keep only its internal authentication.
litellmrouter (priority 100) for/peers/<hub>/llm/*: door secret only, no basic auth. LiteLLM's dashboard login (UI_USERNAME/UI_PASSWORD) and its keys are the gate; the hub's passthrough never adds a credential./peers/<hub>/llm/keysstays behind basic auth. It is the hub's route, minting with the master key and authenticating no caller itself./llm/keys,/hub/api/*,/→ 401. Path tricks (./,x/../,%2e,%2e%2e,%6b,//) on/llm/keys→ 401.KEYSandkeys;xpass Traefik, but the hub's exact-match check sends them to LiteLLM without the master key./key/listand/v1/modelswithout a key.health.sh(which gates each deploy) now checks all of the above.🤖 Generated with Claude Code