cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Lakehouse Federation with OAuth connection to Snowflake

AntonDBUser
New Contributor II

Hi!

We have a lot use cases were we need to load data from Snowflake into Databricks, where users are using both R and Python for further analysis and machine learning. For this we have been using Lakehouse Federation combined with basic auth, but are now moving into using the OAuth based Snowflake integration. This has a few problems which makes it not usable in practice:

  • Every user have to set up their own connection and catalog (which means that normal users need a lot rights in Databricks)
  • Every user needs access to client secrets to insert it into the GUI (since SSO is a button, we can't do this with code in any way). This also have to be done every 90 days (length of the client secret from Snowflake)
  • The connection object in Databricks is tightly coupled with a Snowflake role and warehouse, which means you have to create a new connection per role (makes it extremely impractical)

Does anyone have a workaround on this which makes it possible to use Lakehouse Federation and OAuth in combination? Or if anybody knows about a roadmap for the Lakehouse Federation integrations?

Appreciate any help or tips on this issue!

1 REPLY 1

AntonDBUser
New Contributor II

For anyone interested: We solved this by building an OAuth integration to Snowflake ourselfs using Entra ID: 

https://community.snowflake.com/s/article/External-oAuth-Token-Generation-using-Azure-AD

We also created some simple Python and R-packages that includes methods to generate tokens and read/write data to Snowflake using spark and sparklyr for R.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group