Skip to main content
This page lists the ways to secure the network path between Datafold and your databases. Your network or cloud admin sets these up, usually together with Datafold Support. Most options start with an email to support@datafold.com.
Private connectivity (AWS PrivateLink, GCP Private Service Connect, Azure Private Link, VPC peering) is set up case by case for your deployment.

Encryption

Traffic to the Datafold app and API is HTTPS only. Datafold supports TLS for connections to your databases; require TLS on your database to enforce it.

IP allowlisting

If your data sources or git provider accept connections only from IP addresses on an allowlist, add your deployment’s egress IP addresses to it. Otherwise, Datafold gets a connection error when it connects.
  • Datafold-hosted: your deployment has its own egress IP addresses. Datafold gives them to you after your deployment is set up. If you need them again, contact support@datafold.com.
  • Customer-hosted: allow the static egress IP of your own deployment.
AWS PrivateLink connects Datafold to your databases without exposing data to the internet.
These steps assume an RDS or Aurora database. Datafold also supports PrivateLink connections to other databases, such as Snowflake, that should only be accessed from your VPC. Contact support@datafold.com for help with your specific database.

Before you begin

Datafold Support sends you the role ARN to establish the PrivateLink connection. For detailed instructions, including security groups, target groups, failover for HA setups and troubleshooting, see the AWS PrivateLink setup guide.
1

Create a Network Load Balancer and VPC Endpoint Service

  • Create a Network Load Balancer (NLB) that points to your database, and a VPC Endpoint Service that exposes the NLB.
  • Configure security groups so the NLB can reach your database.
  • If your databases are HA, point the NLB at the writer instance only and implement automatic failover so the NLB follows the active instance. Datafold writes to a scratch schema, so connections must not reach a read replica. The AWS blog post Access Amazon RDS across VPCs using AWS PrivateLink and Network Load Balancer describes the core concepts and failover mechanics. For a starting point, see this CloudFormation template.
2

Allow Datafold's role

Add the role ARN from Datafold Support as an Allowed Principal on the VPC Endpoint Service.
3

Send Datafold your endpoint details

Send Datafold Support:
  • The VPC Endpoint Service name or names, for example com.amazonaws.vpce.us-west-2.vpce-svc-0cfd2f258c4395ad6.
  • The Availability Zone IDs used in the VPC Endpoint Services, for example use1-az6 or usw2-az3.
  • The AWS region of each service.
  • The database port the NLB listens on.
  • The RDS or Aurora hostnames, for example datafold.c2zezoge6btk.us-west-2.rds.amazonaws.com.
4

Accept the connection and add the data source

Datafold Support tells you when the endpoint is ready. Accept the PrivateLink connection, then configure the data source with the original RDS or Aurora hostname. Datafold resolves that hostname to the VPC endpoint through private DNS.
If your databases are in a different region from your Datafold deployment, Datafold can set up cross-region PrivateLink. Contact Datafold Support with the regions involved. The setup is similar to the steps above.

GCP Private Service Connect

Private Service Connect is available when your database and your Datafold deployment are in the same cloud region. The diagram below shows how it works:
To learn more, see the Google Cloud Private Service Connect overview. Azure Private Link is available when your database and your Datafold deployment are in the same cloud region. The diagram below shows how it works:
To learn more, see the Microsoft Private Link overview. With a Datafold-hosted deployment, Datafold creates the private endpoints from its own Azure subscription and tenant, so the connection uses cross-tenant private endpoints. See Microsoft’s guide to cross-tenant secure access with private endpoints.
Connecting to Snowflake or Databricks? Both platforms send large query results through cloud storage instead of the query engine. You usually need a second private endpoint alongside the main account or workspace connection. See Connect to Snowflake and Connect to Databricks.

Before you approve the first endpoint

