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: Simon Dabrowski

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.

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

Talk to us about connecting a Kafka cluster, Postgres database, internal API, or MCP server through bridge, including which hosts agents may reach and which actions need approval.

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.

    Docker Compose 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 for the Connectors

    Kafka, PostgreSQL, email, SQS, and S3 connectors take the bridge from their Connection. Open the Connection, go to its Network Access section, and choose the bridge from the Bridge dropdown. connic then routes the traffic of every connector that uses this Connection through the bridge tunnel instead of connecting directly. To reach a different network in each environment, give each environment its own Connection. An outbound webhook picks its bridge in its own connector settings. The pre-built connectors guide explains the connector layer before bridge is added.

    The Network Access section of an SQS Connection with the bridge dropdown set to a bridge named Production VPC, routing its connectors through the private network.
    A Connection picks its bridge in the 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. Choose the bridge on the Connection of each Kafka, PostgreSQL, email, SQS, or S3 connector that targets a private service, and on any outbound webhook that does

  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.