AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Connecting Devin to Private Networks: AWS PrivateLink, Devin Connect, and Devin Outposts Architectural Guide

Serene Tay · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

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:

  1. Public Egress Static IP Allowlisting: Ingress firewall filtering on customer load balancers.
  2. Customer Dedicated Deployment via AWS PrivateLink & Devin Connect: Cross-VPC private backbone routing with single-tenant isolation.
  3. 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:

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

  1. Customer Perimeter: The enterprise provisions an internet-facing Application Load Balancer (ALB) or Network Load Balancer (NLB) fronting the internal SCM or artifact repository.
  2. 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.
  3. Public DNS: A public DNS record (e.g., gitlab-devin.corp.example.com) points to the external load balancer.

Operational Caveats


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

  1. 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).
  2. VPC Endpoint Service: The platform team creates an AWS VPC Endpoint Service using the NLB as the service target.
  3. Cross-Region Compatibility: If the customer's workloads reside in us-east-1 while the Cognition tenant is provisioned in us-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
    
  4. 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
    
  5. 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:

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

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/*):

  1. 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>"
    
  2. 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:
    curl -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"
    
    If another worker claims the task first, the endpoint returns HTTP 409 Conflict, and the worker gracefully transitions to the next item in the queue.
  3. Spawn: The orchestrator spawns an ephemeral container or VM pre-configured with local tooling (git, ffmpeg for 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>
    
  4. 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.
  5. 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 DimensionStatic IP AllowlistingAWS PrivateLink (Dedicated SaaS)Devin Connect GatewayDevin Outposts (Self-Hosted)
Data Boundary & ResidencyCode flows to Cognition multi-tenant cloudCode flows to Cognition single-tenant VPCCode flows to Cognition single-tenant VPCCode never leaves customer infrastructure
Inbound Network ExposureHigh (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 ComplexityLow (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 OverheadMinimalLow (Cognition manages compute)Low (Lightweight stateless container)High (Customer manages compute, scaling, patching)
Deep Packet Inspection (DPI)Supported via WAF / Perimeter FirewallSupported via AWS GWLBNative JSON audit logging to SIEMNative host SIEM / EDR / Falco daemonsets
Hardware FlexibilityStandard cloud instancesStandard cloud instancesStandard cloud instancesCustom (Local GPUs, Mac minis for iOS, Bare Metal)
Best-Fit Enterprise TierPoC / Non-sensitive internal toolsLarge enterprise standard productionMulti-domain / hybrid enterprise networksHighly 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

  1. 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.com over HTTPS port 443, independent of how the Devbox connects to backend repositories.
  2. 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.
  3. 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:

  1. 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.
  2. 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.
  3. 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-k8s operator 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.

References