Skip to main content
Connic
Back to BlogProduct Spotlight

Connic Bridge: AI Agents for Private Infrastructure

Connic Bridge creates a secure outbound tunnel so AI agents can reach private Kafka, databases, and internal services without opening inbound ports.

February 19, 20267 min readAuthor: Connic Engineering

A Kafka cluster may sit in a private VPC, with a Postgres database behind a corporate firewall and internal APIs reachable only via private DNS. None of these services are accessible from the public internet, and for good reason.

AI agents may still need to react to events in these systems: process Kafka messages, listen for database changes, and call internal services. This requires bridging a cloud-hosted agent platform and infrastructure that was designed to be unreachable.

The Problem With Traditional Approaches

Teams typically reach for one of a few options when connecting cloud services to private infrastructure. Each has real downsides:

VPN / VPC Peering
Complex to set up, expensive to maintain, and creates a broad network-level connection. A single misconfiguration can expose the entire private network. Every vendor that needs access adds another peering relationship to manage.
IP Allowlisting
Requires exposing services on public IPs. IP ranges change. Cloud platforms use shared egress IPs. Teams end up maintaining fragile allowlists that break without warning and widen the attack surface.
Expose Services Publicly
The fastest option, and the most dangerous. Putting a Kafka cluster or database on the public internet, even with authentication, dramatically increases the attack surface. Security teams will (rightfully) block this.

Cloud agents need a way to reach private services without making those services reachable from the internet. Connic Bridge provides that connection.

Connect agents to private systems without inbound ports

A Kafka cluster, Postgres database, internal API, or MCP server can connect through Bridge. Our sales team can map outbound-only routing, allowed hosts, approvals, and traces.

Discuss Bridge access

How Connic Bridge Works

The Connic Bridge is a lightweight agent that runs inside the private network. It makes a single outbound WebSocket connection to the Connic relay, without requiring inbound ports, a VPN, or public exposure.

When a Connic connector needs to reach a service in the private network, the relay forwards the request through the established tunnel to the bridge. The bridge then opens a local TCP connection to the target service.

Bridge Agent
A Docker container deployed inside the VPC. It makes outbound-only connections and controls which services are reachable via an optional allowed hosts list.
Bridge Relay
Managed by Connic. Accepts bridge connections, allocates tunnel endpoints, and routes connector traffic to the correct bridge.
TLS Tunnel
All traffic between the bridge and relay is encrypted via WSS (WebSocket over TLS). Traffic flows bidirectionally through the tunnel.

Setup in Three Steps

Getting Bridge running takes about five minutes with the existing network, certificates, and firewall rules left unchanged.

  1. Generate a Bridge Token

    Navigate to Project Settings > Bridge in the Connic dashboard and click Set Up Bridge. Copy the token that appears. It starts with cbr_ and is only shown once.

    The Connic dashboard Bridge panel showing a freshly generated cbr_ token and a ready-to-run docker run command for the bridge agent.
    Project Settings → Bridge reveals the token once, alongside a copy-paste Docker command preloaded with it.
  2. Deploy the Bridge Agent

    Run the bridge inside the private network. It needs outbound internet access to connect to the relay and local network access to reach the services.

    Docker
    $ docker run -d --name connic-bridge \
      -e BRIDGE_TOKEN=cbr_your_token_here \
      -e ALLOWED_HOSTS=kafka:9092,postgres:5432 \
      connicorg/bridge:latest

    The ALLOWED_HOSTS variable is an optional comma-separated list of host:port pairs. When configured, requests targeting hosts outside the list are rejected. If it is unset or empty, the bridge can connect to every target reachable from its network.

    Prefer Docker Compose? That works too:

    docker-compose.yml
    services:
      connic-bridge:
        image: connicorg/bridge:latest
        restart: always
        environment:
          BRIDGE_TOKEN: cbr_your_token_here
          ALLOWED_HOSTS: kafka:9092,postgres:5432,my-db:5432
  3. Enable Bridge on the Connectors

    When creating or editing a connector, open the Network Access section and choose the bridge from the Bridge dropdown. Connic then routes that connector's traffic through the bridge tunnel instead of connecting directly. The pre-built connectors guide explains the connector layer before Bridge is added.

    A connector's Network Access section with the Bridge dropdown set to a bridge named Production VPC, routing the connector through the private network.
    Each Bridge-capable connector picks a bridge in its Network Access section; leave it unset to connect directly.

    Bridge access is supported on:

    Apache Kafka (inbound + outbound)
    AWS SQS (inbound + outbound)
    PostgreSQL (LISTEN/NOTIFY)
    Email / IMAP / SMTP
    AWS S3 (file downloads)
    HTTP Webhook (outbound)

Security by Design

The bridge was designed with a zero-trust mindset. Every layer limits what's possible:

