Skip to content

Add Tailscale infrastructure for isolated AI agent networking#6

Merged
planeyang merged 1 commit into
masterfrom
planeyang/ai-agent-infrastructure
Feb 26, 2026
Merged

Add Tailscale infrastructure for isolated AI agent networking#6
planeyang merged 1 commit into
masterfrom
planeyang/ai-agent-infrastructure

Conversation

@planeyang
Copy link
Copy Markdown
Collaborator

Summary

  • Adds modular Terraform infrastructure for running AI agents in an isolated VPC (AWS + GCP)
  • Uses Tailscale ACLs with default-deny to prevent agents from reaching the corporate intranet
  • Includes egress proxy (Squid) with domain allowlisting to control external API access
  • Ephemeral auth keys auto-deregister agent devices on disconnect

Modules

Module Purpose
tailscale-acl ACL policy, groups, tags, auth keys
agent-network/{aws,gcp} Isolated VPC, subnets, NAT, firewall
agent-compute/{aws,gcp} Agent EC2/GCE instances
subnet-router/{aws,gcp} Tailscale subnet router
egress-proxy Squid domain allowlist proxy

Test plan

  • Review Tailscale ACL policy for completeness
  • terraform init + terraform plan with sample tfvars
  • Verify no rules grant tag:ai-agent access to tag:intranet
  • Validate egress proxy domain allowlist covers required APIs

🤖 Generated with Claude Code

Modular Terraform setup that creates an isolated VPC for AI agents with
Tailscale ACLs enforcing default-deny access to the corporate intranet.
Includes egress proxy for domain allowlisting, subnet router, and
ephemeral auth keys. Supports both AWS and GCP.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@planeyang planeyang merged commit 8e67e74 into master Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant