Skip to content

Factories > Infrastructure

Factory security

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

Open in ChatGPT ↗
Ask ChatGPT about this page
Open in Claude ↗
Ask Claude about this page
Copied!

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.

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.

You can manage factory and agent configuration 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, execution security, and 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; 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 shares the host OS and kernel; the Command backend delegates isolation to your external runtime. Inference support also varies by provider and harness.

Restrict outbound access with networkPolicy in the factory definition. 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.

For self-hosted outbound destinations and ports, see network requirements.

Runner configuration and execution hosting are separate choices. See Runners in Factory infrastructure for the compute settings and their relationship to the execution host.

Compare Warp-hosted and managed self-hosted execution, 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.

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

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

OptionSupport for factory runsTeam controlsKey boundary
Warp-managed inferenceSupportedThe model selected for each agentWarp provides the provider account and charges your available usage
Team-managed keys and endpointsSupported on Scale and Enterprise plans for Warp Factories; see other product eligibilityShared OpenAI, Anthropic, or Google keys, or an OpenAI-compatible endpointWarp encrypts stored credentials and uses them only at the inference boundary. They never enter the self-hosted runner or run environment.
BYOLLM: AWS BedrockSupported on EnterpriseThe AWS account, IAM role, available Claude models, and provider billingWarp assumes your IAM role through OIDC; inference runs in your AWS account
BYOLLM: Gemini EnterpriseNot supported for factory runsInteractive inference in your Google Cloud projectGemini 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 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, not the Warp Agent’s inference configuration.

For provider coverage, team collection controls in the Admin Panel, and factory inference settings, see Zero data retention (ZDR) for factory inference.

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 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.

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

CredentialUsed forBoundary
Inference credentialsModel provider requests from the Warp AgentCredentials are used only at the Warp–provider boundary and never injected into the sandbox.
Execution secretsAPIs, package registries, and tools an agent usesSecrets 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 authenticationThird-party harnesses such as Claude Code or CodexCredentials are used inside the execution environment for direct provider calls. This authentication is configured separately from the agent’s secret allowlist.
Repository identityChecking out code and pushing changesRuns act with the creating user’s authorization (changes are attributed to them) or as the agent itself for unattended work. The definition’s 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, harness authentication, Secret Redaction, and team identity for the underlying controls.

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 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.

For how hosting and inference choices affect charges, see Metering in Factory infrastructure and the platform usage reference.

  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.