How-to | Secure data connections through GCP Private Service Connect#
For certain plans, Dataiku enables customers to secure access to specific data sources through GCP Private Service Connect.
Important
GCP Private Service Connect is not available in all Dataiku plans and cannot be configured through the Dataiku Cloud Launchpad. Please contact the Dataiku support team to complete this configuration.
Dataiku Cloud supports GCP Private Service Connect with:
Google Cloud Storage and BigQuery#
In order to connect to Google Cloud Storage (GCS) or BigQuery through GCP Private Service Connect, please contact the Dataiku Cloud support team to enable the Private Service Connect endpoint for GCP services and APIs.
You will need to share your Dataiku Cloud space ID. Your space ID can be found in the Settings panel of your Launchpad.
This is a one-time setup that will allow you to leverage GCP Private Service Connect for all your GCS and BigQuery connections.
A Google Cloud SQL database#
In order to connect to a Google Cloud SQL database through GCP Private Service Connect, you will need to share the following information with the Dataiku Cloud support team:
The GCP region of your Cloud SQL account. If the region you need is not available, the support team will let you know when the GCP region is enabled.
The DNS name of your Cloud SQL instance.
The service attachment is a single URI that is automatically assigned to a PSC-enabled Cloud SQL instance.
After sharing the needed information, the support team will provide you the Dataiku GCP project name to be added to the allowed projects list of your Cloud SQL instance.
When the support team confirms your endpoint is created on the Dataiku side, you will be able to reach your Cloud SQL instance with the DNS name you provided from your Dataiku instance.
A GCP-hosted Snowflake database#
In order to connect to a GCP-hosted Snowflake database through GCP Private Service Connect, you will need to share the following information with the Dataiku Cloud support team:
The GCP region of your Snowflake account. If the region you need is not available, our support team will let you know when the GCP region is enabled.
The Private Service Connect configuration from Snowflake. This is explained in Retrieve the Private Service Connect config from Snowflake.
After sharing the needed information, you will need to ask Snowflake support to allow GCP Private Service Connect from Dataiku’s GCP project. This is explained in Ask Snowflake support to allow GCP Private Service Connect from Dataiku’s GCP project.
Finally, the Dataiku Cloud support team will let you know when the Private Service Connect connection is enabled and share the endpoint to use in your Snowflake connection. This is explained in Use the GCP Snowflake endpoint in your Snowflake connections.
Retrieve the Private Service Connect config from Snowflake#
Having completed the above set of instructions, in Snowflake, create a new SQL worksheet.
Run the following SQL commands with the
ACCOUNTADMIN
role:select SYSTEM$GET_PRIVATELINK_CONFIG();
Click on the output to open a new panel on the right.
Click on the Click to Copy icon to copy the JSON result.
Ask Snowflake support to allow GCP Private Service Connect from Dataiku’s GCP project#
In the Snowflake console, go to the Support section in the left panel.
Create a new support case by clicking on Support Case in the top right corner.
Fill the title with something meaningful, for example
Enable GCP Private Service Connect
.In the details section of your Snowflake support case, request to allow-list Dataiku’s GCP account providing the project ID that is shared by the Dataiku Cloud support team.
In the Where did the issue occur? section, select GCP Private Service Connect under the Managing Security & Authentication category, leave the severity to Sev-4, and click on Create Case.
Wait for Snowflake support to allow-list Dataiku’s GCP account before continuing to the next set of instructions.
Use the GCP Snowflake endpoint in your Snowflake connections#
You can use the Private Service Connect endpoint shared by the Dataiku Cloud support team both in new and existing Snowflake connections. To do that:
In the Dataiku Cloud Launchpad, navigate to a new or existing Snowflake connection.
For the host value, fill the value of the Private Service Connect endpoint.