Outbound Only
The bridge initiates all connections. Existing firewall rules stay unchanged. Nothing in the network needs to accept inbound traffic from the internet.
Optional Allowlist
Set ALLOWED_HOSTS to restrict the bridge to explicitly listed hosts. When it is unset or empty, the bridge can reach any target available from its network.
Project-Scoped Tokens
Each bridge token is tied to a single Connic project. Tokens can be rotated at any time from the dashboard. Revoking a token immediately disconnects the bridge.
End-to-End TLS
All communication between the bridge and the relay is encrypted via WebSocket over TLS. Traffic is never exposed in plaintext, even in transit.

Real-World Use Cases

A few patterns we see teams building with Bridge:

Event-Driven AI on Private Kafka
A fintech company runs Kafka inside a private VPC on AWS. They use Bridge to connect a Kafka inbound connector to their transaction topic. Every new transaction triggers an AI agent that performs fraud analysis in real-time, then publishes results back to an output topic via an outbound Kafka connector, also routed through Bridge.
Database Change Detection
An operations team uses PostgreSQL LISTEN/NOTIFY on an on-premises database to detect new support tickets. The Bridge routes the Postgres connector to the internal database. When a new ticket lands, an AI agent classifies it, drafts a response, and routes it to the appropriate team, all without the database ever being exposed publicly.
Internal Email Processing
A logistics company runs an on-premises mail server behind their corporate firewall. Bridge connects the Email connector to the internal IMAP server. An AI agent monitors a shared inbox, extracts shipment details from emails and attachments, and updates their internal tracking system via an outbound HTTP webhook, also routed through Bridge.

Bridge vs. Alternatives

Connic BridgeVPN / PeeringIP Allowlist
Setup time5 minutesHours to daysMinutes (fragile)
Inbound ports requiredNoneMultiplePer service
Blast radiusExplicit host:port listEntire VPC / subnetPer IP range
Firewall changesNoneYesYes
Ongoing maintenanceNear zeroHighModerate (IP churn)

Monitoring a Bridge

Once deployed, bridge status is available at any time in Project Settings > Bridge. The dashboard shows whether the bridge is connected and when it last connected, with controls to regenerate or revoke the token.

Tip: Token Rotation
Rotate the bridge token periodically as a security best practice. Click Regenerate Token in the dashboard, then update the BRIDGE_TOKEN environment variable in the bridge deployment. New tunnels using the old token are rejected immediately, and its active relay connection closes within seconds.

Getting Started

For private infrastructure, Bridge provides a direct connection to AI agents:

  1. Open the project in the Connic dashboard and go to Settings > Bridge

  2. Generate a token and deploy the bridge container in the private network

  3. Enable Connect via Bridge on any connector that targets a private service

  4. The agents can now consume events from and deliver results to private infrastructure

The Bridge documentation provides the full configuration reference and troubleshooting guide. For a new Connic project, the quickstart guide covers the first agent deployment before it is connected to private infrastructure.

More from the Blog

Product Spotlight

AI Agent Browser Automation: How It Works and How to Build It

Learn how AI agent browser automation works, when to use it, and how Connic adds managed browsing, persistent state, tabs, dialogs, and files.

September 21, 20268 min read
Product Spotlight

Give Your AI Agents Hundreds of Tools Without Overloading Their Context

Connic keeps a large tool catalog outside the model context and retrieves schemas on demand, so agents can use more tools without loading them all upfront.

September 14, 20267 min read
Product Spotlight

Connic Dev Server: Test AI Agents in the Cloud Without Deploying

Test AI agents with Connic Dev Server: sync local edits to the cloud, keep test connections and variables, run suites, and inspect traces without a Git push.

September 13, 20268 min read
Product Spotlight

Connic Run Context: Give Agents the Data They Need

Connic Run Context keeps custom data available to middleware and tools throughout an agent run, with selected values passed to the AI through prompts.

September 8, 202610 min read
Product Spotlight

Staging to Production: How Connic Environments Isolate AI Agents

Connic environments map git branches to isolated deployments, each with its own secrets, connectors, budgets, and run history, so one agent spec ships safely.

August 6, 20268 min read
Product Spotlight

Connic Tests: Catch Agent Regressions Before They Reach Production

A YAML-driven testing framework built for non-deterministic AI agents. Repeated-run pass thresholds, expression-based assertions, custom-code mocking, multimodal fixtures, and a deploy gate that blocks failed checks by default.

May 6, 20268 min read
Product Spotlight

A/B Testing for AI Agents: Ship Better Prompts with Confidence

A changed prompt may feel better. A controlled experiment shows whether it is and lets real traffic decide.

March 27, 20269 min read
Product Spotlight

Agent Guardrails: Real-Time Safety for AI Agents

Connic Guardrails intercept agent inputs and outputs in real time to block prompt injection, redact PII, and enforce topic restrictions.

March 3, 20269 min read
Product Spotlight

Composer SDK: Better Agent Development Tooling

Stop manual uploads and YAML guessing. The Composer SDK adds scaffolding, validation, cloud-backed hot-reload development, and CLI deployments.

December 27, 20255 min read