DaytonaSandbox
The DaytonaSandbox component acts as a bridge to a secure, isolated environment provided by Daytona. It allows you to execute tasks or processes in a controlled space without affecting your main system. Think of it as a safe testing area where your automation can run freely.
How it Works
This component works by connecting to the Daytona API. It does not process data or perform calculations itself; instead, it prepares the environment and uses the connected Daytona service to handle the actual work. When you connect this component to your workflow, it establishes a link to the sandbox, allowing subsequent actions to run in the designated isolated context.
Connection & Credentials
This component requires configuring a credential in the Nappai panel before interacting with the external service:
- Go to the Credentials section in your Nappai panel.
- Create a new credential of the type Daytona API and fill in the required fields (Daytona API Key and Daytona API URL). You can get your API key from the Daytona Dashboard.
- In your workflow, select the saved credential in the Credential input field of this node.
Inputs
This component does not require manual data inputs. All configuration is managed through the connected credential.
Input Fields
No input fields are required. Configuration is handled via the Credential connection defined in the Connection section.
Outputs
This component provides the result of the execution performed within the Daytona sandbox. It passes the output from the connected service so you can use it in subsequent steps of your workflow.
Output Data Example (JSON)json
{ “sandbox_status”: “active”, “execution_id”: “task_98765”, “result”: “Task completed in isolated environment” }
Connectivity
This component is typically used to establish a connection to an external Daytona environment. It can be connected to other components that require a secure execution context, acting as a gateway for tasks that need to run in an isolated sandbox.
Usage Example
You can use the DaytonaSandbox component to initiate a secure execution environment. For example, when building a workflow that processes sensitive data, you can connect this component to ensure that processing happens in an isolated sandbox, protecting your main system from potential changes or errors.
Tips and Best Practices
- Ensure your Daytona API credentials are up to date to avoid connection errors.
- Verify the Daytona API URL matches your region or cloud provider for optimal performance.
- Use this component when you need to isolate tasks from your main automation flow to enhance security and stability.
Security Considerations
This component interacts with an external service using API credentials. Always store your API keys securely in the Nappai credentials manager and avoid sharing them. Ensure your Daytona account permissions are configured to allow only the necessary actions for your workflow.