Skip to main content

D2O sharing

Databricks-to-Open (D2O) sharing lets you share data with recipients on any platform, whether they use Databricks or not. This page covers best practices for D2O sharing. For step-by-step setup instructions, see Share data using the open sharing protocol.

Authentication​

Bearer tokens​

  • Configure token lifetimes at the metastore level
  • Rotate tokens regularly
  • Use recipient IP access lists for additional control

OpenID Connect (OIDC) federation​

  • Sharing service authenticates and returns pre-signed file URLs (temporary, time-limited access to storage)
  • Recipients read directly from provider storage (with the exception of shared views, provider compute is not used)
  • Encourage recipients to automate token refresh for OIDC flows

Best practices​

Egress and costs​

  • Providers may incur egress fees when recipients read data
  • Plan for higher egress with D2O since external recipients cannot leverage Databricks optimizations

For mitigation strategies (CDF, Cloudflare R2, replication), see Egress considerations.

Connector compatibility​

Recipients must use compatible connectors for advanced features:

FeatureMinimum version
Deletion vectors and column mappingdelta-sharing-spark 3.1+ or DBR 14.1+
CDF and streaming readsDBR 14.2+

Recommend pinning connector versions for stability.

Governance and access control​

  • Shares, recipients, and grants are managed via Unity Catalog
  • Removing grants or recipients immediately blocks access
  • Manage permissions via GRANT ON SHARE or Catalog Explorer
  • Use IP access lists for stronger boundaries

Dynamic views in D2O​

Unlike D2D, dynamic views in D2O materialize on the provider side before sending to recipients.

  • Provider incurs compute for filtering and temp storage costs
  • Consider the cost implications for high-volume or complex view logic
  • For cost-sensitive scenarios, consider partitioned table sharing instead of dynamic views

D2O operations​

  • Maintain processes for token rotation and revocation
  • Schema changes may propagate differently than D2D; coordinate with recipients in advance
  • Monitor connector versions used by external recipients for compatibility

For general operations guidance (change management, health checks, governance), see the Operations runbook.

What's next​