Skip to content

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

docs(syncs): audit daytona sync and app connection guide

Adrian Kahalic03c11aa15c0
diff --git a/docs/integrations/app-connections/daytona.mdx b/docs/integrations/app-connections/daytona.mdx
index 73c379b943..7c832f8273 100644
--- a/docs/integrations/app-connections/daytona.mdx
+++ b/docs/integrations/app-connections/daytona.mdx
@@ -4,96 +4,85 @@ sidebarTitle: "Daytona"
description: "Learn how to configure a Daytona connection for Infisical."
---
-[Daytona](https://www.daytona.io/) runs sandboxes that read organization-scoped secrets at runtime. Infisical connects to Daytona with an API key, which is used to push secrets into a Daytona organization through the [Daytona secret sync](/integrations/secret-syncs/daytona).
+import CreateApiKey from "/snippets/app-connections/daytona/create-api-key.mdx";
+import ConnectionFormFields from "/snippets/app-connections/daytona/form-fields.mdx";
-A Daytona API key belongs to exactly one organization. The key you choose therefore decides which organization your secrets are written to.
+A Daytona connection authenticates Infisical to [Daytona](https://www.daytona.io/) using an API key.
+
+<Note>
+ This guide only authenticates Infisical with Daytona. Once the app connection is ready, you can [use it to set up integrations](#step-3-configure-integrations).
+</Note>
## Prerequisites
-- A [Daytona account](https://app.daytona.io/) with an organization you can manage
-
-## Create a Daytona API key
-
-<Steps>
- <Step title="Open API key settings">
- In the Daytona dashboard, select **API Keys** in the sidebar, then select **Create Key**.
- </Step>
- <Step title="Grant the key permission to manage secrets">
- Give the key a name. Under **Permissions**, select **Restricted**, then set **Secrets** to **Manage**. **Full Access** also works.
-
- Infisical needs this permission to create, update, and delete secrets. A key without it is rejected when you create the connection.
-
- ![Create API Key](/images/app-connections/daytona/create-api-key.png)
- </Step>
- <Step title="Copy the key">
- Select **Create**. Daytona shows the key once, immediately after creation. Copy it and store it securely. You need it in the next section.
- </Step>
-</Steps>
-
-## Create a Daytona connection in Infisical
-
-<Tabs>
- <Tab title="Infisical UI">
- <Steps>
- <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)
- </Step>
- <Step title="Select Daytona Connection">
- Select **Add Connection** and choose **Daytona** from the list of available connections.
-
- ![Select Daytona Connection](/images/app-connections/daytona/daytona-app-connection-option.png)
- </Step>
- <Step title="Fill out the connection form">
- Complete the form with:
- - A **name** for the connection (for example `daytona-prod`)
- - An optional **description**
- - Your **Daytona API key**
-
- ![Daytona Connection Form](/images/app-connections/daytona/daytona-app-connection-form.png)
- </Step>
- <Step title="Connection created">
- Infisical validates the key against Daytona and records the organization it belongs to. Once it passes, the connection is ready to use in your project.
- </Step>
- </Steps>
- </Tab>
- <Tab title="API">
- To create a Daytona connection, make an API request to the [Create Daytona Connection](/api-reference/endpoints/app-connections/daytona/create) API endpoint.
-
- ### Sample request
-
- ```bash Request
- curl --request POST \
- --url https://app.infisical.com/api/v1/app-connections/daytona \
- --header 'Content-Type: application/json' \
- --data '{
- "name": "my-daytona-connection",
- "method": "api-key",
- "credentials": {
- "apiKey": "<YOUR-DAYTONA-API-KEY>"
- }
- }'
- ```
-
- ### Sample response
-
- ```bash Response
- {
- "appConnection": {
- "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
- "name": "my-daytona-connection",
- "description": null,
- "version": 1,
- "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
- "createdAt": "2026-08-28T19:46:34.831Z",
- "updatedAt": "2026-08-28T19:46:34.831Z",
- "isPlatformManagedCredentials": false,
- "app": "daytona",
- "method": "api-key",
- "credentials": {}
- }
- }
- ```
- </Tab>
-</Tabs>
+- A [Daytona account](https://app.daytona.io/) with access to create API keys in the organization you want to sync secrets to
+
+## Step 1: Create a Daytona API key
+
+Infisical authenticates to Daytona with an API key that can manage secrets in your organization. Daytona API keys belong to exactly one organization, so the key you use decides which organization Infisical writes secrets to.
+
+<CreateApiKey />
+
+## Step 2: Create the app connection
+
+Next, create the app connection in Infisical.
+
+<Tip>
+ To create the connection using the API, use the [Create Daytona Connection](/api-reference/endpoints/app-connections/daytona/create) endpoint.
+</Tip>
+
+<View title="Organization-level">
+ <Steps>
+ <Step>
+ In the sidebar, select **Organization Settings**, then open the **App Connections** tab.
+
+ ![App Connections Tab](/images/app-connections/general/add-connection.png)
+ </Step>
+ <Step>
+ Select **+ Add Connection** and choose **Daytona Connection**.
+
+ ![Select Daytona Connection](/images/app-connections/daytona/daytona-app-connection-option.png)
+ </Step>
+ <Step>
+ Fill out the form's fields:
+
+ <ConnectionFormFields />
+
+ Then, select **Connect to Daytona**.
+
+ ![Daytona Connection Modal](/images/app-connections/daytona/daytona-app-connection-form.png)
+ </Step>
+ </Steps>
+</View>
+
+<View title="Project-level">
+ <Steps>
+ <Step>
+ In your Secrets Manager project, select **Integrations** from the sidebar, then open the **App Connections** tab.
+ </Step>
+ <Step>
+ Select **Add Connection** and choose **Daytona Connection**.
+ </Step>
+ <Step>
+ Fill out the form's fields:
+
+ <ConnectionFormFields />
+
+ Then, select **Connect to Daytona**.
+ </Step>
+ </Steps>
+</View>
+
+Infisical checks the key against Daytona and records the organization the key belongs to.
+
+<Check>
+ Your Daytona app connection is ready to use.
+</Check>
+
+## Step 3: Configure integrations
+
+Now that your Daytona app connection is configured, you can use it to set up the following integrations:
+
+<Card title="Daytona Secret Sync" icon="refresh-cw" href="/integrations/secret-syncs/daytona">
+ Sync secrets from Infisical to a Daytona organization.
+</Card>
diff --git a/docs/integrations/secret-syncs/daytona.mdx b/docs/integrations/secret-syncs/daytona.mdx
index 6c1b2ff782..49fbc2cd7e 100644
--- a/docs/integrations/secret-syncs/daytona.mdx
+++ b/docs/integrations/secret-syncs/daytona.mdx
@@ -4,161 +4,142 @@ sidebarTitle: "Daytona"
description: "Learn how to configure a Daytona sync for Infisical."
---
-**Prerequisites:**
-- Set up and add secrets to [Infisical Cloud](https://app.infisical.com)
-- Create a [Daytona connection](/integrations/app-connections/daytona)
+import CreateApiKey from "/snippets/app-connections/daytona/create-api-key.mdx";
+import ConnectionFormFields from "/snippets/app-connections/daytona/form-fields.mdx";
+
+A Daytona Secret Sync pushes secrets from Infisical into a Daytona organization, where sandboxes can read them at runtime. Each Infisical secret becomes a Daytona secret with the same name.
<Note>
- Daytona secret names must start with a letter or an underscore, and can contain only letters, digits, hyphens, and underscores. A sync that includes a key Daytona rejects fails and names the offending key, so no secrets are written.
+ The Daytona Secret Sync requires a [Daytona app connection](/integrations/app-connections/daytona). This guide walks you through creating a project-scoped app connection.
</Note>
-## Allowed hosts stay under your control in Daytona
+## Prerequisites
+
+- A [project with secrets configured](/documentation/platform/secrets-mgmt/quick-starts/deliver-first-secret)
+- A [Daytona account](https://app.daytona.io/) with access to create API keys in the organization you want to sync secrets to
+
+## Step 1: Create a Daytona API key
-Daytona never places a secret's value in a sandbox. It sets the environment variable to an opaque placeholder and substitutes the real value in its egress proxy, but only for requests to hosts on that secret's allowed hosts list. A secret with no allowed hosts is unrestricted: Daytona substitutes the value for a request to any host.
+Infisical authenticates to Daytona with an API key that can manage secrets in your organization.
-Infisical never sets or changes allowed hosts. Creating a secret sends its name and value, and updating one sends only the value, so the allowed hosts you set in Daytona are preserved by every later sync. Nothing you configure here can widen or narrow them.
+<CreateApiKey />
-Set allowed hosts on a secret in Daytona after the first sync creates it. The list is per secret, so each one can be restricted to the destinations it's actually used with, and it survives from then on.
+## Step 2: Set up the sync in Infisical
-![Allowed hosts on a Daytona secret](/images/secret-syncs/daytona/allowed-hosts.png)
+<Tip>
+ To create the sync using the API, use the [Create Daytona Sync](/api-reference/endpoints/secret-syncs/daytona/create) endpoint.
+</Tip>
-<Tabs>
- <Tab title="Infisical UI">
- <Steps>
- <Step title="Add sync">
- Navigate to **Project** > **Integrations** and select the **Secret Syncs** tab. Select the **Add Sync** button.
+<Steps>
+ <Step>
+ In your project, go to **Integrations** and open the **Secret Syncs** tab. Select **+ Add Sync**.
- ![Secret Syncs Tab](/images/secret-syncs/general/secret-sync-tab.png)
- </Step>
- <Step title="Select 'Daytona'">
- Select the **Daytona** option from the list of available secret syncs.
+ ![Secret Syncs Tab](/images/secret-syncs/general/secret-sync-tab.png)
- ![Select Daytona](/images/secret-syncs/daytona/select-option.png)
- </Step>
- <Step title="Configure source">
- Configure the **Source** from where secrets should be retrieved, then select **Continue**.
+ Then, select the **Daytona** sync.
- - **Environment**: The project environment to retrieve secrets from.
- - **Secret Path**: The folder path to retrieve secrets from.
+ ![Select Daytona](/images/secret-syncs/daytona/select-option.png)
+ </Step>
+ <Step>
+ Under **Source**, choose which secrets to sync from Infisical:
- <Tip>
- If you need to sync secrets from multiple folder locations, check out [secret imports](/documentation/platform/secret-reference#secret-imports).
- </Tip>
- </Step>
- <Step title="Configure destination">
- Select the **Daytona Connection** to authenticate with, then select **Continue**. The connection's API key determines which Daytona organization receives the secrets, so there is nothing further to configure.
+ - **Environment**: The project environment to retrieve secrets from
+ - **Secret Path**: The folder path to retrieve secrets from
- ![Configure Destination](/images/secret-syncs/daytona/configure-destination.png)
- </Step>
- <Step title="Choose initial sync behavior">
- Choose how Infisical reconciles the secrets already in Daytona on the first run, then select **Continue**.
+ <Note>
+ Daytona secret names must start with a letter or an underscore, and can contain only letters, digits, hyphens, and underscores. If any secret at this path has a name Daytona rejects, the sync fails without writing any secrets, and the error names each rejected key.
+ </Note>
- Daytona never returns a secret's value through its API, so this sync cannot import existing secrets into Infisical. **Overwrite Daytona** is the only behavior available.
+ <Tip>
+ If you need to sync secrets from multiple folder locations, use [secret imports](/documentation/platform/secret-reference#secret-imports).
+ </Tip>
- ![Initial Sync Behavior](/images/secret-syncs/daytona/initial-sync-behavior.png)
- </Step>
- <Step title="Configure sync options">
- Configure the **Sync Options** to specify how secrets should be synced, then select **Continue**.
+ Then select **Continue**.
+ </Step>
+ <Step>
+ Under **Destination**, create or select the Daytona app connection the sync will use. The connection's API key decides which Daytona organization receives the secrets, so there is nothing else to configure on this screen.
- - **Disable secret deletion**: When enabled, Infisical does not remove secrets from the Daytona organization. Enable this if you intend to manage some secrets manually outside of Infisical.
- - **Auto-sync on changes**: When enabled, secrets sync to Daytona automatically as the source changes. Turn it off to sync manually only.
- - **Customize key names**: Adds a prefix or suffix to every synced name, using `{{secretKey}}` as a placeholder for the original name and `{{environment}}` for the environment.
+ <Tabs>
+ <Tab title="Create a new app connection">
+ Under **Daytona Connection**, select **Create Connection** in the dropdown, then fill in:
+
+ <ConnectionFormFields />
+
+ Select **Connect to Daytona**. Infisical returns you to the sync form with the new connection selected.
<Note>
- We highly recommend customizing key names so Infisical only manages the specific keys you intend, keeping everything else untouched.
+ This creates a connection scoped to the current project. To share the connection across other projects, [create it at the organization level](/integrations/app-connections/daytona#step-2-create-the-app-connection) first, then select it here.
</Note>
+ </Tab>
+ <Tab title="Use an existing connection">
+ Under **Daytona Connection**, select the app connection you'd like to use.
+ </Tab>
+ </Tabs>
+
+ ![Configure Destination](/images/secret-syncs/daytona/configure-destination.png)
+
+ Then select **Continue**.
+ </Step>
+ <Step>
+ Under **Initial Sync Behavior**, select **Overwrite Daytona**, then select **Continue**.
+
+ <Note>
+ Daytona's API never returns a secret's value, so this sync can't import existing Daytona secrets into Infisical. **Overwrite Daytona** is the only option.
+ </Note>
+
+ ![Initial Sync Behavior](/images/secret-syncs/daytona/initial-sync-behavior.png)
+ </Step>
+ <Step>
+ Under **Sync Options**, choose how secrets are synced:
+
+ - **Prevent secret deletion**: When enabled, Infisical adds and updates secrets in Daytona but never deletes them; enable this if you manage some Daytona secrets outside of Infisical
+ - **Auto-sync on changes**: When enabled, secrets sync to Daytona automatically as the source changes. Turn off to sync manually only
+ - **Customize key names**: Adds a prefix or suffix to every synced name, using `{{secretKey}}` for the original name and `{{environment}}` for the environment slug
+
+ ![Configure Sync Options](/images/secret-syncs/daytona/configure-sync-options.png)
+
+ Then select **Continue**.
+ </Step>
+ <Step>
+ Give the sync a **Name** and an optional **Description**. The name must be slug-friendly.
+
+ ![Sync Details](/images/secret-syncs/daytona/configure-details.png)
+
+ Then select **Continue**.
+ </Step>
+ <Step>
+ Review your Daytona Sync configuration, then select **Create Sync**.
+
+ ![Review and Create](/images/secret-syncs/daytona/review-configuration.png)
+
+ <Check>
+ The sync is created. If **Auto-sync on changes** is enabled, it begins syncing secrets to your Daytona organization right away.
+ </Check>
+ </Step>
+</Steps>
+
+## Step 3: Restrict allowed hosts in Daytona
+
+Daytona never places a secret's value in a sandbox. It sets the environment variable to a placeholder and substitutes the real value in its egress proxy, but only for requests to hosts on that secret's allowed hosts list. If a secret has no allowed hosts, Daytona substitutes the value in a request to any host.
+
+<Note>
+Infisical never sets or changes allowed hosts. When Infisical creates a Daytona secret, it sends only the name and value, and when it updates one, it sends only the value. This means the allowed hosts you set in Daytona stay in place through every later sync.
+</Note>
+
+After the first sync creates your secrets, set allowed hosts on each one in Daytona. Each secret has its own list, so you can limit each secret to the hosts it's used with.
+
+<Steps>
+ <Step>
+ In the Daytona dashboard, go to **Secrets** in the sidebar. The secrets created by the sync are listed by name, and the **Allowed Hosts** column shows each one's current list.
+ </Step>
+ <Step>
+ Find the secret you want to restrict and select it.
+ </Step>
+ <Step>
+ In **Allowed Hosts**, enter a comma-separated list of the hosts the secret may be sent to, such as `api.anthropic.com`. Then save the secret.
+
+ ![Allowed hosts on a Daytona secret](/images/secret-syncs/daytona/allowed-hosts.png)
+ </Step>
+</Steps>
- ![Configure Sync Options](/images/secret-syncs/daytona/configure-sync-options.png)
- </Step>
- <Step title="Configure details">
- Give the sync a **Name** and an optional **Description**, then select **Continue**. The name must be slug-friendly.
-
- ![Sync Details](/images/secret-syncs/daytona/configure-details.png)
- </Step>
- <Step title="Review and create">
- Review your Daytona sync configuration, then select **Create Sync**.
-
- ![Review and Create](/images/secret-syncs/daytona/review-configuration.png)
- </Step>
- <Step title="Sync created">
- If auto-sync is enabled, your Daytona sync begins syncing your secrets to the destination organization.
- </Step>
- </Steps>
- </Tab>
- <Tab title="API">
- To create a **Daytona sync**, make an API request to the [Create Daytona Sync](/api-reference/endpoints/secret-syncs/daytona/create) API endpoint.
-
- ### Sample request
-
- ```bash Request
- curl --request POST \
- --url https://app.infisical.com/api/v1/secret-syncs/daytona \
- --header 'Content-Type: application/json' \
- --data '{
- "name": "my-daytona-sync",
- "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "description": "an example sync",
- "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "environment": "dev",
- "secretPath": "/my-secrets",
- "isAutoSyncEnabled": true,
- "syncOptions": {
- "initialSyncBehavior": "overwrite-destination",
- "disableSecretDeletion": false
- },
- "destinationConfig": {}
- }'
- ```
-
- ### Sample response
-
- ```bash Response
- {
- "secretSync": {
- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "name": "my-daytona-sync",
- "description": "an example sync",
- "isAutoSyncEnabled": true,
- "version": 1,
- "folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "connectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "createdAt": "2026-08-28T05:31:56Z",
- "updatedAt": "2026-08-28T05:31:56Z",
- "syncStatus": "succeeded",
- "lastSyncJobId": "123",
- "lastSyncMessage": null,
- "lastSyncedAt": "2026-08-28T05:31:56Z",
- "importStatus": null,
- "lastImportJobId": null,
- "lastImportMessage": null,
- "lastImportedAt": null,
- "removeStatus": null,
- "lastRemoveJobId": null,
- "lastRemoveMessage": null,
- "lastRemovedAt": null,
- "syncOptions": {
- "initialSyncBehavior": "overwrite-destination",
- "disableSecretDeletion": false
- },
- "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "connection": {
- "app": "daytona",
- "name": "my-daytona-connection",
- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
- },
- "environment": {
- "slug": "dev",
- "name": "Development",
- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
- },
- "folder": {
- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
- "path": "/my-secrets"
- },
- "destination": "daytona",
- "destinationConfig": {}
- }
- }
- ```
- </Tab>
-</Tabs>
+Repeat these steps for each secret you want to restrict.
diff --git a/docs/snippets/app-connections/daytona/create-api-key.mdx b/docs/snippets/app-connections/daytona/create-api-key.mdx
new file mode 100644
index 0000000000..1bc2f75e2a
--- /dev/null
+++ b/docs/snippets/app-connections/daytona/create-api-key.mdx
@@ -0,0 +1,17 @@
+<Steps>
+ <Step>
+ In the Daytona dashboard, go to **API Keys** in the sidebar, then select **Create Key**.
+ </Step>
+ <Step>
+ Give the key a name. Under **Permissions**, select **Restricted**, then set **Secrets** to **Manage** (or **Full Access**).
+
+ <Info>
+ Infisical needs this permission to create, update, and delete secrets. If the key doesn't have it, Infisical rejects the key when you create the connection.
+ </Info>
+
+ ![Create API Key](/images/app-connections/daytona/create-api-key.png)
+ </Step>
+ <Step>
+ Select **Create**, then copy the key. Daytona shows the key only once, and you need it to create the connection in Infisical.
+ </Step>
+</Steps>
diff --git a/docs/snippets/app-connections/daytona/form-fields.mdx b/docs/snippets/app-connections/daytona/form-fields.mdx
new file mode 100644
index 0000000000..837cb1d1a1
--- /dev/null
+++ b/docs/snippets/app-connections/daytona/form-fields.mdx
@@ -0,0 +1,4 @@
+- **Name**: A descriptive name for the connection, such as `daytona-prod`
+- **Description** (optional): A note for future reference
+- **Method**: **API Key** (selected by default)
+- **API Key**: The key you copied when you [created the Daytona API key](#step-1-create-a-daytona-api-key)