1. Read your cluster’s issuer
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: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:
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"].3. Let the cluster reach Snowflake
Jedify calls every hostSELECT 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.comto the command in Requirements.
4. Declare the source
5. Check it
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:
credentials in place of workloadIdentity: