Skip to content

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

docs(agent-vault): document variables on the Variables page

Scott Wilson28efd3c2e015
diff --git a/docs/api-reference/endpoints/agent-vault-variables/create.mdx b/docs/api-reference/endpoints/agent-vault-variables/create.mdx
index 343d5651ff..dbed8701f1 100644
--- a/docs/api-reference/endpoints/agent-vault-variables/create.mdx
+++ b/docs/api-reference/endpoints/agent-vault-variables/create.mdx
@@ -1,4 +1,4 @@
---
title: "Create variable"
-openapi: "POST /api/v1/agent-vault/access-bundles/{accessBundleId}/variables"
+openapi: "POST /api/v1/agent-vault/variables"
---
diff --git a/docs/api-reference/endpoints/agent-vault-variables/delete.mdx b/docs/api-reference/endpoints/agent-vault-variables/delete.mdx
index 9f2fc9372b..8e8983153c 100644
--- a/docs/api-reference/endpoints/agent-vault-variables/delete.mdx
+++ b/docs/api-reference/endpoints/agent-vault-variables/delete.mdx
@@ -1,4 +1,4 @@
---
title: "Delete variable"
-openapi: "DELETE /api/v1/agent-vault/access-bundles/{accessBundleId}/variables/{variableId}"
+openapi: "DELETE /api/v1/agent-vault/variables/{variableId}"
---
diff --git a/docs/api-reference/endpoints/agent-vault-variables/get-value.mdx b/docs/api-reference/endpoints/agent-vault-variables/get-value.mdx
index 50edba8d35..093e0bd72c 100644
--- a/docs/api-reference/endpoints/agent-vault-variables/get-value.mdx
+++ b/docs/api-reference/endpoints/agent-vault-variables/get-value.mdx
@@ -1,4 +1,4 @@
---
title: "Get variable value"
-openapi: "GET /api/v1/agent-vault/access-bundles/{accessBundleId}/variables/{variableId}/value"
+openapi: "GET /api/v1/agent-vault/variables/{variableId}/value"
---
diff --git a/docs/api-reference/endpoints/agent-vault-variables/list.mdx b/docs/api-reference/endpoints/agent-vault-variables/list.mdx
index be001f38f2..7f915f076f 100644
--- a/docs/api-reference/endpoints/agent-vault-variables/list.mdx
+++ b/docs/api-reference/endpoints/agent-vault-variables/list.mdx
@@ -1,4 +1,4 @@
---
title: "List variables"
-openapi: "GET /api/v1/agent-vault/access-bundles/{accessBundleId}/variables"
+openapi: "GET /api/v1/agent-vault/variables"
---
diff --git a/docs/api-reference/endpoints/agent-vault-variables/update.mdx b/docs/api-reference/endpoints/agent-vault-variables/update.mdx
index 05631ecd65..3f2416f91f 100644
--- a/docs/api-reference/endpoints/agent-vault-variables/update.mdx
+++ b/docs/api-reference/endpoints/agent-vault-variables/update.mdx
@@ -1,4 +1,4 @@
---
title: "Update variable"
-openapi: "PATCH /api/v1/agent-vault/access-bundles/{accessBundleId}/variables/{variableId}"
+openapi: "PATCH /api/v1/agent-vault/variables/{variableId}"
---
diff --git a/docs/documentation/platform/agent-vault/overview.mdx b/docs/documentation/platform/agent-vault/overview.mdx
index bbbc41a7ce..2bf91a8d42 100644
--- a/docs/documentation/platform/agent-vault/overview.mdx
+++ b/docs/documentation/platform/agent-vault/overview.mdx
@@ -48,7 +48,7 @@ Set up Agent Vault for the agent you use, or for an agent you wrote yourself.
External APIs that an AI agent can securely call during a session.
</Card>
<Card title="Variables" icon="braces" href="/documentation/platform/agent-vault/variables">
- Values you store once in an access bundle and use in any of its services.
+ Values you store once and use in any service in Agent Vault.
</Card>
<Card title="Sessions" icon="monitor" href="/documentation/platform/agent-vault/sessions">
Time-bound grants that let AI agents access services without holding real credentials.
diff --git a/docs/documentation/platform/agent-vault/variables.mdx b/docs/documentation/platform/agent-vault/variables.mdx
index 565a7f6fe9..e95ea17cbb 100644
--- a/docs/documentation/platform/agent-vault/variables.mdx
+++ b/docs/documentation/platform/agent-vault/variables.mdx
@@ -1,31 +1,31 @@
---
title: "Variables"
-description: "Values you store once in an access bundle and use in any of its services."
+description: "Values you store once and use in any service in Agent Vault."
---
-A variable is a value that you can reuse across all the [services](/documentation/platform/agent-vault/services) within an [access bundle](/documentation/platform/agent-vault/access-bundles). You define the variable once and give it a key, such as `GITHUB_TOKEN`. Then, any service in the access bundle can use the variable by referencing the key within double braces: `{{GITHUB_TOKEN}}`.
+A variable is a value that you can use in any [service](/documentation/platform/agent-vault/services) in Agent Vault, whichever [access bundle](/documentation/platform/agent-vault/access-bundles) the service is in. You define the variable once and give it a key, such as `GITHUB_TOKEN`. Then, any service can use the variable by referencing the key within double braces: `{{GITHUB_TOKEN}}`.
When an agent sends a request, the [proxy](/documentation/platform/agent-vault/proxies) replaces each reference with the variable's value.
<Info>
- Only [Agent Vault admins](/documentation/platform/agent-vault/access-control#product-membership) can view and update variables.
+ Only [Agent Vault admins](/documentation/platform/agent-vault/access-control#product-membership) can view and update variables. If you're a member, **Variables** doesn't appear in the Agent Vault sidebar.
</Info>
## Add a variable
-To add a variable to an access bundle:
+To add a variable:
<Steps>
<Step>
- In Agent Vault, go to **Access Bundles** and select your access bundle.
+ In Agent Vault, go to **Variables**.
<Frame>
- <img src="/images/platform/agent-vault/access-bundle-variables-empty.png" alt="The on-call access bundle's page, with its Services list and an empty Variables card with an Add Variable button" />
+ <img src="/images/platform/agent-vault/variables-empty.png" alt="The Variables page with no variables and an Add Variable button" />
</Frame>
</Step>
<Step>
- Under **Variables**, select **Add Variable**.
+ Select **Add Variable**.
<Frame>
<img src="/images/platform/agent-vault/variable-create.png" alt="The Add Variable dialog with GITHUB_TOKEN as the key and a hidden value" />
@@ -33,25 +33,25 @@ To add a variable to an access bundle:
</Step>
<Step>
- Enter a **Key** and a **Value**. The value is hidden once you save it. To view it later, select the eye icon next to it in the **Variables** list. Each time someone views or copies a value, Infisical records it in the audit log.
+ Enter a **Key** and a **Value**. The value is hidden once you save it. To view the value later, select the eye icon next to it. Each time someone views or copies a value, Infisical adds an event to the audit log.
<Note>
- A key must start with a letter, use only uppercase letters, numbers, and underscores, and can be up to 64 characters long. Two variables in the same access bundle can't have the same key.
+ A key must start with a letter, use only uppercase letters, numbers, and underscores, and can be up to 64 characters long. No two variables can have the same key.
</Note>
</Step>
<Step>
- Select **Add Variable**. The variable appears in the **Variables** list.
+ Select **Add Variable**. The variable appears in the list on the **Variables** page.
<Frame>
- <img src="/images/platform/agent-vault/access-bundle-variables.png" alt="The on-call access bundle's Variables list with GITHUB_TOKEN, its value hidden, and Unused in the Used By column" />
+ <img src="/images/platform/agent-vault/variables.png" alt="The Variables page listing seven variables with hidden values. The Used By column shows access bundle badges, such as code-review, on-call, and +1 more for GITHUB_TOKEN, with a tooltip listing the github service in code-review. SENTRY_AUTH_TOKEN shows Unused." />
</Frame>
</Step>
</Steps>
<Note>
-An access bundle can hold up to 100 variables.
+Agent Vault can hold up to 500 variables.
</Note>
## Use a variable in a service
@@ -70,7 +70,7 @@ To use a variable:
[Add a service](/documentation/platform/agent-vault/services#add-a-service), or open an existing service's actions menu and select **Edit**. Then go to the **Credential** step.
</Step>
<Step>
- In a field that accepts variables, type `{{`. A list of the bundle's variables appears.
+ In a field that accepts variables, type `{{`. A list of your variables appears.
<Frame>
<img src="/images/platform/agent-vault/service-variable-picker.png" alt="The Credential step of a GitHub service, with a partly typed reference in the Token field and a list showing GITHUB_TOKEN and Create GITHUB_" />
@@ -98,13 +98,10 @@ To check which services are using a variable:
<Steps>
<Step>
- In Agent Vault, go to **Access Bundles** and select the variable's access bundle.
+ In Agent Vault, go to **Variables**.
</Step>
<Step>
- In the **Variables** list, find the variable's **Used By** column. The column shows an icon for each service that uses the variable, or **Unused** if no service uses it.
- </Step>
- <Step>
- Hover over an icon to view the service's name.
+ In the variable's **Used By** column, find the access bundles whose services use the variable. Hover over an access bundle to see those services, or select it to open the access bundle. If more access bundles use the variable than the column can show, select **+N more** to see the rest. If no service uses the variable, the column shows **Unused**.
</Step>
</Steps>
@@ -114,10 +111,10 @@ To update a variable:
<Steps>
<Step>
- In Agent Vault, go to **Access Bundles** and select the variable's access bundle.
+ In Agent Vault, go to **Variables**.
</Step>
<Step>
- In the **Variables** list, open the variable's actions menu and select **Edit**.
+ Open the variable's actions menu and select **Edit**.
</Step>
<Step>
Update the key or the value. Leave **Value** blank to keep the current value.
@@ -128,7 +125,7 @@ To update a variable:
</Steps>
<Note>
-If you rename a variable, the services that use it keep working without changes. If you change a variable's value, the proxy sends the new value within one [poll interval](/documentation/platform/agent-vault/proxies#poll-interval) (60 seconds by default). Any running agents will begin using the new value automatically.
+If you rename a variable, the services that use it keep working without changes. If you change a variable's value, the proxy sends the new value within one [poll interval](/documentation/platform/agent-vault/proxies#poll-interval) (60 seconds by default), so you don't need to restart running agents.
</Note>
## Delete a variable
@@ -137,16 +134,16 @@ To delete a variable:
<Steps>
<Step>
- In Agent Vault, go to **Access Bundles** and select the variable's access bundle.
+ In Agent Vault, go to **Variables**.
</Step>
<Step>
- In the **Variables** list, open the variable's actions menu and select **Delete**.
+ Open the variable's actions menu and select **Delete**.
</Step>
<Step>
Select **Delete Variable**.
</Step>
</Steps>
- <Note>
+<Note>
If any service still uses the variable, the dialog lists those services, and you can't delete the variable until you [remove the reference](#use-a-variable-in-a-service) from each one.
</Note>
diff --git a/docs/images/platform/agent-vault/service-variable-picker.png b/docs/images/platform/agent-vault/service-variable-picker.png
index 6f481b4b26..e704491635 100644
Binary files a/docs/images/platform/agent-vault/service-variable-picker.png and b/docs/images/platform/agent-vault/service-variable-picker.png differ
diff --git a/docs/images/platform/agent-vault/service-variable-reference.png b/docs/images/platform/agent-vault/service-variable-reference.png
index 8360bc3636..e60b40ee68 100644
Binary files a/docs/images/platform/agent-vault/service-variable-reference.png and b/docs/images/platform/agent-vault/service-variable-reference.png differ
diff --git a/docs/images/platform/agent-vault/variable-create.png b/docs/images/platform/agent-vault/variable-create.png
index cfde3568bb..bbc0bcfbc7 100644
Binary files a/docs/images/platform/agent-vault/variable-create.png and b/docs/images/platform/agent-vault/variable-create.png differ
diff --git a/docs/images/platform/agent-vault/variables-empty.png b/docs/images/platform/agent-vault/variables-empty.png
new file mode 100644
index 0000000000..232c996493
Binary files /dev/null and b/docs/images/platform/agent-vault/variables-empty.png differ
diff --git a/docs/images/platform/agent-vault/variables.png b/docs/images/platform/agent-vault/variables.png
new file mode 100644
index 0000000000..8126871afb
Binary files /dev/null and b/docs/images/platform/agent-vault/variables.png differ