n8vDocs

Security & Permissions

How n8v handles data access and storage

n8v only accesses data on your behalf when you authorize it to, and only in response to your direct actions.

Data Privacy

Your Code is Private

  • We do not train on your codebase - Your code is never used to train AI models
  • Code is only accessed during active task execution when you request it
  • All code access is ephemeral and tied to your specific tasks

Agent Environment Lifecycle

  • Agent environments are ephemeral and managed by our infrastructure providers
  • Inactive agent environments are hibernated to conserve resources
  • Agent environments can be resumed when you continue working on a thread
  • Your code and development environments don't persist indefinitely

GitHub Access

What n8v Can Do

  • Clone repositories you've granted access to
  • Create branches and commits
  • Open pull requests
  • Read issues and PR comments

What n8v Cannot Do

  • Access repositories without your permission
  • Push to protected branches
  • Access your code outside of task execution

Environment Variables

Security Best Practices

  • Never use production keys - Always use development or test API keys for automations and tasks
  • Scope keys appropriately - Use API keys with the minimum required permissions
  • Rotate keys regularly - Update your API keys periodically to maintain security
  • Use repository-specific variables - Configure different keys for different repositories when possible

Environment variables you configure for your repositories are encrypted at rest and in transit using industry-standard encryption.

AI Agent Credentials

When you add an API key for an agent:

  • Your API key is encrypted and stored securely
  • It's used only to make requests on your behalf during task execution
  • You can delete the key at any time from Settings

Second Factor and Your Own Vault

On accounts where they are switched on:

  • A second factor before sensitive changes - Creating an API key, letting assistants use a connector tool that can change things, and opening the Secrets page ask for a passkey or an authenticator app code. It stays confirmed for 10 minutes.
  • Secrets from your own vault - n8v can read a credential from your Infisical at the moment it needs it, by path, and keeps no copy. You never paste it into n8v or into a chat, and rotating it in your vault is the whole rotation.

See Second Factor & Secrets.

Prompt Injection Protection

n8v employs multiple layers of security to protect against prompt injection attacks, where malicious actors attempt to manipulate AI agent behavior through crafted inputs.

Core Security Measures

  • Execution isolation - All code execution happens in isolated agent environments
  • API authentication - API keys with 24-hour expiration are used for authenticating agent environment communication with our servers
  • Thread Isolation - Each thread runs in its own isolated agent environment. Agent environments are tied to threads and can be resumed for continued work within the same thread.

Built-in Protections

n8v's AI agents include several automatic safeguards:

  • Git-based access control - Agents can only access repositories you've explicitly granted permission to
  • User-scoped operations - All operations are strictly scoped to the authenticated user's permissions
  • Explicit author allowlisting - Automations that create tasks in response to GitHub issues or PRs being created only trigger for your own PRs/issues by default, and for the repositories you explicitly specify. To automatically create tasks in response to other users' GitHub issues/PRs, you must manually specify each GitHub username when creating an Automation.

Best Practices for Users

To maximize security when using n8v:

  1. Review automations carefully - Particularly for tasks that take external data as input, such as PRs or issues. Make sure to only allow trusted users to trigger your automations.
  2. Review prompts carefully - Ensure your prompts don't contain instructions that could be exploited by malicious external data, such as web searches, PRs issue content
  3. Use development environments - Configure your environments and MCP servers to use development databases and non-production resources
  4. Use environment variables for secrets - Always use environment variables for sensitive information, such as API keys, and avoid hardcoding them directly in your prompts or codebase.
  5. Limit the scope of MCP servers - Use MCP servers with read-only access where possible, and only grant MCP servers access to the specific resources they need.

While n8v's security measures significantly reduce the risk of prompt injection attacks, no system is completely immune. Always review agent actions and maintain good security hygiene when working with external data sources.