Customer has to connect to Snowflake data source using Key-Pair Authentication from Tableau Desktop and Tableau Cloud for enhanced security and not to use traditional Username and Password
Starting with Tableau version 2024.3.x, both Tableau Desktop and Tableau Cloud now support connecting to Snowflake data sources using key-pair authentication, providing a more secure and efficient way to authenticate and manage connections to Snowflake. Below is a detailed step-by-step guide to set up key-pair authentication on different platforms, including macOS and Windows.
Connecting to Snowflake Data Source on Tableau Desktop for Windows :
For older versions of Tableau Desktop, you can still connect to Snowflake using key-pair authentication, but with a different setup.
Select "Username and Password" in the Authentication Section:
Enter Custom Driver Parameters:
PRIV_KEY_FILE=PATH-TO-KEY-FILE;PRIV_KEY_FILE_PWD=PASSPHRASE
Sign In:
Install the ODBC Driver:
Configure the ODBC Driver on macOS:
After installing the ODBC driver, follow these steps to ensure proper detection of the Snowflake driver:
Step 1: Go to ~/Library/ODBC/odbcinst.ini and ensure the following lines are present:
[ODBC Drivers]
Snowflake = Installed
[Snowflake]
Driver = /opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib
Step 2: Go to /Library/ODBC/odbcinst.ini and ensure the same lines are present as shown above.
Step 3: Go to /Library/ODBC/odbc.ini and verify the following:
[ODBC Data Sources]
Snowflake = Snowflake
[Snowflake]
Driver = /opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib
These steps ensure that your macOS system correctly detects the Snowflake driver and allows Tableau to establish the connection.
As of now, Tableau Server does not natively support publishing content using key-pair authentication for Snowflake connections. This functionality is still under development and is not built into the product at this time.
After creating your workbook in Tableau Desktop using key-pair authentication, navigate to Server > Publish Workbook.
In the publishing dialog box, under Data Sources, click Edit.
For Authentication, select Embed password. While you are not using a password, this setting tells Tableau Cloud to use the credentials embedded within the connection, which in this case is your key-pair authentication.
Alternatively, you can save your Snowflake key-pair credentials in Tableau Cloud under My Account Settings > Saved Credentials. If you do this, you can select Prompt user during publishing.
Currently, the only way to use key-pair authentication with Tableau Cloud is to create your workbook in Tableau Desktop and then publish it to Tableau Cloud. Once the workbook is published, you can continue working with the data source on Tableau Cloud, but the web-editing features will still have the limitations mentioned above.
002830194

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.