When you attach a private endpoint to an Azure Storage account, Azure creates a public CNAME that redirects the storage hostname to *.privatelink.blob.core.windows.net (or the dfs equivalent). If you already run private DNS zones for blob.core.windows.net or dfs.core.windows.net, enable Fallback to Internet on those zones before you approve the first endpoint. Otherwise, DNS resolution can break for other storage accounts in your environment that still rely on the public endpoint. This applies to Snowflake internal stage endpoints and Databricks workspace storage endpoints. Both use Azure Blob Storage.

Connect to Snowflake

Prerequisites

  • Your Snowflake account is on Business Critical Edition or higher. This is required for both the account-level Private Link and the internal stage private endpoint.
  • Your Azure subscription is registered with the Azure Storage resource provider. This is required to connect to a Snowflake internal stage from a private endpoint.

Steps

1

Retrieve your Private Link configuration

As ACCOUNTADMIN, run:
Send Datafold Support:
  • privatelink-pls-id
  • Your account URL
  • The OCSP URLs in the output. Datafold needs these for its firewall and DNS configuration.
2

Enable Private Link for internal stages

Run SYSTEM$GET_PRIVATELINK_CONFIG() again and send Datafold Support the ResourceID under the privatelink-internal-stage key.
Skipping this step is the most common cause of “connection works, large queries time out.” Without it, only the query itself travels over the account endpoint. There is no private path for downloading results from the internal stage.
3

Wait for Datafold to create your private endpoints

Datafold creates one private endpoint for your account and a separate one for the internal stage, and sends you both resource IDs.
4

Authorize both endpoints

As ACCOUNTADMIN, authorize each endpoint. They use different functions. You can’t approve them from the Azure portal, because Snowflake owns the internal stage’s storage account.For the account endpoint, SYSTEM$AUTHORIZE_PRIVATELINK also requires a federated token. Datafold generates this token against its own Azure subscription and sends it to you with the resource ID. Treat the token like a credential: don’t paste it into a shared ticket or channel.
For the internal stage endpoint:
5

Verify the authorization

Network policies and public access

The account endpoint and the internal stage have separate public-access controls:
  • Account endpoint: your account-level network policy applies, if you have one. If so, add Datafold’s private endpoint IP range to the allowed list.
  • Internal stage: controlled separately with these functions:
    • SYSTEM$BLOCK_INTERNAL_STAGES_PUBLIC_ACCESS() blocks all public access to internal stages. It is all-or-nothing, with no partial IP allowlist.
    • SYSTEM$BLOCK_INTERNAL_STAGES_PUBLIC_ACCESS_WITH_EXCEPTION('<CIDR_OR_IP_LIST>') does the same, with an IP or CIDR allowlist exception. It is available only on Azure, not AWS or GCP.
    • SYSTEM$INTERNAL_STAGES_PUBLIC_ACCESS_STATUS() shows the current status.
Tell Datafold Support which of these, if any, is active. Datafold then confirms whether its private endpoint’s IP range needs to be added explicitly.

Connect to Databricks

Prerequisites

  • Your workspace is on the Premium plan.
  • VNet injection and secure cluster connectivity (No Public IP) are enabled, for connections from the classic compute plane.
  • You have a dedicated subnet (minimum /28) for the storage account’s private endpoints, separate from your two standard workspace subnets.

How Cloud Fetch uses storage

Datafold’s driver uses Cloud Fetch to download query results larger than 1 MB directly from your workspace storage account instead of through the SQL warehouse. Databricks writes the results as Arrow files (up to 20 MB each) and hands them to Datafold as presigned URLs. If the storage account is behind a firewall, Cloud Fetch needs its own private path from Datafold’s VNet.

Steps

1

Check whether the workspace storage firewall is enabled

By default, a Databricks workspace’s storage account (the one behind the DBFS root and any Unity Catalog workspace catalog) accepts connections from all networks. In that case, Datafold’s query result downloads work without further setup.If your organization has enabled the storage firewall to block public network access, continue with the next steps.
2

Wait for Datafold to create two private endpoints

