Area: Ingestion
Sub-Area: Snowflake
Applies to: OSS + Cloud
Issue
The Snowflake connector fails to connect, fails recipe validation, or shows a warning about password authentication.
The password warning in the ingestion run report is titled Snowflake password auth deprecation. Its message reads: "Snowflake is deprecating username + password authentication (DEFAULT_AUTHENTICATOR) as part of its Strong Authentication rollout. Password auth will stop working on an account-specific enforcement date during Phase 3 (Aug-Oct 2026). Switch this recipe to key-pair authentication (KEY_PAIR_AUTHENTICATOR) before your account's enforcement date."
You Might Be Asking
- Why does my Snowflake run warn about password authentication?
- How do I switch a DataHub Cloud UI ingestion source to key-pair authentication?
- What should
account_idlook like?
Cause
- The recipe uses
DEFAULT_AUTHENTICATOR(username and password), which is the default. CLI 1.7.0.20 warns about this. The warning shows in the ingestion run report in the UI. With--test-source-connection, it prints with the migration guide URL appended. - Key-pair settings are inconsistent. Setting
private_keyorprivate_key_pathwith anyauthentication_typeother thanKEY_PAIR_AUTHENTICATORfails validation. UsingKEY_PAIR_AUTHENTICATORwith neither key set also fails validation. - The connection fails. A wrong
account_id, wrong credentials or a network problem make the run fail withFailed to connect to snowflake instance: <Snowflake error>, with Snowflake's own message after the colon. If Snowflake says the role is "not granted to this user", the run fails withPermissions error when connecting to snowflake: <Snowflake error>. - The role lacks the grants DataHub needs.
Solution
1. Switch to key-pair authentication
authentication_type accepts DEFAULT_AUTHENTICATOR (the default), KEY_PAIR_AUTHENTICATOR, OAUTH_AUTHENTICATOR, OAUTH_AUTHENTICATOR_TOKEN, EXTERNAL_BROWSER_AUTHENTICATOR and WORKLOAD_IDENTITY_AUTHENTICATOR.
DataHub Cloud (UI ingestion). Store the full private key text, including newlines, as a DataHub secret named SNOWFLAKE_PRIVATE_KEY. See Managing sensitive information with secrets. Reference it in the recipe:
source:
type: snowflake
config:
account_id: "xy12345.us-east-2.aws"
warehouse: "your_warehouse"
role: "datahub_role"
username: "your_username"
authentication_type: "KEY_PAIR_AUTHENTICATOR"
private_key: "${SNOWFLAKE_PRIVATE_KEY}"
Set private_key_password only if the key is encrypted. A key that is not encrypted needs no password.
Remote Executor or self-managed CLI. If the key file is on the ingestion host, for example mounted under /mnt/secrets/, use private_key_path instead of private_key:
authentication_type: "KEY_PAIR_AUTHENTICATOR"
private_key_path: "/mnt/secrets/private_key.p8"
If you set both private_key and private_key_path, DataHub ignores private_key_path. For key generation and swapping the key without losing state, see the migration guide.
2. Check account_id
account_id takes a Snowflake account identifier. The examples with a region and cloud use the account locator, not the account name:
xy12345xy12345.us-east-2.awsxy12345.us-central1.gcpxy12345.central-us.azurexy12345.us-west-2.privatelink
The connector strips a leading protocol, trailing slashes and the snowflakecomputing.com suffix. It connects to <account_id>.<snowflake_domain>. For PrivateLink, set account_id to your privatelink account identifier. role and warehouse are separate optional options.
3. Check Snowflake grants
Grant operate, usage on the warehouse, and usage on the database and on all and future schemas. For read access on the objects, grant REFERENCES on all and future tables, external tables and views. If you use profiling or classification, grant SELECT on all and future tables, external tables and dynamic tables instead. Grant access to the ACCOUNT_USAGE views for lineage, usage and tags:
grant imported privileges on database snowflake to role datahub_role;
See the prerequisites for the full list of grants.
4. Test the connection
In the UI, use the "Test Your Connection" step when you create or edit the source. See Test Your Connection. The test runs on the default executor. A failed connection reports the exception text. If a run fails, view the full logs as described in viewing detailed logs. To get more detail, turn on "Debug Mode" under Advanced Settings.