Share data behind a firewall with SecureConnect

SecureConnect simplifies networking for data sharing, allowing data providers to share to different recipients without allowlisting each recipient in their storage networking rules. Additionally, SecureConnect allows providers to share from cloud storage behind a private endpoint.

How SecureConnect works

To use SecureConnect, a provider makes a one-time configuration that allows Azure Databricks recipients to access the provider's storage behind a firewall or private endpoint. Azure Databricks then routes recipient requests through a managed proxy, so the provider does not need to update their storage firewall when adding a new recipient.

Recipients access shared data using their existing OpenSharing setup:

  • Azure Databricks recipients on serverless compute access shares with no per-provider firewall changes.
  • Azure Databricks recipients on classic compute and open recipients allowlist a single set of Azure Databricks control plane IPs for the provider's region.

To optimize performance, recipients on serverless compute in the same region as the provider's storage read from the storage directly, rather than through the managed proxy. Cross-region and cross-cloud recipients, and recipients on classic compute, read through the managed proxy. This difference affects how networking usage is billed. See Billing.

Without SecureConnect, a provider must add each recipient's network identifier to their storage firewall, coordinating with the recipient and a cloud platform administrator for every new recipient.

SecureConnect also applies to data products shared through Databricks Marketplace and to data shared into clean rooms, because both are built on OpenSharing.

SecureConnect routes recipient requests through a Databricks-managed proxy to provider storage, so the provider allowlists Databricks once instead of each recipient.

Set up SecureConnect as a provider

Setting up SecureConnect involves configuring your storage firewall to allow access and enabling SecureConnect for your metastores and recipients.

Step 1: Configure your storage firewall

The following instructions assume that your shared assets and provider metastore are in the same region. For the lowest networking costs, keep the region of your shared assets the same as your provider metastore region.

SecureConnect accesses your storage from the serverless data plane over your cloud provider's network, not the public internet.

How you configure access depends on how your storage is protected.

Note

Regardless of the option you choose, verify that your storage allows the Azure Databricks control plane for your region, in addition to any SecureConnect configuration. Unity Catalog reaches your storage from the control plane for metadata operations, so a firewall that blocks the control plane blocks those operations. For the control plane IP addresses for your region, see Control plane outbound IP addresses.

Option 1: Storage without a firewall or private endpoint

If your storage is not behind a firewall or private endpoint, no configuration is required.

Option 2: Storage behind a firewall

Allow access by adding the Azure Databricks serverless network identifier to your storage firewall. If your storage is behind a private endpoint, see the following section.

To allow Azure Databricks to access your resources, associate your Azure storage account with a network security perimeter (NSP) in transition mode and add inbound access rules for both of the following service tags:

  • AzureDatabricksServerless.{region}, where {region} is the provider's control plane region. This tag covers SecureConnect access from the serverless data plane.
  • AzureDatabricks, which covers the Azure Databricks control plane, including Unity Catalog metadata operations.

For NSP setup steps, see Configure an Azure network security perimeter for Azure storage accounts. If reads of shared data fail with FILES_API_AZURE_FORBIDDEN, see Reads of shared data fail with FILES_API_AZURE_FORBIDDEN.

Option 3: Storage behind a private endpoint

Use this option if your shared storage is behind a private endpoint.

An account admin must configure a network connectivity configuration (NCC) and attach it to the metastore that hosts your shared data. For more about NCCs, see What is a network connectivity configuration (NCC)?.

An NCC attached to a workspace can't be attached to a metastore. An NCC applied to a metastore for OpenSharing applies to all shares attached to the metastore.

Create an NCC and private endpoint rules for your storage account, but do not attach the NCC to a workspace. SecureConnect also requires both a blob and a dfs private endpoint rule, so create a private endpoint rule for each sub-resource type.

See Configure private connectivity to Azure resources for NCC and private endpoint setup.

