Skip to main content
Your cluster signs a token for the application’s Kubernetes service account, and a Snowflake service user trusts that cluster and that service account. Jedify presents the token instead of a password, so no Snowflake credential exists anywhere.

1. Read your cluster’s issuer

Expected: https://container.googleapis.com/v1/projects/<project>/locations/<region>/clusters/<name>. It stays the same if you rebuild the cluster under the same name.

2. Create the service user

A Snowflake administrator runs this, with your issuer:
Give JEDIFY_ROLE USAGE on the warehouse, the database and its schemas, and SELECT on the tables Jedify should read, as you would for any service user. Workload identity works only for users of TYPE = SERVICE. Check it in Snowflake:
Expected: one identity of type OIDC, with your issuer and the subject above.
Managing Snowflake with OpenTofu? The Snowflake provider’s snowflake_service_user takes the same trust as default_workload_identity { oidc { issuer, subject } }. Provider 2.22.0 needs experimental_features_enabled = ["USER_ENABLE_DEFAULT_WORKLOAD_IDENTITY"].
Use TYPE = OIDC, whichever cloud hosts your Snowflake account. Jedify signs in with its pods’ Kubernetes token, so a user that trusts an AWS role, a Google service account or an Azure managed identity (TYPE = AWS, GCP or AZURE) refuses it.

3. Let the cluster reach Snowflake

Jedify calls every host SELECT SYSTEM$ALLOWLIST() returns for your account.
  • In a network OpenTofu created, Cloud NAT lets the calls out. There is nothing to do.
  • In your own network, your network team allows those hosts out. The preflight checks one from the install host: add --egress <account>.snowflakecomputing.com to the command in Requirements.
If a Snowflake network policy limits the addresses your account accepts, see Fixed addresses for allowlists.

4. Declare the source

5. Check it

Expected: snowflake Connected.

When it fails

To change an existing user’s trust to OIDC:

With a key pair

A service user with a key pair works too. Prefer no key where you can: a key is a secret that can leak and has to be rotated. The credentials are one JSON object: Store it in Secret Manager straight from the key file, so the key never passes through your shell:
Then declare it under credentials in place of workloadIdentity: