Skip to content

Commit 61171be

Browse files
Add FAQ: dbt Cloud BigQuery WIF connection workaround
Closes #169
1 parent 46de93e commit 61171be

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
id: f57e5cb1f4
3+
question: "dbt Cloud: Connecting to BigQuery via Workload Identity Federation won't work — how to fix it?"
4+
sort_order: 90
5+
---
6+
7+
When setting up a dbt Cloud connection to BigQuery, you might try using **Workload Identity Federation (WIF)** instead of a JSON service account key — especially if your GCP organization has disabled service account key creation.
8+
9+
**This route does not work reliably with dbt Cloud.** The "Save" button keeps turning into "Retry" regardless of your WIF configuration (pool, principal, OAuth client, etc.).
10+
11+
The solution is to remove the organization policy that blocks service account key creation:
12+
13+
1. Grant yourself **Service Account Key Admin** and **Organization Policy Administrator** roles at the organization level.
14+
15+
2. Delete the policy that prevents key creation:
16+
```bash
17+
gcloud org-policies delete iam.disableServiceAccountKeyCreation --organization=[your-org-id]
18+
```
19+
20+
Note: Manually disabling legacy and enforced policies via the GCP Console may not work — the CLI command above is what actually removes the restriction.
21+
22+
3. Now you can create a JSON key for your BigQuery service account and proceed with the normal dbt Cloud setup.

0 commit comments

Comments
 (0)