HUB
Sign inSign up

bbkudk/litellm-secure

By bbkudk

•Updated 6 days ago

Image
0

4.1K

bbkudk/litellm-secure repository overview

This is a non-root image running a wrapped LiteLLM Gateway in nono.sh sandbox. When mapping API keys, use the SBX_REAL_ prefix (for example, SBX_REAL_OPENAI_API_KEY instead of OPENAI_API_KEY). This ensures LiteLLM never has access to your real API keys, even if it is compromised.

It can run in two modes:

⁠Direct

LiteLLM and Nono are packaged together in one container. The container holds real keys, but the LiteLLM process only uses phantom keys. If someone steals Phantom keys, they are useless. However, if a hacker can manage to escape sandbox (which is unlikely but may be possible), they will be able to access the keys since they are mapped to the same container.

⁠Sidecar

Nono has real API keys and runs alongside LiteLLM in a separate container. LiteLLM container uses an API key to talk to Nono, which acts as a proxy. This is more secure because the LiteLLM container never holds the actual LLM keys. The hacker can't steal the LLM API keys from the LiteLLM container.

However for security reasons we recommend rotating NONO_PROXY_PASS.

Tag summary

Content type

Image

Digest

sha256:21ba8ab4f…

Size

630.2 MB

Last updated

6 days ago

docker pull bbkudk/litellm-secure:v1.108.15-v0.82.0