1. Grant access
This step belongs to whoever owns the data. Jedify signs in as:
The billing project is where Jedify’s queries run and are billed, and the project whose query history it learns from. Choose the project your analysts query from: the history is then theirs. It can be one of the datasets’ projects.
With OpenTofu
If the identity that runs OpenTofu may change IAM on those projects and datasets, list the datasets interraform/terraform.tfvars and apply:
dataViewer on each dataset and the other three roles on each dataset’s project, so the billing project is one of them. It grants them again on every apply.
By hand
The data’s owners run these, as a user who may change IAM on the billing project and the datasets:2. Declare the source
Add it to your Jedify resource, with the billing project asprojectId, and apply:
Datasets in other projects
Jedify’s catalog lists the tables of projects it can list. A project where the service account holds only dataset grants usually isn’t one, so its tables are missing from the catalog, although queries against them work. Name such a project indata_projects:
settings takes one project. For several, use credentials holding {"type": "workload_identity", "project_id": "acme-dwh", "data_projects": ["acme-lake", "acme-ads"]}.
3. Check it
warehouse Connected.
When it fails
Data in another organization
When the datasets are in another organization, its administrator can trust your cluster through a Workload Identity Federation pool instead of granting your service account. Jedify then signs in as a service account in their organization, and still no key exists. You: give the application a token for Google, in your Jedify resource, and send the administrator three values:
The data’s administrator: create the pool, a service account, the four grants, and a credential configuration file:
project_id is the billing project.
You: store the file in your Secret Manager and declare the source with it:
With a key
A service-account key works the same way: store the key file in Secret Manager and name it undercredentials, as above. Add data_projects to the file when the catalog needs it. Prefer no key where you can: a key is a secret that can leak and has to be rotated.