Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

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.mdx
index 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.
- ![Select LiteLLM API Key](/images/secret-rotations-v2/litellm-api-key/select-litellm-api-key.png)
+ ![Select LiteLLM API Key](/images/secret-rotations-v2/litellm/step-1.png)
3. Configure the rotation behavior, then click **Next**.
- ![Rotation Configuration](/images/secret-rotations-v2/litellm-api-key/configuration.png)
+ ![Rotation Configuration](/images/secret-rotations-v2/litellm/step-2.png)
- - **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**.
- ![Rotation Parameters](/images/secret-rotations-v2/litellm-api-key/parameters.png)
+ ![Rotation Parameters](/images/secret-rotations-v2/litellm/step-3.png)
**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**.
- ![Rotation Secrets Mapping](/images/secret-rotations-v2/litellm-api-key/secrets-mapping.png)
+ ![Rotation Secrets Mapping](/images/secret-rotations-v2/litellm/step-4.png)
- **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**.
- ![Rotation Details](/images/secret-rotations-v2/litellm-api-key/details.png)
+ ![Rotation Details](/images/secret-rotations-v2/litellm/step-5.png)
- **Name** – A slug-friendly name for this rotation configuration.
- **Description** (optional) – Notes about this rotation.
7. Review your configuration, then click **Create Secret Rotation**.
- ![Rotation Review](/images/secret-rotations-v2/litellm-api-key/review.png)
+ ![Rotation Review](/images/secret-rotations-v2/litellm/step-6.png)
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.
- ![Rotation Created](/images/secret-rotations-v2/litellm-api-key/created.png)
+ ![Rotation Created](/images/secret-rotations-v2/litellm/step-7.png)
</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.png
new file mode 100644
index 0000000000..5281cec737
Binary files /dev/null and b/docs/images/app-connections/litellm/step-1.png differ
diff --git a/docs/images/app-connections/litellm/step-2.png b/docs/images/app-connections/litellm/step-2.png
new file mode 100644
index 0000000000..be9d4158a0
Binary files /dev/null and b/docs/images/app-connections/litellm/step-2.png differ
diff --git a/docs/images/app-connections/litellm/step-3.png b/docs/images/app-connections/litellm/step-3.png
new file mode 100644
index 0000000000..4b77330a90
Binary files /dev/null and b/docs/images/app-connections/litellm/step-3.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-1.png b/docs/images/secret-rotations-v2/litellm/step-1.png
new file mode 100644
index 0000000000..a4e8bad15c
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-1.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-2.png b/docs/images/secret-rotations-v2/litellm/step-2.png
new file mode 100644
index 0000000000..5cfa402206
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-2.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-3.png b/docs/images/secret-rotations-v2/litellm/step-3.png
new file mode 100644
index 0000000000..950f239231
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-3.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-4.png b/docs/images/secret-rotations-v2/litellm/step-4.png
new file mode 100644
index 0000000000..60dbf554c8
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-4.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-5.png b/docs/images/secret-rotations-v2/litellm/step-5.png
new file mode 100644
index 0000000000..310b6be303
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-5.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-6.png b/docs/images/secret-rotations-v2/litellm/step-6.png
new file mode 100644
index 0000000000..effce46a1f
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-6.png differ
diff --git a/docs/images/secret-rotations-v2/litellm/step-7.png b/docs/images/secret-rotations-v2/litellm/step-7.png
new file mode 100644
index 0000000000..1c47c307fc
Binary files /dev/null and b/docs/images/secret-rotations-v2/litellm/step-7.png differ
diff --git a/docs/integrations/app-connections/litellm.mdx b/docs/integrations/app-connections/litellm.mdx
index 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).
- ![App Connections Tab](/images/app-connections/general/add-connection.png)
+ ![App Connections Tab](/images/app-connections/general/revamped-app-connection-tab.png)
</Step>
<Step title="Select LiteLLM Connection">
Click **Add Connection** and choose **LiteLLM** from the list of available connections.
- ![Select LiteLLM Connection](/images/app-connections/litellm/litellm-app-connection-option.png)
+ ![Select LiteLLM Connection](/images/app-connections/litellm/step-1.png)
</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)
- ![LiteLLM Connection Form](/images/app-connections/litellm/litellm-app-connection-form.png)
+ ![LiteLLM Connection Form](/images/app-connections/litellm/step-2.png)
</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).
- ![LiteLLM Connection Created](/images/app-connections/litellm/litellm-app-connection-created.png)
+ ![LiteLLM Connection Created](/images/app-connections/litellm/step-3.png)
</Step>
</Steps>
</Tab>