Skip to content

Google BigQuery, part of Google Cloud Platform, is a data warehousing solution designed for storing, querying, and analyzing large datasets. It offers scalability, SQL-based querying, and integrations with other GCP services and third-party tools.

Below you can find the Aembit configuration required to work with the GCP BigQuery service as a Server Workload: Server Workloads represent target services, APIs, databases, or applications that receive and respond to access requests from Client Workloads.Learn more using the BigQuery REST API.

Aembit supports multiple authentication/authorization methods for BigQuery. This page describes scenarios where the Credential Provider: Credential Providers obtain the specific access credentials—such as API keys, OAuth tokens, or temporary cloud credentials—that Client Workloads need to authenticate to Server Workloads.Learn more is configured for BigQuery via:

  1. Sign in to the Google Cloud console and go to the Credentials page. Confirm you are working in a project where you have authorization.

  2. Click Create Credentials, then select OAuth client ID.

    Google Cloud Credentials page with the Create Credentials menu and the OAuth client ID option

  3. If your project has no consent screen, click Configure Consent Screen.

    Prompt to configure the OAuth consent screen before creating an OAuth client ID

  4. Choose a User Type, then click Create.

  5. Enter an app name, choose a user support email, and enter a developer contact email, then click Save and Continue.

  6. Click Save and Continue to skip the Scopes step, then review the Summary and click Back to Dashboard.

  7. Return to the Credentials page, click Create Credentials, and select OAuth client ID again.

  8. For Application type, select Web application, then enter a name for the client. Leave the Authorized redirect URIs field empty for now; you add the Aembit Callback URL in the next section. Keep the Google Cloud console open.

Create and authorize an OAuth 2.0 Authorization Code Credential Provider in Aembit. For the full field reference and the authorization flow, see Configure OAuth 2.0 Authorization Code Credential Provider.

  1. In your Aembit Tenant, create a Credential Provider, select the OAuth 2.0 Authorization Code credential type, then copy the read-only Callback URL.

  2. Return to the Google Cloud console, paste the Callback URL into the Authorized redirect URIs field, then click Create.

  3. In the pop-up, copy both the Client ID and the Client Secret, and store them for the next step.

  4. Back in Aembit, configure the following BigQuery-specific fields, then click Save:

    FieldValue
    Client IDThe Client ID you copied from Google Cloud
    Client SecretThe Client Secret you copied from Google Cloud
    Scopeshttps://www.googleapis.com/auth/bigquery
    OAuth URLhttps://accounts.google.com
    PKCE RequiredOff
    Lifetime1 year

    For OAuth URL, click URL Discovery to populate the Authorization URL and Token URL. For other scopes, see OAuth 2.0 Scopes for Google APIs. For Lifetime, Google issues a 7-day refresh token to projects with an external user type and a publishing status of Testing. Google doesn’t specify a refresh token lifetime for the internal user type. See the Google documentation on token expiration for details.

  5. Click Authorize, then choose your Google Account and click Allow. The Credential Provider status changes to Ready when the flow completes.

  1. Create a new Server Workload.

  2. Configure the following fields:

    FieldValue
    NameA user-friendly name
    Hostbigquery.googleapis.com
    Application ProtocolHTTP
    Port443 with TLS
    Forward to Port443 with TLS
    Authentication methodHTTP Authentication
    Authentication schemeBearer

Create an Access Policy: Access Policies define, enforce, and audit access between Client and Server Workloads by cryptographically verifying workload identity and contextual factors rather than relying on static secrets.Learn more linking your Client Workload: Client Workloads represent software applications, scripts, or automated processes that initiate access requests to Server Workloads, operating autonomously without direct user interaction.Learn more, the OAuth 2.0 Authorization Code Credential Provider, and the Server Workload. See Access Policies for details.

Follow the complete setup guide for the Google Workload Identity Federation Credential Provider:

Configure a Google GCP WIF Credential Provider

This guide covers:

  • Creating the Credential Provider in Aembit
  • Setting up a service account in Google Cloud
  • Creating a Workload Identity Federation pool and OIDC provider, including the attribute mapping
  • Granting the pool access to the service account
  • Completing the Credential Provider and verifying the connection
  1. Create a new Server Workload.

  2. Configure the following fields:

    FieldValue
    NameA user-friendly name
    Hostbigquery.googleapis.com
    Application ProtocolHTTP
    Port443 with TLS
    Forward to Port443 with TLS
    Authentication methodHTTP Authentication
    Authentication schemeBearer

Create an Access Policy linking your Client Workload, the Google Workload Identity Federation Credential Provider, and the Server Workload. See Access Policies for details.

Aembit now handles the credentials required to access the Server Workload, eliminating the need for you to manage them directly. You can remove any previously used credentials from the Client Workload.

If you access the Server Workload through an SDK or library, it’s possible that the SDK/library may still require credentials to be present for initialization purposes. In this scenario, you can provide placeholder credentials. Aembit overwrites these placeholder credentials with the appropriate ones during the access process.

  • You must configure the TLS Decrypt feature to work with the GCP BigQuery Server Workload.