Area: Ingestion
Sub-Area: Authentication
Applies to: OSS + Cloud
Issue
Ingestion pipelines fail to connect to a data source because authentication fails. This usually happens when credentials are wrong or expired, when a secret is not resolved, or when the service account lacks permissions in the source system. For Snowflake, a sudden failure can also mean that password authentication has been retired for your account.
For Snowflake, DataHub reports connection failures like this:
Failed to connect to snowflake instance: <driver error>-
Permissions error when connecting to snowflake: <driver error>(used when the driver error contains "not granted to this user")
The text in <driver error> comes from the Snowflake connector, not from DataHub. Other sources show the error text of their own driver or API.
You Might Be Asking
- Why is my ingestion pipeline suddenly failing with authentication errors?
- How do I test my credentials without running a full ingestion?
- How do I update credentials for my data source connection?
- What permissions does the service account need?
Cause
Common causes:
- The password or key in the recipe or in a DataHub secret is wrong or has expired.
- A
${NAME}secret reference does not resolve in the place where the job runs. See the secret notes below. - The service account is missing grants in the source system.
- Snowflake only: Snowflake is retiring password authentication (
DEFAULT_AUTHENTICATOR) on an account-specific enforcement date during Phase 3 of its Strong Authentication rollout (August to October 2026). The CLI logs a "Snowflake password auth deprecation" warning. If a Snowflake source that used a password starts failing authentication without any change on your side, move it to key-pair authentication.
Solution
1. Test the connection
To test only the source connection details in a recipe, run this from the CLI. It tests the connection and exits. See the CLI reference.
datahub ingest -c recipe.yml --test-source-connection
Do not use datahub check plugins for this. It only lists installed ingestion plugins and does not read a recipe or test credentials. Do not use --dry-run for a connection test either. --dry-run runs the full extraction and only skips writing to the sink.
For UI ingestion, use the Test Connection button on the source form, as described in UI ingestion. It checks that DataHub can connect to the data source, including network connectivity.
On DataHub Cloud v2.4.4, the Test Connection request is not tied to the executor pool assigned to the source. If your source runs on a Remote Executor, a passing Test Connection may not reflect what a run on that executor sees.
2. Update credentials
For UI-managed sources, you need the Manage Metadata Ingestion privilege to edit a source and the Manage Secrets privilege to create secrets. Admins have both by default.
- In the left navigation, open Data Sources.
- On the Sources tab, select your source and edit it.
- Update the credentials. To store a password or key as a secret, create it on the Secrets tab and reference it in the recipe as
${SECRET_NAME}. - Test the connection, then save.
Secret names must start with a letter or underscore and contain only letters, digits and underscores. See Secret resolution.
Where the secret is read from:
- Secrets created in the UI are stored encrypted and sent to the executor at job time.
- DataHub, File (
/mnt/secrets/, file name = secret name) and Environment secrets are all checked. DataHub secrets win over File, and File wins over Environment. - On DataHub Cloud, File and Environment secrets only apply when you use a Remote Executor.
- A Remote Executor can also resolve
${NAME}from AWS Secrets Manager or GCP Secret Manager. Names with hyphens, dots or slashes are not extracted. See Cloud secret managers.
For CLI recipes, the CLI resolves ${NAME} from the environment of the process that loads the recipe. For self-hosted UI ingestion, the datahub-actions container reads environment variables and UI secrets. It does not read files under /mnt/secrets/ as shipped. In Kubernetes, use Secrets rather than ConfigMaps.
3. Snowflake: use key-pair authentication
Set authentication_type: KEY_PAIR_AUTHENTICATOR along with the key. The default is DEFAULT_AUTHENTICATOR. If you set private_key or private_key_path with any other authentication type, validation fails with: "Either private_key and private_key_path is set but authentication_type is
source:
type: snowflake
config:
account_id: "xy12345.us-east-2.aws"
username: "${SNOWFLAKE_USER}"
authentication_type: KEY_PAIR_AUTHENTICATOR
private_key_path: "/path/to/private_key.p8"
account_id is the Snowflake account identifier. The older host_port key is renamed to account_id. If you still use password authentication, set password: "${SNOWFLAKE_PASSWORD}" next to username. For how to wire the key as a secret and keep your ingestion state, see Migrate to key-pair authentication.
4. Check service account permissions (Snowflake example)
The documented grants include:
grant operate, usage on warehouse your_warehouse to role datahub_role;
grant usage on database your_database to role datahub_role;
grant usage on all schemas in database your_database to role datahub_role;
grant usage on future schemas in database your_database to role datahub_role;
grant references on all tables in database your_database to role datahub_role;
grant references on future tables in database your_database to role datahub_role;
grant references on all views in database your_database to role datahub_role;
grant references on future views in database your_database to role datahub_role;
Use select instead of references if you turn on profiling or classification. Further grants apply to external tables, streams, dynamic tables and procedures. See the full list in the Snowflake prerequisites.
Related Documentation
- UI ingestion
- Secret resolution
- CLI reference
- Migrate Snowflake to key-pair authentication
- Snowflake prerequisites
- Cloud secret managers for the Remote Executor
Tags: ingestion, authentication, credentials, permissions, service-account