---
title: "Factory security"
description: "Review execution, data, network, inference, and credential boundaries for Warp Factories before configuring your factory."
canonical: "https://docs.warp.dev/factories/infrastructure-and-security/"
---

> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Factory security

Review execution, data, network, inference, and credential boundaries for Warp Factories before configuring your factory.

Warp Factories lets you choose where code runs, which providers serve inference, where run data is stored, and which credentials each agent receives. Review these boundaries separately: self-hosting execution doesn’t automatically move inference or saved run data. For hosting comparisons and runner selection, see [Factory infrastructure](https://docs.warp.dev/factories/infrastructure/).

## Control plane and execution plane

Warp manages coordination, while a Warp-hosted sandbox or a self-hosted runner on your infrastructure executes the work. These responsibilities form the control plane and execution plane:

-   **Control plane** - Warp coordinates runs, identity and configuration, observability, integrations, storage, and inference routing.
-   **Execution plane** - A Warp-hosted sandbox or a self-hosted runner checks out code, runs setup, invokes tools, builds the project, and executes commands.

The diagram shows managed self-hosting with customer-configured inference and run-data storage. The self-hosted runner opens an outbound connection to Warp; no inbound firewall port is required.

![Managed self-hosting architecture showing the Warp control plane, outbound self-hosted runner connection, agent backends, inference routes, and customer-configured run-data storage.](https://docs.warp.dev/_astro/warp-factories-architecture-diagrams.ydN2QROm_Z1IhLUM.webp?dpl=dpl_FNfFZ6UvPeJsaiK33syiCNJUVhTr)

You can manage [factory and agent configuration as code](https://docs.warp.dev/factories/factory-as-code/) in a repository you control.

With managed self-hosting, repository checkouts, commands, and sandbox files stay on machines you control. Prompts, results, transcripts, attachments, artifacts, and telemetry still flow through Warp and can contain code context. The Warp Agent sends model requests through Warp to the configured inference provider. Claude Code and Codex call their providers directly from the execution environment. See [Factory infrastructure](https://docs.warp.dev/factories/infrastructure/), [execution security](https://docs.warp.dev/factories/self-hosting/security-and-networking/), and [data security and boundaries](https://docs.warp.dev/platform/architecture/#data-security-and-boundaries) for details.

Self-hosting compute doesn’t change storage automatically. Configure transcripts, artifacts, and prompt attachments independently through [self-hosted agent data storage](https://docs.warp.dev/factories/self-hosting/data-storage/); unmapped categories remain in Warp-managed storage. Warp still retains control-plane data, including configuration, lifecycle metadata, operational logs, and usage and billing records.

Isolation depends on the backend. The [Direct backend](https://docs.warp.dev/factories/self-hosting/managed-direct/) shares the host OS and kernel; the [Command backend](https://docs.warp.dev/factories/self-hosting/external-orchestrators/#using-the-command-backend) delegates isolation to your external runtime. [Inference support](#inference-options-for-factory-runs) also varies by provider and harness.

## Network controls

Restrict outbound access with [`networkPolicy` in the factory definition](https://docs.warp.dev/factories/factory-as-code/#networkpolicy). The reference covers factory and agent scope, deny precedence, built-in policies, and pending Kubernetes support.

For failed network requests, [fetch and interpret blocked-host diagnostics](https://docs.warp.dev/factories/troubleshooting/#network-requests-fail-during-a-run).

For self-hosted outbound destinations and ports, see [network requirements](https://docs.warp.dev/factories/self-hosting/security-and-networking/#network-requirements).

## Runners

Runner configuration and execution hosting are separate choices. See [Runners in Factory infrastructure](https://docs.warp.dev/factories/infrastructure/#runners) for the compute settings and their relationship to the execution host.

## Choose an execution host

Compare [Warp-hosted and managed self-hosted execution](https://docs.warp.dev/factories/infrastructure/#choose-an-execution-model), including responsibilities and backend isolation, before choosing an execution host. The data and credential boundaries on this page still apply; self-hosting compute alone does not move inference or stored run data.

## Choose inference independently

Execution hosting doesn’t select inference. Configure that boundary separately.

### Inference options for factory runs

Factory agents execute as cloud agents. For runs using the Warp Agent, support varies by inference option:

| Option | Support for factory runs | Team controls | Key boundary |
| --- | --- | --- | --- |
| **Warp-managed inference** | Supported | The model selected for each agent | Warp provides the provider account and charges your available usage |
| **[Team-managed keys and endpoints](https://docs.warp.dev/enterprise/enterprise-features/team-managed-keys-and-endpoints/)** | Supported on Scale and Enterprise plans for Warp Factories; see [other product eligibility](https://docs.warp.dev/enterprise/enterprise-features/team-managed-keys-and-endpoints/#plan-eligibility) | Shared OpenAI, Anthropic, or Google keys, or an OpenAI-compatible endpoint | Warp encrypts stored credentials and uses them only at the inference boundary. They never enter the self-hosted runner or run environment. |
| **[BYOLLM: AWS Bedrock](https://docs.warp.dev/enterprise/enterprise-features/byollm-aws-bedrock/)** | Supported on Enterprise | The AWS account, IAM role, available Claude models, and provider billing | Warp assumes your IAM role through OIDC; inference runs in your AWS account |
| **[BYOLLM: Gemini Enterprise](https://docs.warp.dev/enterprise/enterprise-features/byollm-gemini-enterprise/)** | Not supported for factory runs | Interactive inference in your Google Cloud project | Gemini Enterprise BYOLLM currently supports interactive agent requests only |

Personal BYOK and personal custom inference endpoints are stored on a member’s device and don’t apply to factory runs. With team-managed keys and endpoints, select a specific provider model or endpoint. Auto continues to use Warp-managed inference. Check [provider ZDR coverage](https://docs.warp.dev/factories/zero-data-retention/#choose-inference-covered-by-provider-zdr) separately, including any upstream providers behind a gateway.

Claude Code and Codex call their providers directly from the execution environment using their own [harness authentication](https://docs.warp.dev/factories/harnesses/authentication/), not the Warp Agent’s inference configuration.

### Provider retention

For provider coverage, team collection controls in the Admin Panel, and factory inference settings, see [Zero data retention (ZDR) for factory inference](https://docs.warp.dev/factories/zero-data-retention/).

### Networking for BYO inference endpoints

For factory runs using the Warp Agent and a team-managed inference endpoint, model requests are sent from Warp’s servers, not your self-hosted runner or VPC. Your self-hosted runners execute checkout, tools, builds, and commands.

Your inference gateway must accept connections from Warp’s servers, even if your self-hosted runners can already reach it. For example, a TrueFoundry gateway on AWS needs a separate connection path for Warp’s inference requests.

For a public HTTPS gateway, confirm the current backend egress addresses with your Warp account team before configuring an IP allowlist in your gateway’s ingress rules.

These addresses identify Warp’s servers, not connections from your self-hosted runners. The self-hosted runner’s outbound connection to Warp doesn’t require inbound ports on its host.

If your gateway can’t be exposed publicly, contact your Warp account team to confirm whether [private networking](https://docs.warp.dev/enterprise/enterprise-features/private-networking/) is available for your deployment. A private endpoint must be registered with Warp and reachable from Warp’s servers; running a self-hosted runner doesn’t establish this connection.

## Credential boundaries

A factory handles four kinds of credentials, each with its own boundary:

| Credential | Used for | Boundary |
| --- | --- | --- |
| **Inference credentials** | Model provider requests from the Warp Agent | Credentials are used only at the Warp–provider boundary and never injected into the sandbox. |
| **Execution secrets** | APIs, package registries, and tools an agent uses | Secrets are delivered from an explicit per-agent allowlist. Factory agents that don’t act as a specific user receive no managed secrets by default. |
| **Harness authentication** | Third-party harnesses such as Claude Code or Codex | Credentials are used inside the execution environment for direct provider calls. This authentication is configured separately from the agent’s secret allowlist. |
| **Repository identity** | Checking out code and pushing changes | Runs act with the creating user’s authorization (changes are attributed to them) or as the agent itself for unattended work. The definition’s [`credentialStrategy`](https://docs.warp.dev/factories/factory-as-code/#credentialstrategy) sets this behavior. |

Scope each credential to the resources and actions its agent needs. Warp redacts known secret values at output boundaries, but redaction is a backstop, not a substitute for narrow external permissions and rotation. See [factory secrets](https://docs.warp.dev/factories/secrets/), [harness authentication](https://docs.warp.dev/factories/harnesses/authentication/), [Secret Redaction](https://docs.warp.dev/support-and-community/privacy-and-security/secret-redaction/), and [team identity](https://docs.warp.dev/platform/team-access-billing-and-identity/) for the underlying controls.

## Factory roles and permissions

Assign Factory user or Editor access to control who runs and configures a factory. Team and workspace admins inherit Admin access. See [Managing factory permissions](https://docs.warp.dev/factories/permissions/) for role details and assignment steps.

Factory roles don’t control specification or pull request review. For factory definition changes, treat the files as operational code and protect merges through repository settings.

## Metering

For how hosting and inference choices affect charges, see [Metering in Factory infrastructure](https://docs.warp.dev/factories/infrastructure/#metering) and the [platform usage reference](https://docs.warp.dev/support-and-community/plans-and-billing/platform-credits/).

## Deployment checklist

1.  **Classify access** - Inventory repositories, data, and services.
2.  **Set boundaries** - Choose execution and inference hosts.
3.  **Scope credentials** - Configure allowlists, harness authentication, and repository identity.
4.  **Enforce review** - Protect factory-definition and pull request merges.
5.  **Validate operations** - Test outbound network access, isolation, rotation, capacity, observability, and metering.

## Related pages

-   [Zero data retention (ZDR) for factory inference](https://docs.warp.dev/factories/zero-data-retention/) - Review coverage, collection, and saved run data
-   [Factory infrastructure](https://docs.warp.dev/factories/infrastructure/) - Compare execution models and choose runners
-   [Runners for Warp Factories](https://docs.warp.dev/factories/runners/) - Configure compute and self-hosted runner compatibility
-   [Self-hosting overview](https://docs.warp.dev/factories/self-hosting/) - Review managed backends and setup requirements
-   [Security and networking](https://docs.warp.dev/factories/self-hosting/security-and-networking/) - Review data boundaries, outbound network access, and backend controls
-   [Team-managed LLM API keys and endpoints](https://docs.warp.dev/enterprise/enterprise-features/team-managed-keys-and-endpoints/) - Configure inference credentials
-   [Managing teams in Warp Factories](https://docs.warp.dev/factories/teams-and-admin-controls/) - Manage membership and shared team controls
-   [Platform usage](https://docs.warp.dev/support-and-community/plans-and-billing/platform-credits/) - Understand agent-hour charges
