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
AWS PrivateLink connects Datafold to your databases without exposing data to the internet.Before you begin
Datafold Support sends you the role ARN to establish the PrivateLink connection.Set up PrivateLink
For detailed instructions, including security groups, target groups, failover for HA setups and troubleshooting, see the AWS PrivateLink setup guide.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.
Allow Datafold's role
Send Datafold your endpoint details
- 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-az6orusw2-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.
Accept the connection and add the data source
Cross-region PrivateLink
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:
Azure Private Link
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: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
Retrieve your Private Link configuration
ACCOUNTADMIN, run:privatelink-pls-id- Your account URL
- The OCSP URLs in the output. Datafold needs these for its firewall and DNS configuration.
Enable Private Link for internal stages
SYSTEM$GET_PRIVATELINK_CONFIG() again and send Datafold Support the ResourceID under the privatelink-internal-stage key.Wait for Datafold to create your private endpoints
Authorize both endpoints
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.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.
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
Check whether the workspace storage firewall is enabled
Wait for Datafold to create two private endpoints
dfsblob
Approve the endpoints
dbstorage...) → Networking → Private endpoint connections. Confirm that both endpoints show Approved. They may approve automatically, or you may need to approve them manually.Send Datafold your warehouse details
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 thatENABLE_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. 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
Send Datafold your bastion and database details
- 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).
Add Datafold's public key
~/.ssh/authorized_keys of the tunnel user on your bastion host.Allow Datafold to reach the bastion
Configure the data connection