Attach the NCC to your OpenSharing metastore:

  1. As an Azure Databricks account administrator, go to the account console.
  2. In the sidebar, click Data icon. Catalog.
  3. Click the name of the OpenSharing metastore to open its details.
  4. Under OpenSharing Network connectivity configuration (NCC) click Edit.
  5. Search for and select the NCC you created for OpenSharing.
  6. Click Save.

Step 2: Enable SecureConnect on a metastore

A metastore administrator can configure the metastore so new recipients automatically use SecureConnect. By default, new and existing recipients are not enrolled in SecureConnect. You must configure existing recipients separately. See Step 3: Enable SecureConnect for individual recipients.

To enable SecureConnect on a metastore:

  1. In your Azure Databricks workspace, click Data icon. Catalog to open Catalog Explorer.

  2. At the top of the Catalog pane, click the Gear icon. gear icon and select OpenSharing.

    Alternatively, in the upper-right corner, click Share > OpenSharing.

  3. Click Settings in the upper-right corner.

  4. Turn on the setting for Enable SecureConnect for new recipients.

  5. Click Save.

Step 3: Enable SecureConnect for individual recipients

Recipient owners, and users with the USE_RECIPIENT privilege, toggle SecureConnect on or off for each recipient. SecureConnect is disabled on a recipient by default, unless the metastore was set to enable it for all new recipients when the recipient was created.

To configure SecureConnect on a recipient:

  1. In your Azure Databricks workspace, click Data icon. Catalog.

  2. At the top of the Catalog pane, click the Gear icon. gear icon and select OpenSharing.

    Alternatively, in the upper-right corner, click Share > OpenSharing.

  3. On the Shared by me tab, click the Recipients tab.

  4. Turn on SecureConnect for each desired recipient.

(Optional) Step 4: Restrict open recipient access with IP ACLs

For open recipients, you can restrict which client IP addresses are allowed to reach SecureConnect using IP access lists. IP ACLs apply only to open recipients.

With SecureConnect, IP ACLs apply to both OpenSharing endpoint access and storage access. Without SecureConnect, IP ACLs restrict only OpenSharing endpoint access; storage URLs remain reachable from any client IP.

For setup instructions, see Restrict OpenSharing recipient access using IP access lists (Databricks-to-Open sharing).

Note

IP ACL changes for SecureConnect-enabled open recipients can take up to 10 minutes to take effect.

Supported sharing scenarios

Important

Any unsupported feature falls back to direct access from the recipient compute to the storage. The provider must manually grant access to recipient IPs in their storage firewall. See What is the OpenSharing Databricks-to-Databricks protocol? or What is the Databricks-to-Open sharing protocol?.

SecureConnect supports sharing to recipients regardless of the cloud they run on, for both Databricks-to-Databricks and Databricks-to-open sharing.

mTLS to SecureConnect is supported for only Azure Databricks recipients using serverless compute to access the shared data.

Feature support

Feature D2O (token) D2O (OIDC) D2O (Iceberg) D2D (serverless) D2D (classic)
Tables with history and without partitions ✓ ✓ ✗ ✓ * ✓ *
Tables without history or with partitions ✓ ✓ ✗ ✓ ✓
Views ✓ ✓ ✗ ✓ ‡ ✓
Foreign tables ✓ ✓ ✗ ✓ ✓
Materialized views ✓ ✓ ✗ ✓ † ✓
Streaming tables ✓ ✓ ✗ ✓ † ✓
Volumes ✗ ✗ ✗ ✗ ✗
Notebooks ✗ ✗ ✗ ✗ ✗
AI models ✗ ✗ ✗ ✗ ✗

* These tables are shared using pre-signed URLs.

For recipients using serverless compute, enabling the directory-based access preview delivers these tables using directory-based access instead.

† These assets are materialized and filtered on the provider side. See Do recipients have direct access to the underlying data in shared views, materialized views, and streaming tables?.

‡ Views are materialized and filtered on the provider side. See Do recipients have direct access to the underlying data in shared views, materialized views, and streaming tables?.

