Using an external workload identity provider
You can use the external workload identity provider option when your organization does not allow you to grant an outside Google identity access to your service account. The outside identity can only reach Google through workload identity federation.
With this option, Fabricate:
Signs in to your OIDC identity provider with an application that you register there.
Exchanges that token at Google.
Impersonates your service account.
No Fabricate identity needs access to your project.
Register the application
In your identity provider:
Register an application (a machine-to-machine client) that can use the OAuth2
client_credentialsgrant.Note the following values:
client ID
client secret
The provider's token URL (the OAuth2 token endpoint)
You use these in the Fabricate configuration.
Make sure that:
The application tokens are signed JWTs.
Google can reach the issuer's public keys.
Create a workload identity pool and OIDC provider
In GCP:
Click ☰ → IAM & Admin → Workload Identity Federation, then click Create pool.
Enter a name, for example
fabricate, then click Continue.Choose OpenID Connect (OIDC) as the provider type.
Enter a provider name.
In the Issuer (URL) field, enter the issuer URL of your identity provider.
Under Attribute mapping, map
google.subjecttoassertion.sub.Click Save.
Copy the provider's audience:
Open the provider.
Copy the resource name shown there, in the form
//iam.googleapis.com/projects/<project number>/locations/global/workloadIdentityPools/<pool>/providers/<provider>.
Allow the application to act as the service account
In GCP:
Click ☰ → IAM & Admin → Service Accounts
Click the service account email.
Open the Permissions tab, then click Grant access.
In New principals, enter the pool's principal for the application:
principal://iam.googleapis.com/projects/<project number>/locations/global/workloadIdentityPools/<pool>/subject/<subject>. The subject is thesubclaim of the application's tokens, which is the client ID for most providers.Select the role Workload Identity User.
Click Save.
Complete the configuration in Fabricate

After you complete the configuration in GCP, to complete the service account configuration in Fabricate:
In the Identity Provider Token URL field, provide the OAuth2 token endpoint. It must be an
httpsURL that Fabricate can reach.By default, Verify TLS Cert is set to Yes by default. It checks the provider's certificate against the system roots and the CA certificates that are uploaded to your account. Only change this to No for testing or if the provider has a private CA that you cannot upload.
In the Client ID and Client Secret fields, provide the application's credentials. The secret is stored encrypted and never shown again. When you edit the service account, to keep the existing value, leave Client Secret blank.
If your provider requires a scope, then in the Scope field, provide the scope.
From the Client Authentication dropdown list, select the type of authentication that your provider expects.
In the Workload Identity Provider field, provide the audience that you copied from the provider.
Last updated
Was this helpful?