The Relay container image is in early access. Contact support@causeflow.ai to request access.
Key properties
| Property | Details |
|---|---|
| Zero inbound traffic | Outbound WSS/443 only. No inbound ports. No firewall rule changes. |
| Read-only access | Only SELECT queries for PostgreSQL. Only find operations for MongoDB. All write operations are blocked at the policy layer. |
| PII masking | CPF, email, credit card numbers, phone numbers, and bearer tokens are masked inside the Relay before results leave your network. Custom patterns supported. |
| Policy engine | Per-resource allowlist, per-operation allowlist, configurable row limits, and SQL injection protection. |
| Audit trail | Every query request, result, and masking event is logged as structured JSON. |
| Container security | Runs as non-root (UID 10001), read-only filesystem, all Linux capabilities dropped, no-new-privileges flag set. |
How it works
The Relay connects outbound towss://api.causeflow.ai. From that point forward:
- The control plane sends query requests to the Relay via JSON-RPC 2.0 over the WebSocket.
- The Relay validates each request against your policy configuration.
- Safe queries are executed locally against your database.
- Results are scanned for PII patterns and masked before being returned.
- A structured audit log entry is written for every request.
What the Relay is not
- Not a proxy. The Relay is not a SQL proxy or connection forwarder. It executes queries locally and returns only masked results.
- Not a tunnel. There is no inbound tunnel into your network. The Relay holds the outbound connection — the control plane cannot initiate connections to your infrastructure.
- Not a replication agent. The Relay does not sync or copy your data. It responds to individual queries on demand.
Next steps
Quickstart
Deploy the Relay in your private network in under 10 minutes.
Architecture
Understand the communication protocol and request lifecycle.
Configuration
Full reference for relay-config.yaml.
Deployment
Docker, Kubernetes, ECS Fargate, and more.