For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Google Cloud as the identity provider

When you use Google Cloud as the identity provider, Fabricate's service account impersonates the service account.

Complete the Fabricate configuration

After you provide the service account email, to complete the configuration:

  1. In the Service Account Description field, provide the description for the service account. The description is in the format fabricate:<workspace identifier>, and is provided in the instructions at the bottom of the panel. Copy this value to use in the GCP configuration.

  2. In the Fabricate's Service Account Email field, provide the email address of the account that impersonates the service account. Copy this value to use in the GCP configuration.

Allow Fabricate to impersonate the service account

Next, in GCP, enable Fabricate to impersonate the service account.

Grant the Fabricate access to the service account

  1. Click ☰ → IAM & Admin → Service Accounts, then click the service account email address for the service account.

  2. Open the Permissions tab, then click Grant access.

  3. In the New principals field, paste the Fabricate service account email address that you copied from Fabricate.

  4. Click Select a role, type Service Account Token Creator, then select it. This role allows Fabricate to impersonate the account.

  5. Click + Add another role, type Service Account Viewer, then select it. This role allows Fabricate to read the description.

  6. Click Save.

Bind the service account to your workspace

  1. On the service account, open the Details tab.

  2. In the Description field, add the service account description text that you copied from Fabricate (fabricate:<workspace id>). This ensures that no other workspace can impersonate this service account. The identifier can appear anywhere in the text. A single service account can list several workspaces, for example fabricate:<id one>, fabricate:<id two>. However, Google limits the description to 256 bytes.

  3. Click Save changes.

Establishing a Fabricate identity on a self-hosted instance

Fabricate needs its own Google identity.

To establish a Google identity, first, In Google Cloud:

  1. In the project that will own Fabricate's identity, enable the IAM API and the IAM Service Account Credentials API.

  2. Create a service account there, for example fabricate@my-project.iam.gserviceaccount.com.

After you complete that configuration, based on where Fabricate is hosted, complete one of the following options.

Attached service account (GCP → GCP)

Use this option if self-hosted Fabricate runs in Google Cloud:

  1. Attach the service account to the VM (or node pool, or use Workload Identity on GKE) with the cloud-platform access scope.

  2. Leave FABRICATE_GCP_IMPERSONATOR_KEY unset. Fabricate reads the account's email from the metadata server.

  3. Optionally, if the dialog does not display it, set FABRICATE_GCP_IMPERSONATOR_EMAIL to the account's email address.

  4. Restart Fabricate.

External account (AWS → GCP)

Use this option if self-hosted Fabricate runs in AWS Cloud:

  1. In IAM & Admin → Workload Identity Federation, click Create pool.

  2. Add an AWS provider with the AWS account identifier that runs Fabricate.

  3. On the service account, grant the pool's principal for the instance's IAM role Workload Identity User.

  4. Generate the config with gcloud iam workload-identity-pools create-cred-config ... --aws.

  5. Paste its JSON into FABRICATE_GCP_IMPERSONATOR_KEY.

  6. Set FABRICATE_GCP_IMPERSONATOR_EMAIL to the service account's email address.

  7. Restart Fabricate.

Service account JSON key (any cloud provider → GCP)

Optionally, you can use this option with any other cloud providers not listed above:

  1. In IAM & Admin → Service Accounts, open the service account.

  2. Choose Keys → Add key → Create new key → JSON.

  3. For the web and worker containers, set the entire file content as a single-line quoted value of the environment variable FABRICATE_GCP_IMPERSONATOR_KEY: FABRICATE_GCP_IMPERSONATOR_KEY='{"type":"service_account","project_id":"...","private_key":"-----BEGIN PRIVATE KEY-----\n...","client_email":"fabricate@my-project.iam.gserviceaccount.com",...}'

  4. Restart Fabricate.

Last updated

Was this helpful?