mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-15 04:19:08 +00:00
The gate resolved the existing credential through hydrate_named_credential, which answers from the in-memory list and only reads the database when memory has no entry. That order is right when serving a request and wrong when deciding authorization: a pod whose copy predates an admin adding federation fields sees none of them and lets a non-admin through. In a multi-pod deployment the window is a config reload, and with store_model_in_db off it never closes Authorization now goes through its own helper that reads the in-memory entry and the row and takes the union, so the gate refuses whenever either side says the credential is server-owned. Resolution keeps memory-first, which is still correct for serving |
||
|---|---|---|
| .. | ||
| test_endpoints.py | ||