Skip to main content
Jedify reads BigQuery as the installation’s own Google service account. There is no key: you grant that service account access to your data, and declare the source. If your datasets are in another Google Cloud organization that won’t grant your project’s service account, see Data in another organization.

1. Grant access

This step belongs to whoever owns the data. Jedify signs in as:
It needs four roles, and no more: 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 in terraform/terraform.tfvars and apply:
OpenTofu grants 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:
Reinstalling creates the service account again under the same address, and Google Cloud does not carry grants over to the new one. bigquery_datasets grants again on every apply; grants made by hand must be made again.

2. Declare the source

Add it to your Jedify resource, with the billing project as projectId, 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 in data_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

Expected: 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:
The file holds no secret, so it is safe to send. Its 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 under credentials, 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.