Welcome to the Alteryx Knowledge Base
Created/Edited -
This article describes how to set up Workload Identity Federation (WIF) for Google Cloud Storage (GCS) / Google Big Query with Microsoft Entra ID as Identity Pool Provider.
To allow access to the Google Cloud for external applications, typically Service Account Keys are used. Storing those keys securely and maintaining them creates and additional security burden. Workload Identity Federation is the best practice that eliminates this concern by using identity federation to either give direct access to principals or by service account impersonation.
- Alteryx Designer or Server 2024.2+
This setup requires coordination between the Microsoft Entra ID team (typically an Application Administrator or Cloud Application Administrator) and a Google Cloud IAM administrator with permissions to configure Workload Identity Pools and Service Account bindings.
In many organizations, these responsibilities are shared between the Identity and Cloud Platform teams.
Overview of Authorization Flow for Workload Identity Federation with Entra ID as Identity Pool
Setup of external identity provider in Entra ID
Step 1 - Create a Microsoft Entra ID application (https://docs.microsoft.com/en-au/azure/active-directory/develop/howto-create-service-principal-portal#register-an-application-with-azure-ad-and-create-a-service-principal )
- Sign into Microsoft Entra admin center at least as Cloud Application Administrator
- Navigate to Entra ID > App Registrations and then select New registration
- Give the application a descriptive name. The name will be only used for internal identification.
- Choose single tenant under Supported account types. No redirect URI is needed as the non-interactive Client Credentials flow is used.
- Click Register. You have created the app registration.
- Navigate to the app registration > Manage > Expose an API
- Click the Add button next to Application ID URI
- Click Save in the new window.
- Take a note of the the new URI. You will need it later as the audience value in Step 3. Additionally, when connection from Designer you will need this URI.
Create client secret and collect app registration details for later use
- Navigate to the app registration > Manage > Certificates & Secrets.
- Only client secrets are supported, but not certificates. Navigate to Client secrets and select New client secret. Store the new value.
- Go to Overview and note the following for later use:
- Application (client) ID - this will be the client ID,
- Directory (tenant) ID - this will be the tenant ID.
- Navigate to Endpoints
- Copy the OAuth 2.0 token endpoint (v2). Store for later usage.
- It should have the structure: https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token
Step 2 - Retrieve sub value
- Run the attached Postman collection to obtain an access token. You need to populate the fields for client id, client secret, tenant id, and scope. The scope for this Client Credentials OAuth 2.0 authorization flow will end with /.default.
- Copy the access token value obtained and inspect it in the Microsoft-operated https://jwt.ms/.
- Extract the value of the sub field and store it. This will be needed in Step 5 of the setup.
Setup of Identity Provider, Trust Relationship GCP - Entra ID and Service Account
Step 3 - Configure Workload Identity Federation in GCP – create identity provider and establish trust between GCP and Entra ID app registration
- Select the relevant Google Cloud Project in the Google Cloud Console. This is important as otherwise, the changes will be performed in the incorrect project.
- Enable the APIs as per the link https://console.cloud.google.com/flows/enableapi?apiid=iam.googleapis.com,cloudresourcemanager.googleapis.com,iamcredentials.googleapis.com,sts.googleapis.com&redirect=https://console.cloud.google.com
- Navigate to IAM & Admin > Workload Identity Federation. Select Add provider
- Give the identity pool a name. Click continue.
- Select the OpenID Connect provider and click continue.
- Give the provider a name and enter the Issuer URL. The format is: https://sts.windows.net/{azure_ad_tenant_id}. No JWK file is required for the setup as the issuer is publicly available.
- Select allowed audiences and use the value collected above as Application ID URI from Azure. Click next.
- Configure the provider attributes, set google.subject to assertion.sub. Other values are optional. Click save to create the identity pool.
- The identity provider has been created. Take note of the IAM principal. You will need it later.
Step 4 - Configure Workload Identity Federation in GCP – create and configure new service account and assign required roles
- Navigate to IAM & Admin > Service Accounts. Select Create Service Account
- Give the Service Account a name and optionally add a description. Select the required roles for the service account. This would be Google Big Query and Google Cloud Storage related in our example. Click continue.
- Assign the Principal ID the Service Accounts Admin role. The value has been collected in the earlier Step 3 as IAM Principal. Click done to create the service account.
Step 5 - Link service account with the Workload Identity Pool
- Go to the workload identity pool created in step 3.
- Select Grant access
- Choose grant access using service impersonisation. Select the service account created in the previous step.
- Select the principal subject. Use the sub value extracted in Step 2.
- Click save.
- In the new window select the provider and enter the application ID URI. This URI has been collected in Step 1 and is the Application ID URI value.
- Download the config file. It will be helpful for API testing.
Step 6 - Setup in Alteryx Designer, for Google Big Query Bulk
- Draw an Output Data tool on the canvas.
- Select Set Up a Connection and check Use Data Connection Manager (DCM)
- Choose Google Big Query > Bulk
- Click New
- Populate the data source details for the Google Project
- Under Credentials select Google Workload Identity Federation With Entra ID
- Give the credential a name.
- From Step 1, you obtain the values for the Entra ID tenant ID, client ID and client secret. Paste them in their respective fields.
- The Audience value is the IAM Principal obtained in Step 3.
- For Service Account Email enter the value of the Service Account Email created in Step 4.
- The Entra ID scope is the Application ID URI from Step 1 with the additional /.default suffix. This is necessary as WIF uses the Client Credentials OAuth 2.0 authorization flow.
See below a Designer sample setup with synthetic values.