Introducing an autonomous AI software engineer like Devin into enterprise development workflows creates a sharp conflict for platform engineering and DevSecOps teams. On one side stands the massive productivity upside of autonomous bug fixing, migrations, and backlog grooming. On the other lies the strict mandate of corporate information security: core codebases reside on internal GitHub Enterprise Server (GHES) or self-managed GitLab instances, while build pipelines and test suites rely on staging databases and microservices locked within isolated Virtual Private Clouds (VPCs). Routing sensitive IP and production-like test queries through the public internet is a non-starter.
At 365Finds, our institutional position is unequivocal: enterprise teams should never compromise on network perimeter isolation when adopting autonomous AI. Relying on public IP allowlisting or generic reverse proxies exposes corporate infrastructure to avoidable risks. The only architecturally sound deployment pattern for enterprise scale is deploying Devin within a Customer Dedicated Deployment interconnected through AWS PrivateLink.
This comprehensive guide details the network topology, AWS infrastructure configuration, security group controls, Customer Managed Key (CMK) encryption, and repository access pipeline required to run Devin securely without exposing a single private service to the public internet.
1. Devin Enterprise Architecture: The Brain vs. The Devbox
To configure private networking correctly, platform architects must understand Devin's bifurcated architecture:
- The Brain (Stateless Reasoning Engine): Hosted centrally within Cognition's cloud infrastructure. The Brain handles multi-step reasoning, task planning, and model inference. It does not store customer codebase snapshots or host execution runtimes.
- The Devbox (Isolated Execution Environment): The runtime sandbox where Devin clones code, invokes shells, edits files, builds containers, and executes integration tests.
In Devin’s standard Enterprise Cloud tier, Devboxes execute in Cognition's multi-tenant cloud. For enterprises with air-gapped repositories or strict VPC compliance rules, Cognition provides the Customer Dedicated Deployment (and its encryption-hardened counterpart, Enterprise Assured).
Under Customer Dedicated Deployment, Cognition provisions an auto-scaling, single-tenant AWS VPC dedicated exclusively to your organization. The Devbox runs entirely inside this isolated boundary. Communication between your corporate VPC and the Devin tenant VPC traverses AWS PrivateLink—ensuring all repository cloning, build artifact pulling, and test traffic remains strictly on the AWS private network backbone.
+-----------------------------------------------------------------------------------+
| Customer Corporate AWS Account / On-Premise DC |
| |
| +--------------------+ +-----------------------+ +------------------------+ |
| | GitHub Enterprise | | Internal Microservice | | Private Artifact Store | |
| | Server / GitLab | | Staging APIs / DBs | | (Artifactory / Nexus) | |
| +---------+----------+ +-----------+-----------+ +-----------+------------+ |
| | | | |
| +--------------------------+---------------------------+ |
| | |
| +------------------v-------------------+ |
| | Network Load Balancer (Internal NLB) | |
| +------------------+-------------------+ |
| | |
| +------------------v-------------------+ |
| | VPC Endpoint Service | |
| | (com.amazonaws.vpce.<region>.svc-id) | |
| +------------------+-------------------+ |
+---------------------------------------|-------------------------------------------+
| AWS PrivateLink (AWS Backbone)
+---------------------------------------|-------------------------------------------+
| Cognition Customer-Dedicated Tenant | |
| | |
| +------------------v-------------------+ |
| | Interface VPC Endpoint | |
| +------------------+-------------------+ |
| | |
| +-----------------------v-----------------------+ |
| | Devin Devbox Sandbox (Single-Tenant VPC) | |
| | - Shell & Container Runtimes | |
| | - Ephemeral Code Clone & Build Artifacts | |
| +-----------------------+-----------------------+ |
| | TLS 443 Control WebSocket |
+---------------------------------------|-------------------------------------------+
v
+---------------------------------------+
| Cognition Cloud: Devin "Brain" |
| (Stateless AI Reasoning Engine) |
+---------------------------------------+
2. Architectural Design Choice: Direct Endpoint Services vs. Devin Connect Gateway
Enterprise platform teams can establish PrivateLink connectivity via two primary architectural patterns:
| Architectural Pattern | How It Works | Strengths | Operational Drawbacks | 365Finds Recommendation |
|---|---|---|---|---|
| Direct Endpoint Service per Service | A dedicated AWS NLB and VPC Endpoint Service are deployed in front of each individual internal host (e.g., one for GHES, one for Artifactory, one for staging API). | Completely native AWS constructs; no intermediary proxy containers to maintain. | Does not scale well; requires provisioning separate Endpoint Services, Interface Endpoints, and DNS overrides for every internal domain. | Suitable only if Devin strictly accesses a single internal system (e.g., GHES alone). |
| Devin Connect (PrivateLink Mode) | A lightweight HTTP CONNECT proxy gateway is deployed in your private subnet, fronted by a single NLB and VPC Endpoint Service. Devin reaches the gateway over PrivateLink, and the gateway routes traffic to internal systems. | Single endpoint covers all internal services; central default-deny allowlist; native internal DNS resolution; zero certificate termination; emits JSON audit logs to SIEM. | Requires hosting a small containerized gateway inside your VPC. | Strongly Recommended for Enterprise Workflows. |
365Finds Verdict: For any enterprise where Devin must interact with git repositories, artifact registries, and internal microservices simultaneously, Devin Connect in PrivateLink mode is vastly superior. Building discrete Endpoint Services for dozens of internal endpoints creates unmanageable AWS resource sprawl and DNS configuration overhead.
3. Step-by-Step Implementation Guide
The following technical implementation establishes direct, zero-public-exposure PrivateLink connectivity between an enterprise AWS environment and Devin.
Step 1: Provision Private Subnets and the Network Load Balancer (NLB)
Deploy an internal AWS Network Load Balancer in the VPC housing your internal services across at least two Availability Zones for high availability.
-
Create the Target Group: Configure a TCP target group pointing to your internal servers (e.g., GitHub Enterprise Server on ports 443 and 22, or the Devin Connect Gateway on port 8443).
- Target Type:
IPorInstance - Protocol:
TCP - Health Check: TCP port check or HTTP
/healthzcheck
- Target Type:
-
Deploy the Internal NLB: Ensure the NLB is explicitly marked Internal (Scheme:
internal), residing in private subnets with no Internet Gateway routes.- Attach the listener corresponding to your target service (e.g., TCP 443).
# Example AWS CLI: Create TCP Target Group for Internal Git Service
aws elbv2 create-target-group \
--name tg-devin-internal-git \
--protocol TCP \
--port 443 \
--vpc-id vpc-0123456789abcdef0 \
--target-type ip
# Create Internal Network Load Balancer
aws elbv2 create-load-balancer \
--name nlb-devin-privatelink \
--type network \
--scheme internal \
--subnets subnet-0aaa1111 subnet-0bbb2222
Step 2: Create the VPC Endpoint Service and Grant Principal Permissions
Once the NLB is operational, expose it as an AWS VPC Endpoint Service that Cognition’s dedicated account can consume.
-
Create the Endpoint Service: Link the Endpoint Service to the NLB created in Step 1. Require acceptance for incoming connection requests.
-
Configure Cross-Region Support (If Applicable): If your internal workloads reside in
us-east-1but Cognition provisions your dedicated Devin tenant inus-west-2, AWS PrivateLink cross-region functionality must be enabled:aws ec2 modify-vpc-endpoint-service-configuration \ --service-id vpce-svc-0abc123456789def0 \ --add-supported-regions us-west-2 -
Authorize Cognition’s AWS Account Principal: Add Cognition's AWS account ID (provided by your Cognition account team) to the allowed principals list:
aws ec2 modify-vpc-endpoint-service-permissions \ --service-id vpce-svc-0abc123456789def0 \ --add-allowed-principals arn:aws:iam::<COGNITION_ACCOUNT_ID>:root -
Coordinate Details with Cognition: Provide your Cognition representative with:
- The VPC Endpoint Service name (e.g.,
com.amazonaws.vpce.us-west-2.vpce-svc-0abc123456789def0). - The exposed TCP ports (e.g., 443, 8443).
- The internal domain names that must resolve through PrivateLink (e.g.,
git.corp.example.com,artifactory.corp.example.com).
- The VPC Endpoint Service name (e.g.,
Step 3: Cognition Provisioning and Connection Acceptance
Upon receiving the service details, Cognition creates an Interface VPC Endpoint within your dedicated tenant VPC.
- A connection request will appear in your AWS Console under
VPC → Endpoint Services → Endpoint Connections. - Review and approve the connection request (or enable
AcceptanceRequired: falsefor automated approval). - Cognition configures internal split-horizon DNS inside Devin's tenant so that requests to
git.corp.example.comautomatically resolve to the private IP addresses of the Interface Endpoint.
Step 4: Network Defense-in-Depth (Security Groups and NACLs)
Zero-trust architecture mandates strict boundary enforcement around the NLB and target endpoints:
- NLB Target Security Groups: Configure the security groups on your GitHub Enterprise Server or internal microservices to accept traffic only from the private IP ranges of the NLB subnets. Deny all broader traffic.
- Network Access Control Lists (NACLs): Ensure the private subnets hosting the NLB allow inbound TCP traffic on service ports (e.g., 443) and outbound ephemeral return traffic (ports 1024–65535) strictly within internal CIDR blocks.
- Session-Level Security Profiles: Inside Devin’s Enterprise Admin console, configure Security Profiles. These policies enforce fine-grained egress rules at the Devin Devbox OS level, restricting the agent from making arbitrary outbound calls to unauthorized IP ranges or domain names.
4. Deploying Devin Connect Gateway for Multi-Service Topologies
When Devin must access internal APIs, databases, and package managers alongside Git, deploying the containerized Devin Connect Gateway avoids configuring multiple Endpoint Services.
Deploy the gateway container into an Amazon ECS (Fargate) or EKS cluster in your private subnet using the following fail-closed configuration:
# /etc/devin-gateway/config.yaml
schema_version: 1
# Admin listener for liveness, readiness, and Prometheus metrics
admin_listen: 0.0.0.0:9090
# Data-plane HTTP CONNECT listener targeted by the NLB
listen: 0.0.0.0:8443
# Internal corporate DNS resolver
dns:
nameservers: ["10.0.0.2:53"]
timeout: 5s
# Strict default-deny allowlist
routes:
- name: internal-scm
rules:
- hostname: "git.corp.example.com"
- hostname: "artifactory.corp.example.com"
ports: [443]
- name: staging-microservices
rules:
- hostname: "api.staging.internal.example.com"
ports: [443, 8080]
- name: test-database-jump
rules:
- ipv4: "10.20.40.0/24"
ports: [5432]
Key Security Guardrails of the Gateway:
- End-to-End TLS Forwarding: The gateway functions as an HTTP CONNECT proxy. It does not terminate or inspect TLS traffic between Devin and your internal services; opaque bytes are relayed directly.
- SSRF Prevention: The gateway actively blocks requests if DNS resolves an allowlisted hostname to loopback (
127.0.0.1), link-local, or cloud metadata endpoints (169.254.169.254). - SIEM Auditing: The gateway outputs structured JSON logs to stdout for ingestion into Amazon CloudWatch, Datadog, or Splunk, logging every
conn_open,conn_close, and unauthorizeddenyevent with byte counts and durations.
5. Enterprise Assured: Customer Managed Keys (AWS KMS)
For regulated enterprises, isolating network paths is insufficient; data at rest must remain under customer cryptographic sovereignty. Devin’s Enterprise Assured deployment tier allows organizations to enforce server-side encryption across all session storage, repository clones, and VM snapshots using an enterprise AWS KMS key.
KMS Setup Pipeline:
- Key Creation: Create a symmetric encryption key in the same AWS region as your Cognition dedicated tenant.
- Assign Mandatory Alias: Cognition’s provisioning pipeline requires the exact alias
alias/devin-customer-managed-key.aws kms create-alias \ --alias-name alias/devin-customer-managed-key \ --target-key-id <YOUR-KMS-KEY-ID> - Configure Key Policy: Grant Cognition’s deployment IAM roles permission to perform cryptographic operations while retaining revocation rights in your AWS account:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowCognitionDevinEncryption", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::<COGNITION_ACCOUNT_ID_1>:root", "arn:aws:iam::<COGNITION_ACCOUNT_ID_2>:root" ] }, "Action": [ "kms:Encrypt", "kms:Decrypt", "kms:ReEncrypt*", "kms:GenerateDataKey*", "kms:DescribeKey" ], "Resource": "*" } ] } - Instant Revocation Capability: If a security incident occurs, revoking this key policy immediately locks Cognition’s tenant out of reading or writing any stored data, providing cryptographic kill-switch capabilities.
6. SCM Authentication and Internal Testing Pipeline
With private network routing and storage encryption established, platform teams must connect source code management systems without exposing static credentials.
GitHub Enterprise Server (GHES) Integration
- Preferred Path: Dedicated GitHub App: Register an enterprise GitHub App on your GHES instance. Install it across targeted organizations. This eliminates token expiration friction and scopes access strictly to required repositories.
- Alternative: Dedicated Service Account PAT: If using Fine-Grained Personal Access Tokens, create a dedicated service account (e.g.,
devin-service-bot). Assign minimum necessary scopes:Contents: Read and write,Pull requests: Read and write,Issues: Read and write, andMetadata: Read only. Store the token in Devin Secrets.
Running Integration Tests against Internal VPC Microservices
Devin builds and tests software using environment Blueprints. Once PrivateLink is established, Devin’s Devbox can resolve internal staging microservices seamlessly:
# .devin/blueprint.yaml
name: enterprise-integration-environment
image: ubuntu-22.04
tools:
- node: 20
- python: 3.11
- docker
env:
INTERNAL_API_URL: "https://api.staging.internal.example.com"
DATABASE_HOST: "10.20.40.15"
steps:
- run: |
# Verify PrivateLink internal DNS resolution
curl -f -k https://api.staging.internal.example.com/healthz
npm ci
npm test -- --runInBand
Because the network route is restricted to the PrivateLink interface endpoint, Devin cannot pivot outside the designated staging subnets.
7. Architectural Comparison: Connectivity Options for Devin
| Criterion | AWS PrivateLink (365Finds Standard) | AWS Transit Gateway / VPC Peering | Public IP Allowlisting |
|---|---|---|---|
| Attack Surface Exposure | Zero public internet exposure; strictly unidirectionally accessible endpoint service. | Zero public exposure; however, merges routing domains and exposes CIDR ranges to lateral movement. | High risk; internal services must be published to public IPs behind WAF/firewall allowlists. |
| IP Routing Complexity | No IP CIDR overlapping issues; operates via Layer 4 endpoints. | Complex; requires non-overlapping RFC 1918 CIDR blocks between corporate VPC and tenant. | Simple routing, but severe firewall maintenance overhead. |
| Lateral Movement Risk | Zero; Devin can only reach specifically published NLB listener ports. | Moderate to High; routing table propagation may allow Devin sandbox to probe adjacent subnets. | High; compromised SaaS credentials could allow internet-wide probing. |
| Compliance Readiness (SOC 2, ISO 27001, FedRAMP) | Fully compliant with strict banking, defense, and healthcare private-boundary mandates. | Compliant, but audits require extensive route table verification. | Routinely rejected by enterprise InfoSec risk assessments. |
8. 365Finds Platform Engineering Recommendations
- Standardize on Devin Connect with PrivateLink: Do not attempt to manage separate AWS VPC Endpoint Services for each individual developer microservice. Deploy the Devin Connect Gateway behind an internal NLB, configure your corporate DNS resolver, and manage destinations centrally through YAML routes.
- Mandate Enterprise Assured for Regulated Workloads: Ensure customer-owned KMS keys encrypt all S3 tenant storage. Never permit multi-tenant unencrypted caching for proprietary source code.
- Enforce Branch Protections & Review Gates: Autonomous agents should never have permission to push directly to production branches. Enforce GitHub/GitLab branch protections requiring multi-reviewer PR approvals, CI pipeline passes, and Devin Review verification before merging.
- Whitelist Workstation Traffic to
*.devinapps.com: Developer browsers require HTTPS access to*.devinapps.comto render Devin’s interactive VSCode IDE and visual desktop iframes. Ensure corporate proxies do not inadvertently block this management plane traffic.
By combining AWS PrivateLink’s unidirectional network isolation with Customer Managed Keys and structured environment blueprints, enterprise engineering teams can harness the full autonomous power of Devin while maintaining an impenetrable security posture.