These private endpoints live in Datafold’s VNet, so Datafold creates them from its own subscription. Datafold creates two endpoints against your workspace storage account, with these Target sub-resource values:
  • dfs
  • blob
Datafold creates these in a resource group other than your workspace’s managed resource group. Azure rejects private endpoints created inside the managed resource group with a deny assignment error. If the error appears outside the managed resource group too, your workspace may predate the current managed-resource-group permissions model. Check with your Databricks account team.
3

Approve the endpoints

Go to the workspace storage account (inside the managed resource group, named dbstorage...) → Networking → Private endpoint connections. Confirm that both endpoints show Approved. They may approve automatically, or you may need to approve them manually.
Cross-tenant approvalDatafold creates its private endpoints from its own Azure subscription, in its own tenant. The standard “Connect to an Azure resource in my directory” flow assumes same-tenant access, so Datafold connects with the resource ID method instead. Before you start, confirm with your Azure team that cross-tenant private endpoint approval is enabled in your environment.
4

Send Datafold your warehouse details

Send Datafold Support your SQL warehouse hostname. Also confirm whether front-end Private Link (the connection Datafold uses to submit queries) is already in place for the workspace. That is a separate endpoint from the storage path described here.

Serverless SQL warehouses

If you use serverless SQL warehouses, you also need a private endpoint rule for the storage account in your workspace’s Network Connectivity Config (NCC), in addition to the VNet-based private endpoints above.

Alternatives to a private endpoint

A private endpoint is the supported path. If one isn’t feasible, contact support@datafold.com before you plan around an alternative. Each alternative changes how Datafold connects. It isn’t a setting you can apply on your workspace.
  • Disabling Cloud Fetch returns results through the SQL warehouse instead of directly from storage. It is noticeably slower on large result sets, so Datafold treats it as a fallback, not a default.
  • Routing Cloud Fetch through a proxy isn’t a setting Datafold offers today. Ask Datafold Support before you design around it.

Troubleshooting

Connection succeeds, but queries with any real amount of data time out or hang. The account or workspace endpoint is usually set up correctly, but the storage-side path isn’t. For Snowflake, check that ENABLE_INTERNAL_STAGES_PRIVATELINK is set and the stage endpoint is authorized. For Databricks, check that both the dfs and blob private endpoints exist and are approved. If you reproduce the problem with your own JDBC-based tooling, a Snowflake error like Timeout waiting for the download of #chunk0 is a direct symptom. Datafold connects with the Python connector, which reports the same failure differently. Azure rejects the private endpoint with a deny assignment error. The endpoint is probably being created inside the Databricks-managed resource group. Create it in a separate resource group instead, or contact your Databricks account team if the error persists. Other resolvers or clients in your Azure environment start failing DNS lookups after you approve a private endpoint. This is the public CNAME behavior described in Before you approve the first endpoint. Enable Fallback to Internet on the affected privatelink.*.core.windows.net private DNS zone.

VPC peering

VPC peering joins your network and Datafold’s network, so the IP ranges must not overlap.
This page uses the term VPC for all major cloud providers. Azure calls this concept a Virtual Network (VNet).
VPC peering is supported on all cloud providers, for both Datafold-hosted and customer-hosted deployments. For background, see each provider’s documentation:

SSH tunnel

1

Send Datafold your bastion and database details

Email support@datafold.com with:
  • The hostname of your bastion host and the port of its SSH service.
  • The hostname and port of your database.
  • The SSH fingerprint of the bastion host (optional).
2

Add Datafold's public key

Datafold Support sends you an SSH public key. Add it to ~/.ssh/authorized_keys of the tunnel user on your bastion host.
3

Allow Datafold to reach the bastion

If your bastion host’s firewall accepts SSH only from listed IP addresses, add Datafold’s egress IP addresses. See IP allowlisting.
4

Configure the data connection

Datafold Support also sends you an IP address and port. Use them when you configure the data connection in Datafold.

IPSec tunnel

Contact support@datafold.com for more information.