When directory-based access is enabled, views aren't materialized if all of their underlying tables are managed or external tables.

Important

SecureConnect delivers all shared tables using pre-signed URLs, including tables shared with history and without partitions. As a result, recipients can't run DEEP CLONE to copy a shared table. See pre-signed URL limitations.

The exception is tables delivered using directory-based access to recipients using serverless compute.

Directory-based access

Important

This feature is in Public Preview. Account admins can manage access to this feature from the account console Previews page. See Manage account-level previews.

When the OpenSharing SecureConnect Directory Based Access preview is enabled, SecureConnect delivers eligible tables and views to Azure Databricks recipients using serverless compute with directory-based access instead of per-file pre-signed URLs, for better performance. Providers and recipients don't need to change their setup.

The following assets are eligible:

  • Tables shared with history and without partitions. Recipients can run DEEP CLONE on these tables.
  • Views whose underlying tables are all managed or external tables. These views aren't materialized on the provider side.

Other assets continue to use pre-signed URLs. See Feature support.

Important

If a recipient using serverless compute is running a streaming query on a shared table, enabling directory-based access can cause the query to fail, and the recipient must restart the stream.

Limitations

  • Your assets can't be backed by Cloudflare R2 storage.
  • SecureConnect can't be used with recipients that read shared data using SAP HANA, because SAP HANA does not support the Azure Databricks pre-signed URLs that SecureConnect uses to deliver shared data.

For recipient-side limitations, such as mTLS support and Databricks-to-Open sharing restrictions, see Limitations.

Unsupported regions

SecureConnect is not available in Azure China, Azure Government, or the following Azure regions:

  • australiacentral
  • australiacentral2
  • japanwest
  • qatarcentral
  • southindia
  • switzerlandwest
  • ukwest
  • westindia

Billing

Providers are billed for data transfer (egress) when recipients access shared data through SecureConnect, including data accessed using directory-based access. For rates, see Data transfer and connectivity pricing, or contact your Azure Databricks account team.

Note

Azure Databricks is expanding SecureConnect networking billing to more charge types and access scenarios, including charges for recipients. To understand how you might be billed, see Expanded networking billing for OpenSharing SecureConnect.

Per-recipient usage is attributed through the recipient_id field in the billing system table, so providers can break down billable SecureConnect usage by recipient. See Billable usage system table reference.

The following query returns SecureConnect data egress (in GB) for each recipient over the last 7 days:

SELECT
  usage_records.usage_metadata.recipient_id,
  SUM(usage_records.usage_quantity) AS total_usage_gb
FROM system.billing.usage usage_records
WHERE
  usage_records.billing_origin_product = 'NETWORKING'
  AND usage_records.usage_metadata.associated_product = 'DATA_SHARING'
  AND usage_records.usage_metadata.networking_client = 'EXTERNAL_CLIENT'
  AND usage_records.usage_date >= CURRENT_DATE() - INTERVAL 7 DAYS
GROUP BY
  usage_records.usage_metadata.recipient_id
ORDER BY
  total_usage_gb DESC

To convert usage to cost, join against the pricing system table. See Pricing system table reference.

Troubleshooting

Reads of shared data fail with FILES_API_AZURE_FORBIDDEN

Recipient queries on a shared table fail with the error FILES_API_AZURE_FORBIDDEN and the message Access to the storage container is forbidden by Azure.

This error means that the provider's storage account blocks Azure Databricks access. To fix it, update the provider's storage configuration:

  • If the storage account is behind a firewall, associate it with a network security perimeter in transition mode and add inbound access rules for both the AzureDatabricksServerless.{region} and AzureDatabricks service tags.
  • If the storage account is behind a private endpoint, confirm that the NCC attached to your OpenSharing metastore has both a blob and a dfs private endpoint rule for the storage account.

See Step 1: Configure your storage firewall.

Additional resources