Enterprise platform engineering teams, DevSecOps architects, and security leaders face a fundamental dilemma when evaluating Devin (Cognition): autonomous software engineering agents require full read and write access to source code management (SCM) systems, internal build pipelines, container registries, and private artifact repositories (such as self-hosted GitLab, GitHub Enterprise Server, JFrog Artifactory, or Sonatype Nexus). In regulated industries—including financial services, defense, healthcare, and high-tech manufacturing—these assets reside behind strict corporate perimeter firewalls or within air-gapped Virtual Private Clouds (VPCs). Exposing internal codebases to the public internet, even behind reverse proxies, is an unacceptable compliance violation.
To operationalize Devin without compromising corporate data perimeters, Cognition provides three distinct networking patterns:
- Public Egress Static IP Allowlisting: Ingress firewall filtering on customer load balancers.
- Customer Dedicated Deployment via AWS PrivateLink & Devin Connect: Cross-VPC private backbone routing with single-tenant isolation.
- Devin Outposts: Self-hosted execution workers running directly inside the customer's private infrastructure, communicating with Cognition's reasoning engine strictly over outbound HTTPS.
At 365Finds, our institutional stance is unambiguous: Public IP allowlisting is an operational stopgap that should not be used for proprietary core IP in regulated environments. For enterprises that want Cognition-managed compute while keeping network traffic off the public internet, AWS PrivateLink with Devin Connect is the premier deployment baseline. For organizations governed by absolute zero-data-exfiltration mandates—where source code, private cryptographic material, and internal network tokens are legally prohibited from leaving customer perimeter boundaries—Devin Outposts is the definitive architecture, provided platform teams are prepared to operate self-hosted worker infrastructure.
Architectural Foundation: The Brain vs. The Devbox
Understanding Devin's security model requires dissecting its two-tier architectural split:
- The Brain (Inference & Planning Plane): A stateless intelligence loop hosted in Cognition's cloud infrastructure (hosted in Azure and dedicated AWS environments). The Brain processes high-level user instructions, maintains the reasoning graph, schedules tasks, and determines which tool calls (terminal commands, file edits, git commands, browser navigation) the agent should execute.
- The Devbox (Execution Plane): The sandbox environment where code is actually cloned, modified, built, tested, and pushed. The Devbox contains the shell execution environment, file system, language runtimes, build tools, and local networking stack.
+-------------------------------------------------------------+
| Cognition Cloud |
| +-------------------------------------------------------+ |
| | The Brain (Planning & Inference) | |
| +---------------------------+---------------------------+ |
+------------------------------|------------------------------+
| Outbound TLS / PrivateLink
v
+-------------------------------------------------------------+
| The Devbox Plane |
| |
| [Option A: Dedicated SaaS] [Option B: Devin Outposts] |
| Isolated Single-Tenant AWS VPC Customer On-Prem / VPC |
| Managed by Cognition Managed by Customer |
| | | |
| AWS PrivateLink / GWLB Direct Local LAN |
| v v |
| +------------------------------------------------------+ |
| | Customer Internal Infrastructure | |
| | GitLab Self-Managed | Artifactory | Private Microservices|
| +------------------------------------------------------+ |
+-------------------------------------------------------------+
Where the Devbox runs, and how it dials out to your internal endpoints, determines your compliance profile, attack surface, and operational footprint.
Option 1: Static Egress IP Allowlisting (The Stopgap)
In Devin's base Enterprise Cloud model, the Devbox executes inside Cognition's multi-tenant cloud. To allow Devin to clone from self-hosted GitLab or pull dependencies from internal Artifactory instances, the customer must expose an external endpoint and configure an ingress firewall allowlist.
Network Architecture
- Customer Perimeter: The enterprise provisions an internet-facing Application Load Balancer (ALB) or Network Load Balancer (NLB) fronting the internal SCM or artifact repository.
- IP Filtering:
- ALB + AWS WAF: A Regional IP Set containing Cognition's published static egress IP addresses is associated with a WAF Web ACL on the ALB. The default WAF rule action is set to
Block. - NLB + Security Groups: Security groups on the NLB explicitly restrict inbound TCP port 443 traffic to Devin's static IP CIDRs.
- ALB + AWS WAF: A Regional IP Set containing Cognition's published static egress IP addresses is associated with a WAF Web ACL on the ALB. The default WAF rule action is set to
- Public DNS: A public DNS record (e.g.,
gitlab-devin.corp.example.com) points to the external load balancer.
Operational Caveats
- L7 NAT Traversal: An ALB performs Layer 7 NAT. Downstream internal instances see the load balancer's private IP rather than Devin's egress IP. For artifact repositories behind an ALB that require repository-level IP filtering, WAF headers or NLB Layer 4 passthrough must be used.
- Attack Surface Risk: Even with strict IP filtering, the repository gateway is exposed to the public internet, creating residual risks from zero-day vulnerabilities in public-facing web servers or accidental firewall misconfigurations.
- 365Finds Assessment: Direct IP allowlisting is suitable only for fast proof-of-concept (PoC) trials or non-critical codebases. We recommend avoiding this approach for enterprise production networks.
Option 2: AWS PrivateLink & Customer Dedicated Deployments
For organizations requiring true private network encapsulation without operating their own VM clusters, Cognition provides the Customer Dedicated Deployment model.
Single-Tenant VPC Isolation
Instead of running inside Cognition's multi-tenant pool, the Devbox runs in an auto-scaling, customer-isolated, single-tenant AWS VPC managed by Cognition. Data is encrypted in transit and at rest, with optional Customer Managed Keys (CMK) via AWS KMS.
PrivateLink Backbone Direct Connection
AWS PrivateLink establishes unidirectional, private IP connectivity between the Cognition Dedicated VPC and the enterprise VPC entirely over the AWS network backbone. Traffic never touches the public internet.
+---------------------------+ +-------------------------------+
| Cognition Dedicated | | Customer AWS |
| Tenant VPC | | VPC |
| | | |
| +-------------------+ | AWS | +-----------------------+ |
| | Devin Devboxes | | Backbone | | VPC Endpoint Service | |
| | (AWS us-west-2) | | Private | | (vpce-svc-xxxxxxxx) | |
| +---------+---------+ | Link +<--+-----------+-----------+ |
| | | | | |
| v | | v |
| +-------------------+ | | +-----------------------+ |
| | Interface VPC +---+-------------+-->| Network Load Balancer | |
| | Endpoints (VPCE) | | | | (Multi-AZ NLB) | |
| +-------------------+ | | +-----------+-----------+ |
| | | | |
+---------------------------+ | v |
| +-----------------------+ |
| | Internal Services | |
| | GitLab | Artifactory | |
| +-----------------------+ |
+-------------------------------+
Engineering Provisioning Steps
- Target NLB: The enterprise provisions an internal Network Load Balancer spanning multiple Availability Zones (AZs) targeting internal SCM and artifact hosts on port 443 (and port 22 if SSH cloning is enforced).
- VPC Endpoint Service: The platform team creates an AWS VPC Endpoint Service using the NLB as the service target.
- Cross-Region Compatibility: If the customer's workloads reside in
us-east-1while the Cognition tenant is provisioned inus-west-2, cross-region support must be enabled:aws ec2 modify-vpc-endpoint-service-configuration \ --service-id vpce-svc-0abc123456789def0 \ --add-supported-regions us-west-2 - IAM Principal Authorization: The customer grants Cognition's AWS account ID permission to consume the Endpoint Service:
aws ec2 modify-vpc-endpoint-service-permissions \ --service-id vpce-svc-0abc123456789def0 \ --add-allowed-principals arn:aws:iam::<COGNITION_ACCOUNT_ID>:root - Interface Endpoints & Split-Horizon DNS: Cognition provisions Interface VPC Endpoints inside the dedicated tenant VPC. Cognition configures internal DNS within the Devin environment so that enterprise hostnames (e.g.,
git.internal.acme.com) resolve to the local Interface Endpoint private IPs.
Deep Packet Inspection via Gateway Load Balancer (GWLB)
For enterprises that mandate inline deep packet inspection (DPI) or proxy filtering (e.g., Zscaler, Palo Alto Networks VM-Series, Fortinet) on all egress and cross-VPC traffic, Devin supports an AWS Gateway Load Balancer (GWLB) integration. Instead of terminating traffic directly at an NLB, traffic from the Devin Interface Endpoint passes through a GWLB target group hosting security appliances before being routed to the internal destination.
Devin Connect: Overcoming Endpoint Service Sprawl
While standard PrivateLink is robust, standard AWS architecture requires one VPC Endpoint Service and one Interface Endpoint per destination domain. In complex enterprises with distributed GitLab, multiple Artifactory instances, internal package mirrors, Jira servers, and private microservice APIs, provisioning and maintaining dozens of PrivateLink pairings introduces substantial operational friction.
Devin Connect resolves this by deploying a unified policy proxy gateway inside the customer network.
How Devin Connect Operates
Devin Connect consists of an HTTP CONNECT forward proxy running inside the customer's private network that operates on a strict default-deny allowlist. It accepts connection requests, verifies the requested host:port against configured routes, resolves the destination using internal corporate DNS, dials the backend, and transparently streams opaque TCP bytes. Application TLS is end-to-end and never decrypted by the gateway.
Devin Connect supports two transport modes:
- Direct (PrivateLink Mode): The Devin Connect gateway runs behind an internal NLB with an AWS VPC Endpoint Service. Devin reaches the gateway via a single PrivateLink interface. A single connection routes all allowlisted hostnames and CIDR ranges.
- Reverse Tunnel Mode: The gateway dials outbound over TLS to Cognition's edge (
<customer>.gateway.devinenterprise.com:443) using an enrollment token. Devin routes tool calls back through this established outbound tunnel. This requires zero inbound firewall ports and works seamlessly on AWS, GCP, Azure, or bare-metal data centers.
# Sample devin-gateway config.yaml
schema_version: 1
admin_listen: 127.0.0.1:9090
# Data-plane listener (PrivateLink Direct mode)
listen: 0.0.0.0:8443
dns:
nameservers: ["10.0.0.2:53"]
timeout: 5s
# Dual-enforced default-deny allowlist
routes:
- name: internal-scm
rules:
- hostname: "gitlab.corp.internal"
- hostname: "artifacts.corp.internal"
ports: [443]
- name: private-build-cluster
rules:
- ipv4: "10.50.0.0/16"
ports: [22, 8080]
Double Default-Deny Security Boundary
Devin Connect enforces policy twice: first inside Devin's cloud configuration (governed by Devin Security Profiles), and second locally at the Devin Connect gateway daemon. If an administrator adds a route on the gateway without enabling it in the Devin console (or vice versa), the connection fails closed. Furthermore, the gateway refuses hostnames resolving to loopback, link-local (169.254.169.254), or private management interfaces, mitigating Server-Side Request Forgery (SSRF) threats.
Devin Outposts: Physical-Grade Isolation on Self-Hosted Compute
For government defense systems, Tier-1 banking cores, and proprietary IP owners, cross-VPC networking is often insufficient: source code and credentials must never leave the organization's physical or sovereign cloud boundary.
Devin Outposts solves this by physically separating the Brain from the Devbox, bringing the execution sandbox directly into the customer's private data center or Kubernetes cluster.
+-------------------------------------------------------------+
| Cognition Cloud |
| |
| +-----------------------------------------------------+ |
| | Stateless Brain (Inference & Logic) | |
| +--------------------------+--------------------------+ |
| ^ |
| | Queue Polling & Control |
| | (Outbound HTTPS / SSE) |
+------------------------------|------------------------------+
|
No Inbound Ports
Corporate Firewall
|
+------------------------------|------------------------------+
| Customer Private Infrastructure / EKS Cluster |
| v |
| +-----------------------------------------------------+ |
| | devin-outpost-k8s Orchestrator | |
| +--------------------------+--------------------------+ |
| | Ephemeral Pod Spawn |
| v |
| +-----------------------------------------------------+ |
| | Devin Outpost Worker (Devbox) | |
| | | |
| | - Clones from Internal GitLab | |
| | - Pulls from Private Artifactory | |
| | - Uses Internal HashiCorp Vault Secrets | |
| | - Compiles on Local GPUs / Enterprise Hardware | |
| +-----------------------------------------------------+ |
+-------------------------------------------------------------+
The Outposts Operating Model
- The Brain Remains in Cloud: Cognition provides reasoning models, planning orchestration, and contextual guidance via cloud APIs.
- The Devbox Moves In-House: Every command, filesystem read/write, git clone, container build, and security test executes on customer-operated hardware (bare-metal servers, AWS EC2, VMware VMs, or Kubernetes pods).
- Outbound-Only HTTPS: Outpost workers connect outbound to
https://api.devin.aion port 443. There are zero inbound open ports, no public IP assignments, and no inbound VPN tunnels. - Zero Code Exfiltration: SCM repositories, internal npm/Maven tokens, Kerberos tickets, and database schemas remain on local disk and RAM. Only agent status messages, tool invocation logs, and sanitized execution results pass back to the Brain.
Fleet Orchestration and Lifecycle Mechanics
In an enterprise deployment, platform teams run an orchestrator service that interfaces with Devin's Fleet API (https://api.devin.ai/opbeta/outposts/*):
- Watch: The orchestrator maintains an open Server-Sent Events (SSE) stream against the queue endpoint:
curl -N -H "Authorization: Bearer $DEVIN_API_TOKEN" \ "https://api.devin.ai/opbeta/outposts/devins?outpost=<outpost_id>&watch=true&cursor=<cursor>" - Atomic Claim: When a developer assigns a task to an outpost (via UI or Slack
!outpost <name>), the orchestrator claims the session using an atomic compare-and-swap (CAS) operation:
If another worker claims the task first, the endpoint returns HTTPcurl -X POST -H "Authorization: Bearer $DEVIN_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{"acceptor_id": "k8s-worker-node-42"}' \ "https://api.devin.ai/opbeta/outposts/devins/{session_id}/claim"409 Conflict, and the worker gracefully transitions to the next item in the queue. - Spawn: The orchestrator spawns an ephemeral container or VM pre-configured with local tooling (
git,ffmpegfor screen captures, Chromium for browser testing, private root CA certificates) and executes:devin worker start --session=<session_id> --outpost=<outpost_id> --acceptor-id=<worker_id> - State Snapshotting: Devin sessions support suspension and resumption. To prevent catastrophic state loss between resumes, the worker stamps
.devin-outpost-stamps/<session_id>into the working directory and snapshot-persists~/.devin/worker. - Teardown: Upon session termination, the container or VM is wiped, guaranteeing zero cross-session credential bleed.
For Kubernetes environments, Cognition provides devin-outpost-k8s, a production-grade open-source operator deployed via Helm that automates queue tracking, pod spawning, and cleanup out of the box.
Architectural Comparison Matrix
| Evaluation Dimension | Static IP Allowlisting | AWS PrivateLink (Dedicated SaaS) | Devin Connect Gateway | Devin Outposts (Self-Hosted) |
|---|---|---|---|---|
| Data Boundary & Residency | Code flows to Cognition multi-tenant cloud | Code flows to Cognition single-tenant VPC | Code flows to Cognition single-tenant VPC | Code never leaves customer infrastructure |
| Inbound Network Exposure | High (Public ALB/NLB exposed to Internet) | Zero public internet exposure (Private AWS backbone) | Zero public internet exposure (PrivateLink or Outbound Tunnel) | Zero inbound exposure (Strictly outbound HTTPS :443) |
| Network Complexity | Low (Firewall rules + DNS) | Moderate (NLBs, VPC Endpoint Services, IAM) | Low to Moderate (Single proxy container + DNS) | Moderate to High (K8s operator, ephemeral VM pools) |
| Operational Overhead | Minimal | Low (Cognition manages compute) | Low (Lightweight stateless container) | High (Customer manages compute, scaling, patching) |
| Deep Packet Inspection (DPI) | Supported via WAF / Perimeter Firewall | Supported via AWS GWLB | Native JSON audit logging to SIEM | Native host SIEM / EDR / Falco daemonsets |
| Hardware Flexibility | Standard cloud instances | Standard cloud instances | Standard cloud instances | Custom (Local GPUs, Mac minis for iOS, Bare Metal) |
| Best-Fit Enterprise Tier | PoC / Non-sensitive internal tools | Large enterprise standard production | Multi-domain / hybrid enterprise networks | Highly regulated, defense, banking, zero-trust IP |
Strategic DevSecOps Implementation Guide
Platform teams evaluating Devin should adopt the following phased implementation framework:
+-----------------------------------------------------------------------------+
| Enterprise Security Decision Tree |
+-----------------------------------------------------------------------------+
|
Are internal codebases and credentials
legally allowed to be processed in a
single-tenant Cognition-managed VPC?
|
+-------------------+-------------------+
| |
YES NO
| |
Does the network require v
connecting to >3 internal domains +---------------------+
or on-prem/hybrid clouds? | Devin Outposts |
| | (Self-Hosted Workers|
+-------+-------+ | via K8s Operator) |
| | +---------------------+
YES NO ^
| | |
v v |
+----------------+ +-------------------+ |
| Devin Connect | | AWS PrivateLink | |
| (Direct / | | (Dedicated VPC | |
| Tunnel Mode) | | per-service NLB) | |
+----------------+ +-------------------+ |
| | |
+-------------------+---------------------------+
|
End-User Workstation Pre-Requisite:
Allowlist HTTPS 443 to `*.devinapps.com`
Critical Security Prerequisites
- Developer Workstation Access: Devin’s interactive web features (the in-browser VSCode editor and desktop streaming session) are served via iframes from
*.devinapps.com. Corporate egress proxies must allow developer workstations to reach*.devinapps.comover HTTPS port 443, independent of how the Devbox connects to backend repositories. - Credential Rotation & Service Accounts: Never grant Devin personal developer tokens. Create dedicated machine accounts in GitLab or GitHub Enterprise Server (e.g.,
devin-agent-bot) with explicitly bounded group-level permissions. - Private PKI Certificates: When self-hosted SCM or Artifactory instances terminate TLS using an internal enterprise Certificate Authority (CA), ensure your Devin environment blueprints (for Dedicated SaaS) or base container images (for Outposts) bundle your corporate CA root certificate chain.
The 365Finds Institutional Judgment
365Finds recommends the following enterprise roadmap:
- Reject direct IP allowlisting for production SCM: Do not open perimeter firewalls for source code repositories. The marginal cost of configuring AWS PrivateLink or Devin Connect is negligible compared to the regulatory and security liabilities of exposing internal Git servers.
- Adopt Customer Dedicated SaaS with Devin Connect as the Default: For 80% of enterprise organizations, Customer Dedicated Deployment paired with Devin Connect represents the optimal balance of security and developer velocity. You achieve complete AWS backbone isolation and auditability without shifting the massive operational burden of sandbox VM lifecycle management onto your internal platform engineering staff.
- Deploy Devin Outposts for Air-Gapped and Sovereign IP Mandates: When regulatory mandates (such as ITAR, HIPAA, PCI-DSS Level 1, or strict banking bank-secrecy acts) preclude code exfiltration to any third-party infrastructure, Devin Outposts is the only viable architecture. Deploy it using the official
devin-outpost-k8soperator on your existing Kubernetes infrastructure, ensure ephemeral worker pods are scrubbed after every session, and configure automated node autoscaling to absorb Devin's concurrent compute demands.