Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs: add screenshot
adilson7aae2da42e4f
diff --git a/docs/documentation/platform/secret-rotation/litellm-api-key.mdx b/docs/documentation/platform/secret-rotation/litellm-api-key.mdxindex 424c538fd8..27c1a7c1a5 100644--- a/docs/documentation/platform/secret-rotation/litellm-api-key.mdx+++ b/docs/documentation/platform/secret-rotation/litellm-api-key.mdx@@ -23,20 +23,21 @@ description: "Learn how to automatically rotate LiteLLM API keys."2. Select the **LiteLLM API Key** option.- + 3. Configure the rotation behavior, then click **Next**.- + - - **LiteLLM Connection** – The connection (with a management-capable API key) that will create and delete API keys during rotation.+ - **Environment** – The environment where the rotated secret will be stored.+ - **LiteLLM Connection** – The connection that will create and delete API keys during rotation.- **Rotation Interval** – The interval, in days, after which a rotation is triggered.- **Rotate At** – The local time of day when rotation runs once the interval has elapsed.- **Auto-Rotation Enabled** – Whether to rotate automatically on the interval. Turn off to rotate only manually or pause rotation.4. Set the LiteLLM API key parameters, then click **Next**. The parameters are split across two tabs, **General** and **Advanced**.- + **General**@@ -51,24 +52,24 @@ description: "Learn how to automatically rotate LiteLLM API keys."5. Specify the secret name that the rotated API key will be mapped to. Then click **Next**.- + - **API Key** – The name of the secret in Infisical where the rotated API key value will be stored.6. Give your rotation a name and description (optional). Then click **Next**.- + - **Name** – A slug-friendly name for this rotation configuration.- **Description** (optional) – Notes about this rotation.7. Review your configuration, then click **Create Secret Rotation**.- + 8. Your **LiteLLM API Key** rotation is created. The current API key is available as a secret at the mapped path. Rotations will create a new key, switch the active secret to it, then revoke the previous key for zero-downtime rotation.- + </Tab><Tab title="API">To create a LiteLLM API Key rotation, call the [Create LiteLLM API Key Rotation](/api-reference/endpoints/secret-rotations/litellm-api-key/create) API endpoint.diff --git a/docs/images/app-connections/litellm/step-1.png b/docs/images/app-connections/litellm/step-1.pngnew file mode 100644index 0000000000..5281cec737Binary files /dev/null and b/docs/images/app-connections/litellm/step-1.png differdiff --git a/docs/images/app-connections/litellm/step-2.png b/docs/images/app-connections/litellm/step-2.pngnew file mode 100644index 0000000000..be9d4158a0Binary files /dev/null and b/docs/images/app-connections/litellm/step-2.png differdiff --git a/docs/images/app-connections/litellm/step-3.png b/docs/images/app-connections/litellm/step-3.pngnew file mode 100644index 0000000000..4b77330a90Binary files /dev/null and b/docs/images/app-connections/litellm/step-3.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-1.png b/docs/images/secret-rotations-v2/litellm/step-1.pngnew file mode 100644index 0000000000..a4e8bad15cBinary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-1.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-2.png b/docs/images/secret-rotations-v2/litellm/step-2.pngnew file mode 100644index 0000000000..5cfa402206Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-2.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-3.png b/docs/images/secret-rotations-v2/litellm/step-3.pngnew file mode 100644index 0000000000..950f239231Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-3.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-4.png b/docs/images/secret-rotations-v2/litellm/step-4.pngnew file mode 100644index 0000000000..60dbf554c8Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-4.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-5.png b/docs/images/secret-rotations-v2/litellm/step-5.pngnew file mode 100644index 0000000000..310b6be303Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-5.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-6.png b/docs/images/secret-rotations-v2/litellm/step-6.pngnew file mode 100644index 0000000000..effce46a1fBinary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-6.png differdiff --git a/docs/images/secret-rotations-v2/litellm/step-7.png b/docs/images/secret-rotations-v2/litellm/step-7.pngnew file mode 100644index 0000000000..1c47c307fcBinary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-7.png differdiff --git a/docs/integrations/app-connections/litellm.mdx b/docs/integrations/app-connections/litellm.mdxindex 0ee17968f3..7e635e0706 100644--- a/docs/integrations/app-connections/litellm.mdx+++ b/docs/integrations/app-connections/litellm.mdx@@ -19,15 +19,63 @@ description: "Learn how to configure a LiteLLM connection for Infisical."<Tabs><Tab title="Infisical UI"><Steps>+ <Step title="Create a user and issue a scoped key in LiteLLM">+ We recommend creating a dedicated user and issuing a scoped key for Infisical to manage your API keys, rather than using the master key directly. This restricts Infisical's access to only the routes it needs.++ First, create a user with the `proxy_admin` role. This role is required so the key can delete keys it did not issue:++ ```bash Create user+ curl --request POST \+ --url <LITELLM_HOST>/user/new \+ --header 'Authorization: Bearer <master-key>' \+ --header 'Content-Type: application/json' \+ --data '{+ "user_id": "infisical-user-rotation",+ "user_role": "proxy_admin",+ "user_alias": "infisical-proxy-admin-client"+ }'+ ```++ Then issue a scoped key for that user:++ ```bash Issue scoped key+ curl --request POST \+ --url <LITELLM_HOST>/key/generate \+ --header 'Authorization: Bearer <master-key>' \+ --header 'Content-Type: application/json' \+ --data '{+ "key_alias": "admin-key-rotation",+ "user_id": "infisical-user-rotation",+ "allowed_routes": [+ "/key/generate",+ "/key/delete",+ "/key/info",+ "/health/readiness",+ "/models",+ "/v2/team/list",+ "/user/list"+ ]+ }'+ ```++ <Note>++ The `/models`, `/v2/team/list`, and `/user/list` routes are optional. They are only used to populate the user, team, and model dropdowns in the Infisical UI when configuring a rotation.+ </Note>++++ Use the generated key as your **API Key** and your instance address as the **Instance URL** when creating the connection below.+ </Step><Step title="Navigate to App Connections">In your Infisical dashboard, go to **Organization Settings** → **App Connections** (or the **Integrations** → **App Connections** tab in your project).- + </Step><Step title="Select LiteLLM Connection">Click **Add Connection** and choose **LiteLLM** from the list of available connections.- + </Step><Step title="Fill out Connection Form">Complete the form with:@@ -36,12 +84,12 @@ description: "Learn how to configure a LiteLLM connection for Infisical."- Your **LiteLLM Instance URL** (e.g. `https://litellm.example.com`)- Your **LiteLLM API Key** (a management-capable key, as described above)- + </Step><Step title="Connection Created">- After clicking **Create**, Infisical validates the credentials against your LiteLLM instance. Your **LiteLLM Connection** is then ready to use for [LiteLLM API Key Secret Rotation](/documentation/platform/secret-rotation/litellm-api-key).+ After clicking **Connect to LiteLLM**, Infisical validates the credentials against your LiteLLM instance. Your **LiteLLM Connection** is then ready to use for [LiteLLM API Key Secret Rotation](/documentation/platform/secret-rotation/litellm-api-key).- + </Step></Steps></Tab>