What is a Connector?
The Formal Connector is a protocol-aware reverse proxy that sits between your users and your protected resources. It provides real-time visibility, policy enforcement, and access control over all data flowing through your infrastructure. Two things keep the Connector easy to deploy and manage:- Smart Routing: The Connector listens on a single port, automatically detects the wire protocol used by the client (PostgreSQL, MongoDB, HTTP, SSH, etc.), and parses this protocol in real-time
- Configuration from the Control Plane: The Connector receives its resources, listeners, and policies from the Control Plane. With a Cloud Account, the Control Plane discovers the resources in your cloud (RDS instances, EKS clusters, EC2 instances, and more), so you don’t define each one by hand
How Connectors Work
End users connect to a Connector directly, or the Endpoint forwards their connections to one:Within the Connector
The Connector is a reverse proxy: clients connect to it, and it receives their traffic. It parses the protocol, identifies the user, and evaluates policies against requests and responses. It can call Hooks to make policy decisions. The Connector also logs and records sessions, which you can review in the Control Plane.How a request flows through the Connector
- The Connector receives its configuration (resources, listeners, policies) from the Control Plane.
- A client connects to a Connector listener, either directly or through the Endpoint.
- The Connector authenticates the user and parses the request.
- Policies are evaluated against the request. If the request is allowed, the Connector forwards it to the resource.
- Policies are evaluated against the response, for example to mask a column, and the session is logged.
If the Control Plane is unreachable
A running Connector keeps working with the last configuration it received. It won’t receive configuration updates until it reconnects, and a new Connector instance can’t start serving traffic until it loads its configuration. Logs are buffered on disk and sent once the connection is back. To keep buffered logs across restarts, mount persistent storage at/formal/logs. See Connector operations.
Network and sizing
The Connector needs outbound access toapi.joinformal.com and to the resources it protects. Your clients need access to the Connector’s listener ports.
Actual needs depend on your traffic volume, query types, and policies. CPU throttling can cause higher latency and timeouts. See the network requirements and resource requirements for details.
On AWS, the Connector can reach the Control Plane through VPC PrivateLink.
High availability
We recommend running at least two Connector instances behind a load balancer. Configure readiness checks so that the load balancer only sends traffic to instances that have loaded their configuration. Instances can also form a cluster to share state, such as rate-limit counters and cached entries. Clustering requires service discovery and port7946 (TCP and UDP) open between instances. See Connector clustering for ECS and Kubernetes setup.
Monitoring and Health
The Connector exposes a health check endpoint on port 8080:- CloudWatch Logs (AWS ECS)
- kubectl logs (Kubernetes)
- Cloud Logging (GCP)
Configuration
- Control Plane
- Terraform
- Navigate to Connectors
- Click Create Connector
- Enter a name (and optional Space), then click Create
- Open the Connector → Listeners → New Listener
- Add a rule with New Rule (Resource or Technology)
- Copy the Connector API token from Connector details
- Deploy the container with the token
Next Steps
Add Resources
Define the databases, APIs, and infrastructure the Connector protects
Configure Spaces
Segment access with logical groupings
Write Policies
Control who can access what with policy-as-code
Monitor Sessions
View active connections and session recordings