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, andeu-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.-
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 asptc-permissions.json:Create the role: -
Create the pull-through cache rule
Run this in the AWS account and region of your registry.
Set
--upstream-registry-urlto a Formal ECR region listed above. -
Pull through your registry
Prefix Formal repository names with
formal/and use your registry host:In the Connector Helm chart, setimage.repositoryto this value and keeppullWithCredentials: false.
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
AWS VPC Private Link Connectivity
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.).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/logsfor the log spool
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.
Recommended Deployment Options
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.