Skip to main content
The Connector is available as a statically linked binary in a multi-architecture distroless Docker image.

Container Image Registries

You can pull Connector images from either of these registries:
  • AWS ECR: 654654333078.dkr.ecr.<region>.amazonaws.com/formalco-prod-connector:<tag> Available regions: us-east-1, us-east-2, us-west-1, us-west-2, ap-southeast-1, and eu-west-1.
  • GCP Artifact Registry: us-docker.pkg.dev/formal-public-assets/formalco-prod-connector/formalco-prod-connector:<tag>
On AKS, use the GAR image with azure-gar-cred. Set pullWithCredentials: true in the Connector Helm values.

Amazon ECR Pull-Through Cache

You can cache Formal images in your own Amazon ECR registry with an ECR pull-through cache rule. Your clusters then pull from your registry, so they need no Formal image pull secret. Formal must first allowlist your AWS account ID or organization ID for ECR pulls. Contact Formal support to request access.
  1. Create an IAM role for the cache Amazon ECR assumes this role to pull from Formal’s registry. Save this trust policy as ptc-trust.json:
    Save this permissions policy as ptc-permissions.json:
    Create the role:
  2. Create the pull-through cache rule Run this in the AWS account and region of your registry. Set --upstream-registry-url to a Formal ECR region listed above.
  3. Pull through your registry Prefix Formal repository names with formal/ and use your registry host:
    In the Connector Helm chart, set image.repository to this value and keep pullWithCredentials: false.
Verify:
Amazon ECR checks Formal’s registry for tag updates at most once every 24 hours. Pin versioned tags instead of latest. Keep cached repositories tag-mutable, or cached tags stop updating.

Infrastructure Requirements

  • Operating System: Linux environment
  • Architecture: AMD64 or ARM64
  • Container Runtime: Docker or compatible container runtime

Network Requirements

The Connector requires:
  • Network access to api.joinformal.com (Formal Control Plane)
  • Outbound access to your protected resources
  • Inbound access from clients on configured listener ports
On AWS, the Connector can reach the Control Plane over AWS PrivateLink instead of the public internet. See Reach the Control Plane over AWS PrivateLink.

Resource Requirements

The Connector requires adequate resources to apply policies with minimal latency and maintain all necessary context in RAM (Control Plane data, queries metadata, responses data, log buffer, etc.).
CPU Throttling Warning: If you don’t allocate entire CPU cores to the Connector and rely on CPU throttling (e.g., CFS quotas on Linux, CPU limits in Kubernetes), you will most likely experience increased latency and timeouts during peak loads.

Production Recommendations

For production deployments, we recommend:
  • High Availability: Run at least 2 nodes behind a load balancer
  • Resource Allocation: 2 CPU cores and 4 GB RAM per node
  • Load Distribution: Distribute traffic across multiple Connector instances
  • Persistent Storage: Mount a persistent volume to /formal/logs for the log spool
CPU, RAM and disk requirements vary based on usage patterns, query types, traffic volume, and enforced policies. Monitor your Connector with a telemetry collector and scale resources as needed. To size Connectors for your workload, see Sizing and Load Testing. The Connector buffers up to 400 MB of logs in memory before spooling to disk. A typical log entry is around 1 KB – at 100 requests per second, 10 GB of disk provides more than a day of outage buffer. The Connector works without disk (spooling is disabled), but logs may be lost during disruptions.
When deploying multiple instances, Connectors attempt automatically to form a cluster with shared state. It enables Connectors to coordinate rate limiting across all instances. See the Clustering page for details.

AWS ECS Fargate

Deploy as a Fargate service behind a Network Load Balancer with multi-AZ availability

Kubernetes

Deploy using Formal Helm charts on any Kubernetes cluster (EKS, GKE, AKS, on-premises).

Docker

Run as a standalone container (development/testing only)

Environment Variables

The Connector receives most of its configuration from the Control Plane. Set these environment variables on the Connector itself:

Variables read from the platform

The Connector also reads variables that your platform sets. You do not set them yourself in a standard deployment. The Connector checks ECS_CONTAINER_METADATA_URI_V4 first, then KUBERNETES_SERVICE_HOST. See Clustering for how instances find each other.