/cpln:native-networkingfrom cpln
Connects Control Plane workloads to private VPCs, on-prem networks, and cross-cloud resources via AWS PrivateLink, GCP Private Service Connect, or wormhole agent tunnels.
Ships in cpln. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tool availability: the agent tools and the identity network-resource tools need
?toolsets=full; reconnect with it or use the CLI.
A Control Plane workload reaches a private or cross-cloud endpoint through an identity (gvc-scoped) carrying one of two resource arrays. Attach that identity to the workload (spec.identityLink) — without the attachment, nothing routes. Both paths are wired independently of the workload's external egress firewall: you do not open an outboundAllow* rule to reach them. The two options:
nativeNetworkResources) — cloud-native private connectivity over AWS PrivateLink or GCP Private Service Connect. No agent, lowest latency, no public-internet traversal. The catch: the consumer-side endpoint is created by Control Plane support, not self-service.networkResources) — a lightweight VM or container you run inside the target network that tunnels TCP traffic. Self-service, works for any network (VPC, on-prem, cross-cloud, Azure, a laptop), but throughput depends on the agent instance size.Scope: this skill is the reference for the comparison, producer-side setup, the identity schema, agent sizing, and permissions. For the agent deployment walkthrough (create, generate K8s/Docker/VM artifacts, wire up the identity, verify the tunnel), delegate to the setup-agent skill.
| Target | Option | Agent? | Consumer side set up by |
|---|---|---|---|
| AWS service (RDS, etc.) | AWS PrivateLink (native) | No | Support, then you accept the endpoint in the AWS console |
| GCP service (Cloud SQL, etc.) | GCP Private Service Connect (native) | No | Support (Cloud SQL needs no manual acceptance) |
| On-prem / data center | Agent | Yes | Self-service |
| Cross-cloud / multi-VPC | Agent | Yes | Self-service |
| Azure VNet, or a developer laptop | Agent | Yes | Self-service |
This skill is about reaching a private network, not running in one. If the user wants the workload itself to run on their own hardware — bare metal, an on-prem VM, a data-center server — that is a BYOK location, not an agent: see mk8s-byok.
Once the identity is attached (spec.identityLink), the workload reaches either kind of resource like an ordinary host — no SDK, env var, or code change:
name (or its FQDN) on one of the configured ports — e.g. a Postgres client points at aws-rds:5432 (native) or on-prem-db:5432 (agent).IPs/FQDN on the private side.FQDN, not the name, when the target serves TLS — the certificate is issued for the FQDN, so the short name fails certificate validation.Traffic flows from the workload, through Control Plane infrastructure, to your cloud's private endpoint — never the public internet. Setup:
github.com/controlplane-com/cpln-rds-producer (new-infra mode also builds the VPC/RDS/Secrets Manager; existing-infra mode adds only RDS Proxy + NLB + Lambda + the endpoint service). Output: the endpoint service name.github.com/controlplane-com/gcp-psc-producer-automation. Output: the service attachment. For an existing Cloud SQL instance, enable PSC via gcloud — it is not available in the GCP console:
gcloud sql instances patch INSTANCE --enable-private-service-connect --allowed-psc-projects=cpln-prod01
The allowed consumer project must be cpln-prod01. Cloud SQL must use a private IP only.[email protected] (or ping support on Slack). They create the consumer-side endpoint and associate it with your org.nativeNetworkResources entry to the identity (tools and schema below), then attach the identity to the workload.The identity entry is inert until support has wired the consumer side (and, for AWS, you have accepted the endpoint connection). Until then — or if the
endpointServiceNameis mistyped — the platform silently skips it (no error, no connection). So add the entry last, not first.
nativeNetworkResources:
- name: "aws-rds" # a label; must be unique and must NOT equal the FQDN
FQDN: "rds-proxy.us-west-2.amazonaws.com"
ports: [5432]
awsPrivateLink:
endpointServiceName: "com.amazonaws.vpce.us-west-2.vpce-svc-12345abcdef"
- name: "gcp-sql"
FQDN: "my-sql.us-central1.gcp.internal"
ports: [5432]
gcpServiceConnect:
targetService: "projects/PROJECT/regions/us-central1/serviceAttachments/NAME"
An agent runs inside the target network and opens a persistent outbound connection to Control Plane; workload requests are tunneled through it (workload, Control Plane, agent, private endpoint). Use it for on-prem, cross-cloud, Azure, or local development — anywhere PrivateLink/PSC does not reach.
The deployment flow (create the agent, deploy it, attach networkResources, verify) is owned by the setup-agent skill. The pieces that belong here regardless of how it is deployed:
networkResources:
- name: "on-prem-db"
agentLink: "//agent/dc-agent" # or /org/ORG/agent/dc-agent
IPs: ["10.0.1.50"] # OR FQDN — exactly one
ports: [5432, 3306]
High availability (reference/agent.mdx): run agents in a fixed-size instance group (autoscaling group on AWS, VMSS on Azure) sized min 2, max = number of availability zones. The agent is not CPU-intensive — do not autoscale on CPU. Agents run active-active: every instance registers and serves traffic at once (load-balanced); if one misses heartbeats it is dropped and the rest keep serving while the group replaces it.
Bi-directional: the agent also exposes a proxy on port 3128 so systems inside the private network can call Control Plane workloads without opening external firewall access — enable with cpln agent up --exposeProxy and grant it on the workload's Internal firewall (Add Agent — see firewall-networking).
Benchmarked with qperf (30s) from a workload in the server VM's region. Plan against baseline bandwidth, not burst.
AWS — server c5.2xlarge in aws-us-west-2:
| Agent instance | Bandwidth (MB/s) | Latency (us) | Baseline (Gbps) |
|---|---|---|---|
| No agent | 307.6 | 585.6 | n/a |
| t2.micro | 21.23 | 1301 | 0.064 |
| t3.small | 143.9 | 1107 | 0.128 |
| c5.large | 341.1 | 629.6 | 0.75 |
| c4.xlarge | 70.25 | 680.8 | 5.0 |
Find any instance's baseline with aws ec2 describe-instance-types --query "InstanceTypes[].[InstanceType,NetworkInfo.NetworkCards[0].BaselineBandwidthInGbps]".
GCP — server e2-standard-8 in gcp-us-east1:
| Agent machine | Bandwidth (MB/s) | Latency (us) |
|---|---|---|
| No agent | 313.4 | 251.2 |
| n2-standard-2 | 250.3 | 407.7 |
| n2-standard-8 | 223.3 | 350.7 |
| n2-standard-4 | 217.5 | 354.1 |
| n1-standard-1 | 199.9 | 409.3 |
Both arrays live on the identity object. Constraints are enforced by the platform (Joi) — the typed tools mirror them.
networkResources (agent-based):
| Field | Required | Notes |
|---|---|---|
name | Yes | label or domain; the dialable hostname |
agentLink | No | //agent/NAME or /org/ORG/agent/NAME |
IPs | one of | 1-5 IPv4 — xor with FQDN |
FQDN | one of | one domain — xor with IPs |
resolverIP | No | IPv4 of the DNS resolver the agent uses to resolve the FQDN inside the private network |
ports | Yes | 1-10 ports, each 0-65535 |
nativeNetworkResources (PrivateLink / PSC):
| Field | Required | Notes |
|---|---|---|
name | Yes | label; must not equal the FQDN |
FQDN | No | use it for TLS targets |
ports | Yes | 1-10 ports, each 0-65535 |
awsPrivateLink.endpointServiceName | one of | xor with gcpServiceConnect |
gcpServiceConnect.targetService | one of | projects/…/regions/…/serviceAttachments/… — xor with awsPrivateLink |
Global rules (Joi-enforced): each array holds max 50 entries, and name and FQDN must be unique across both arrays combined. Operationally (not a schema rule), two native resources that share a port need separate PrivateLink/PSC endpoints.
mcp__cpln__add_identity_native_network_resource (PrivateLink/PSC) or mcp__cpln__add_identity_network_resource (agent-based) — each takes org, gvc, identity, and one resource. Create the identity first (create_identity, see access-control) if it does not exist.mcp__cpln__remove_identity_network_resource removes from either array by name (destructive — present the impact and get the user's explicit approval before calling). There is no separate native-remove tool.mcp__cpln__list_identity_network_resources lists both arrays; mcp__cpln__get_agent_info shows whether an agent is active plus its peerCount / serviceCount; then confirm the workload actually connects to the endpoint.| Permission | Grants | Implies |
|---|---|---|
view | read-only | |
use | reference the agent in an identity | view |
edit | modify the agent | view |
create | create agents | |
delete | delete agents | |
manage | full access | create, delete, edit, use, view |
| Symptom | Cause and fix |
|---|---|
| Native resource never connects (no error) | Support hasn't created the endpoint / allow-listed the service, (AWS) the connection wasn't accepted, or endpointServiceName is mistyped — the platform silently skips an unmatched native resource. |
| TLS / certificate error to a native resource | Connect via the FQDN, not the name — the cert is issued for the FQDN. |
| "Provide exactly one of…" on the entry | IPs xor FQDN (agent), or awsPrivateLink xor gcpServiceConnect (native) — supply exactly one. |
| Duplicate name/FQDN rejected | Names and FQDNs must be unique across both arrays; the name must not equal any FQDN. |
Agent shows inactive (get_agent_info) | No recent heartbeat — the deployed agent is down or cannot reach Control Plane; check get_agent_eventlog. |
| Workload cannot reach the agent's network | The identity is not attached to the workload (spec.identityLink), or the resource ports are wrong. |
| Agent will not delete | It is still referenced by an identity — remove the networkResource (or detach the identity) first. |
| Bootstrap config lost | It is shown only when the user creates the agent in the Console (the create_agent link) and is immutable — delete and recreate the agent. |
Without MCP, or in CI/CD with CPLN_TOKEN: cpln agent create|manifest|up|info|eventlog. Network resources on an identity are not settable via cpln identity create/update (description and tags only); edit the identity YAML with cpln identity edit REF or cpln apply -f identity.yaml.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub controlplane-com/ai-plugin --plugin cpln32 skills in this plugin
/access-controlPrimary skill for access control, policies, and RBAC on Control Plane. Use when the user asks about permissions, policies, service accounts, user access, group membership, bindings, who can do what, least-privilege, or IAM./audit-complianceAudit trail and compliance on Control Plane. Use when the user asks about audit logs, who changed what, change tracking, audit contexts, writing custom audit events, security monitoring, SOC 2, HIPAA, or PCI compliance./autoscaling-capacityWorkload autoscaling and Capacity AI on Control Plane. Use when the user asks about scaling up/down, min/max replicas, scale-to-zero, concurrency/RPS/CPU/memory/latency scaling, KEDA, event-driven scaling, or right-sizing./cdn-rate-limitingCDN caching and request rate limiting for Control Plane workloads. Use when the user asks about CDN, Cloudflare, CloudFront, edge caching, rate limiting, request throttling, per-key or per-route limits, or DDoS protection./cplnWrites cpln CLI commands and workflows for Control Plane. Use when the user asks about cpln login, cpln apply, cpln workload, CLI or CI/CD deploys, container debugging with cpln exec/logs, or any cpln resource command./create-appWrites, builds, and deploys an app the user asks for in the chat, with no repository and no image yet. Use when the user asks to create, generate, write, vibe-code, prototype, or scaffold an app, API, site, bot, game, or service and run it on Control Plane, or to change an app made this way.Other plugins' skills for the same job