The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix - Ensure Helm chart auto generated master keys follow sk-xxxx format (#13871)
Ishaan Jafff498cf4901e1
diff --git a/deploy/charts/litellm-helm/README.md b/deploy/charts/litellm-helm/README.mdindex cef2b8d162d..73b722b64c6 100644--- a/deploy/charts/litellm-helm/README.md+++ b/deploy/charts/litellm-helm/README.md@@ -24,7 +24,7 @@ If `db.useStackgresOperator` is used (not yet implemented):| `replicaCount` | The number of LiteLLM Proxy pods to be deployed | `1` || `masterkeySecretName` | The name of the Kubernetes Secret that contains the Master API Key for LiteLLM. If not specified, use the generated secret name. | N/A || `masterkeySecretKey` | The key within the Kubernetes Secret that contains the Master API Key for LiteLLM. If not specified, use `masterkey` as the key. | N/A |-| `masterkey` | The Master API Key for LiteLLM. If not specified, a random key is generated. | N/A |+| `masterkey` | The Master API Key for LiteLLM. If not specified, a random key in the `sk-...` format is generated. | N/A || `environmentSecrets` | An optional array of Secret object names. The keys and values in these secrets will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | `[]` || `environmentConfigMaps` | An optional array of ConfigMap object names. The keys and values in these configmaps will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | `[]` || `image.repository` | LiteLLM Proxy image repository | `ghcr.io/berriai/litellm` |@@ -135,7 +135,7 @@ service, the **Proxy Endpoint** should be set to `http://<RELEASE>-litellm:4000`The **Proxy Key** is the value specified for `masterkey` or, if a `masterkey`was not provided to the helm command line, the `masterkey` is a randomly-generated string stored in the `<RELEASE>-litellm-masterkey` Kubernetes Secret.+generated string in the `sk-...` format stored in the `<RELEASE>-litellm-masterkey` Kubernetes Secret.```bashkubectl -n litellm get secret <RELEASE>-litellm-masterkey -o jsonpath="{.data.masterkey}"diff --git a/deploy/charts/litellm-helm/templates/secret-masterkey.yaml b/deploy/charts/litellm-helm/templates/secret-masterkey.yamlindex 5632957dc05..7c8560cc2cc 100644--- a/deploy/charts/litellm-helm/templates/secret-masterkey.yaml+++ b/deploy/charts/litellm-helm/templates/secret-masterkey.yaml@@ -1,5 +1,5 @@{{- if not .Values.masterkeySecretName }}-{{ $masterkey := (.Values.masterkey | default (randAlphaNum 17)) }}+{{ $masterkey := (.Values.masterkey | default (printf "sk-%s" (randAlphaNum 18))) }}apiVersion: v1kind: Secretmetadata:diff --git a/deploy/charts/litellm-helm/tests/masterkey-secret_tests.yaml b/deploy/charts/litellm-helm/tests/masterkey-secret_tests.yamlindex eb1d3c3967f..bbbade9d802 100644--- a/deploy/charts/litellm-helm/tests/masterkey-secret_tests.yaml+++ b/deploy/charts/litellm-helm/tests/masterkey-secret_tests.yaml@@ -2,13 +2,19 @@ suite: test masterkey secrettemplates:- secret-masterkey.yamltests:- - it: should create a secret if masterkeySecretName is not set+ - it: should create a secret if masterkeySecretName is not set. should start with sk-xxxx (base64 encoded as c2st*)template: secret-masterkey.yamlset:masterkeySecretName: ""asserts:- isKind:of: Secret+ - matchRegex:+ path: data.masterkey+ pattern: ^c2st+ # Note: The masterkey is generated as "sk-<18-random-chars>" in plain text,+ # but stored as base64 encoded in Kubernetes secret (requirement).+ # "sk-" base64 encodes to "c2st", so we check for "^c2st" pattern.- it: should not create a secret if masterkeySecretName is settemplate: secret-masterkey.yamlset:diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex e39f1c1964f..3a1fe800151 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -15253,36 +15253,6 @@"mode": "chat","supports_tool_choice": true},- "deepinfra/Qwen/Qwen3-Reranker-8B": {- "max_tokens": 32768,- "max_input_tokens": 32768,- "max_output_tokens": 32768,- "input_cost_per_token": 5e-8,- "output_cost_per_token": 5e-8,- "litellm_provider": "deepinfra",- "mode": "rerank",- "supports_tool_choice": true- },- "deepinfra/Qwen/Qwen3-Reranker-4B": {- "max_tokens": 32768,- "max_input_tokens": 32768,- "max_output_tokens": 32768,- "input_cost_per_token": 2.5e-8,- "output_cost_per_token": 2.5e-8,- "litellm_provider": "deepinfra",- "mode": "rerank",- "supports_tool_choice": true- },- "deepinfra/Qwen/Qwen3-Reranker-0.6B": {- "max_tokens": 32768,- "max_input_tokens": 32768,- "max_output_tokens": 32768,- "input_cost_per_token": 1e-8,- "output_cost_per_token": 1e-8,- "litellm_provider": "deepinfra",- "mode": "rerank",- "supports_tool_choice": true- },"perplexity/codellama-34b-instruct": {"max_tokens": 16384,"max_input_tokens": 16384,