#26151 [Bug]: Secret Manager Not called during Invoke in 1.83.7-latest-stable
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
I am using the litellm proxy server for my llm and mcp management. I have built a custom secret manager with below overridden methods. async def async_read_secret( self, secret_name: str, optional_params: Optional[dict] = None, timeout: Optional[Union[float, httpx.Timeout]] = None, ) -> Optional[str]:
and def sync_read_secret( self, secret_name: str, optional_params: Optional[dict] = None, timeout: Optional[Union[float, httpx.Timeout]] = None, ) -> Optional[str]: When I register the model using litellm api and add a secret with os.environ/<secret> then the above method are called but the same methods are not called during model invoke due to which the model is returning 401 unauthorized.
This was working properly in with docker image "litellm/litellm:v1.82.3-stable" but i encountered a source_url issue while registering mcp.
Now i am using "ghcr.io/berriai/litellm:v1.83.7-stable" which resolves the mcp registration issue but this has this invoke…