How to protect the proxy server (so that only my backend can call it/has access to it)? #9727
Unanswered
SwiftedMind
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Set a master key - https://docs.litellm.ai/docs/proxy/virtual_keys#setup Set a master key, this is your Proxy Admin key - you can use this to create other keys (🚨 must start with sk-).
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I've been trying to figure out how to use LiteLLM with my backend and there is one thing I don't quite understand.
In the
config.yaml
I define all of the supported models and their api keys (injected through the environment). So now anyone with the url to my proxy server can use that model.How to I prevent that? How can I make sure that only my own backend can call the proxy? I assume there is some way to set up an auth key or something? So that my backend has to send a key with each request.
But I cannot find anything about that in the documentation. On the "All settings" page, there is a mention of "AUTH_STRATEGY", but it is not explained where or how to set and use it.
I'd appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions